curl --request POST \
--url https://app.phonely.ai/api/report-call-error \
--header 'Content-Type: application/json' \
--header 'X-Authorization: <api-key>' \
--data '
{
"uid": "<string>",
"agentId": "<string>",
"callId": "<string>",
"email": "jsmith@example.com",
"reason": "<string>"
}
'{
"success": true
}Report a call issue through the frontend API-key-authenticated error reporting endpoint.
curl --request POST \
--url https://app.phonely.ai/api/report-call-error \
--header 'Content-Type: application/json' \
--header 'X-Authorization: <api-key>' \
--data '
{
"uid": "<string>",
"agentId": "<string>",
"callId": "<string>",
"email": "jsmith@example.com",
"reason": "<string>"
}
'{
"success": true
}POST/api/report-call-errorX-Authorization: Your API key (required)Content-Type: application/json{
"uid": "string",
"agentId": "string",
"callId": "string",
"email": "string",
"reason": "string"
}
uid (string, required): Your user IDagentId (string, required): The ID of the agent that received the callcallId (string, required): The ID of the call with the erroremail (string, required): Your email address for follow-upreason (string, required): Description of the error or issue{
"success": true
}
400 Bad Request: Invalid request body401 Unauthorized: Invalid or missing API key, or insufficient permissions404 Not Found: Call not found or invalid call ID500 Internal Server Error: Server error or problem submitting the error reportcurl -X POST https://app.phonely.ai/api/report-call-error \
-H "X-Authorization: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"uid": "user123",
"agentId": "agent456",
"callId": "call789",
"email": "user@example.com",
"reason": "Agent did not respond properly to customer questions"
}'
Error report submitted successfully
Indicates if the report was submitted successfully