Skip to main content
POST
/
report-call-error
Report an issue with a call
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": "[email protected]",
  "reason": "<string>"
}'
{
  "success": true
}
Reports an error or issue with a specific call to help improve the service.

Request

Method: POST
Endpoint: /api/report-call-error
Headers:
  • X-Authorization: Your API key (required)
  • Content-Type: application/json
Request Body:
{
  "uid": "string",
  "agentId": "string",
  "callId": "string",
  "email": "string",
  "reason": "string"
}
Parameters:
  • uid (string, required): Your user ID
  • agentId (string, required): The ID of the agent that received the call
  • callId (string, required): The ID of the call with the error
  • email (string, required): Your email address for follow-up
  • reason (string, required): Description of the error or issue

Response

Success Response (200):
{
  "success": true
}
Error Responses:
  • 400 Bad Request: Invalid request body
  • 401 Unauthorized: Invalid or missing API key, or insufficient permissions
  • 404 Not Found: Call not found or invalid call ID
  • 500 Internal Server Error: Server error or problem submitting the error report

Example

curl -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": "[email protected]",
    "reason": "Agent did not respond properly to customer questions"
  }'

Notes

  • This endpoint helps improve the service by collecting feedback on call issues
  • The error report will be sent to the Phonely team for review
  • A link to the call history will be included in the error report

Authorizations

X-Authorization
string
header
required

Body

application/json
uid
string
required

User ID

agentId
string
required

ID of the agent involved in the call

callId
string
required

ID of the call being reported

email
string<email>
required

Email address for feedback communication

reason
string
required

Detailed explanation of the issue or feedback

Response

Error report submitted successfully

success
boolean

Indicates if the report was submitted successfully

I