> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phonely.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Report Call Error

> Submit feedback about a call to the Phonely team.

Submits the call ID, a contact email, and a description of the problem for review. The API key must belong to the supplied user, the user must have access to the agent, and the call must belong to that agent.

Use a specific `reason` that explains the observed behavior and the expected behavior.


## OpenAPI

````yaml POST /report-call-error
openapi: 3.0.1
info:
  title: Phonely API
  description: API for Phonely services including agent management and call summaries
  version: 1.0.0
servers:
  - url: https://app.phonely.ai/api
security: []
paths:
  /report-call-error:
    post:
      summary: Report an issue with a call
      description: Submit an error report for a specific call with feedback and suggestions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportCallErrorRequest'
      responses:
        '200':
          description: Error report submitted successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                properties:
                  success:
                    type: boolean
                    description: Indicates if the report was submitted successfully
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Call or agent not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ReportCallErrorRequest:
      type: object
      required:
        - uid
        - agentId
        - callId
        - email
        - reason
      properties:
        uid:
          type: string
          description: User ID
        agentId:
          type: string
          description: ID of the agent involved in the call
        callId:
          type: string
          description: ID of the call being reported
        email:
          type: string
          format: email
          description: Email address for feedback communication
        reason:
          type: string
          description: Detailed explanation of the issue or feedback
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error code or identifier
        message:
          type: string
          description: Detailed error message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Authorization

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.