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

# List calls

> The agent's production calls, newest first. Calls with no start time come last. Filters combine.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/agents/{agentId}/calls
openapi: 3.1.0
info:
  title: SignalMD API
  version: 1.0.0
  description: >-
    SignalMD reads a voice agent's production calls and says what to fix, then
    tests whether the fix worked.

    This API exposes the same data the web app shows: agents, calls and their
    traces, signals, issues,

    versions and their comparisons, tests, and test runs.


    Authenticate with `Authorization: Bearer sig_...` (an API key from the API
    keys page). Read keys may

    call every `read` operation; write keys may also call `write` operations,
    within their monthly budget.

    Each operation's scope is in `x-signal-scope`. Errors share one envelope
    (`Error`), lists share one

    cursor scheme (`limit`, `cursor`, `hasMore`, `nextCursor`), and every
    response carries `Request-Id`

    and `RateLimit-*` headers.
servers:
  - url: https://api.signalmd.dev
    description: Production
  - url: http://localhost:43124
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Account
    description: Who the token belongs to and what it may do.
  - name: Agents
    description: Voice agents connected to the workspace.
  - name: Calls
    description: Production calls, their traces and per-call signals.
  - name: Signals
    description: What SignalMD noticed across calls.
  - name: Issues
    description: 'Problems worth fixing: where, why, and what to change.'
  - name: Versions
    description: Agent versions and how each one did.
  - name: Comparisons
    description: Stored comparisons between two versions.
  - name: Tests
    description: Tests, test sets, personas and coverage.
  - name: Runs
    description: Test runs and the attempts inside them.
paths:
  /v1/agents/{agentId}/calls:
    get:
      tags:
        - Calls
      summary: List calls
      description: >-
        The agent's production calls, newest first. Calls with no start time
        come last. Filters combine.
      operationId: listCalls
      parameters:
        - schema:
            type: string
            format: uuid
            pattern: >-
              ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
            example: 3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f
            description: The agent's id.
          required: true
          description: The agent's id.
          name: agentId
          in: path
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
            description: Items per page, 1 to 100.
            example: 25
          required: false
          description: Items per page, 1 to 100.
          name: limit
          in: query
        - schema:
            type: string
            minLength: 1
            description: '`nextCursor` from the previous page.'
          required: false
          description: '`nextCursor` from the previous page.'
          name: cursor
          in: query
        - schema:
            type: integer
            description: Only calls taken by this agent version.
          required: false
          description: Only calls taken by this agent version.
          name: version
          in: query
        - schema:
            type: string
            enum:
              - resolved
              - unresolved
              - transferred
              - abandoned
              - no_contact
            description: Only analysed calls with this outcome.
          required: false
          description: Only analysed calls with this outcome.
          name: outcome
          in: query
        - schema:
            type: string
            format: uuid
            pattern: >-
              ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
            example: 3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f
            description: Only calls that are evidence for this issue.
          required: false
          description: Only calls that are evidence for this issue.
          name: issueId
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 200
            description: >-
              Only calls with this signal code detected (`GET /signals` lists
              the codes).
          required: false
          description: >-
            Only calls with this signal code detected (`GET /signals` lists the
            codes).
          name: signal
          in: query
        - schema:
            type: string
            format: date-time
            description: >-
              Only calls that started at or after this time. Calls with no start
              time never match.
          required: false
          description: >-
            Only calls that started at or after this time. Calls with no start
            time never match.
          name: startedAfter
          in: query
        - schema:
            type: string
            format: date-time
            description: >-
              Only calls that started before this time. Calls with no start time
              never match.
          required: false
          description: >-
            Only calls that started before this time. Calls with no start time
            never match.
          name: startedBefore
          in: query
      responses:
        '200':
          description: A page of calls.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallList'
        '400':
          description: 'Invalid request: a parameter or the body failed validation.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid or revoked credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not permitted for this principal.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            The agent, or a resource under it, does not exist or is not visible
            to this key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. See Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Server error. The message is generic; quote the request id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-codeSamples:
        - lang: bash
          label: curl
          source: >-
            curl
            "https://api.signalmd.dev/v1/agents/6f1d2c3b-4a5e-4f60-8b7a-9c0d1e2f3a4b/calls?outcome=abandoned&limit=25"
            \
              -H "Authorization: Bearer $SIGNAL_API_KEY"
components:
  schemas:
    CallList:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/CallSummary'
        hasMore:
          type: boolean
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass as `cursor` for the next page; null on the last page.
      required:
        - object
        - data
        - hasMore
        - nextCursor
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              $ref: '#/components/schemas/ErrorType'
            code:
              type: string
              example: agent_not_found
              description: The specific reason; stable within v1.
            message:
              type: string
              example: Agent not found.
            param:
              type:
                - string
                - 'null'
              description: The request field at fault, for a validation error.
            requestId:
              type:
                - string
                - 'null'
              example: req_8c1f0e2b4a6d9e3f7a5c1b0d
            quota:
              type: object
              properties:
                metric:
                  type: string
                  example: credits
                  description: >-
                    credits when the workspace's monthly credits are used up, or
                    agents when the plan's agent limit is reached.
                activity:
                  type: string
                  enum:
                    - observation
                    - testing
                    - chat
                  example: testing
                  description: >-
                    With metric credits: what the request would have spent them
                    on. observation is analysing calls, testing is test runs,
                    chat is the copilot.
                requested:
                  type: integer
                  example: 18
                  description: >-
                    With metric credits: the credits the request needed to
                    start.
                limit:
                  type: integer
                  description: 'The plan''s limit: the month''s credits, or its agents.'
                used:
                  type: integer
                  description: How much of the limit is used this month.
                plan:
                  type: string
                  example: free_org
                  description: The workspace's plan slug.
                upgradePath:
                  type: string
                  example: /billing
                  description: Where in the web app the plan is changed.
              required:
                - metric
                - limit
                - used
                - plan
                - upgradePath
              description: >-
                Present when code is quota_exceeded: the plan limit the request
                would pass.
            proposalId:
              type: string
              format: uuid
              description: >-
                Present when code is criteria_locked: the pending criteria
                proposal the change was filed as. A person approves or rejects
                it.
          required:
            - type
            - code
            - message
            - param
            - requestId
      required:
        - error
      example:
        error:
          type: not_found_error
          code: agent_not_found
          message: Agent not found.
          param: null
          requestId: req_8c1f0e2b4a6d9e3f7a5c1b0d
    CallSummary:
      type: object
      properties:
        object:
          type: string
          enum:
            - call
        id:
          type: string
          format: uuid
          pattern: >-
            ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
          example: 3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f
          description: The call's id in SignalMD.
        providerCallId:
          type: string
          description: >-
            The call's id on the voice platform. Unique within an agent, not
            across agents.
        version:
          type:
            - integer
            - 'null'
          description: The agent version that took the call.
        startedAt:
          type:
            - string
            - 'null'
          format: date-time
          example: '2026-10-02T14:03:07.120Z'
        endedAt:
          type:
            - string
            - 'null'
          format: date-time
          example: '2026-10-02T14:03:07.120Z'
        durationMs:
          type:
            - integer
            - 'null'
        direction:
          type:
            - string
            - 'null'
          description: '`inbound` or `outbound`, as the platform reports it.'
        disconnectionReason:
          type:
            - string
            - 'null'
          description: >-
            Why the call ended, in the platform's words (`user_hangup`,
            `agent_hangup`, ...).
        outcome:
          type:
            - string
            - 'null'
          enum:
            - resolved
            - unresolved
            - transferred
            - abandoned
            - no_contact
            - null
          description: How the call ended for the caller. Null until the call is analysed.
        objective:
          type:
            - string
            - 'null'
          description: >-
            One line, in the caller's terms, of what they were trying to do.
            Null until analysed.
        intent:
          type:
            - object
            - 'null'
          properties:
            slug:
              type: string
            label:
              type: string
          required:
            - slug
            - label
          description: The intent the analysis gave the call. Null until analysed.
        useCase:
          type:
            - object
            - 'null'
          properties:
            slug:
              type: string
            label:
              type: string
          required:
            - slug
            - label
          description: >-
            What the caller wanted, from the use case classification. Null when
            not classified.
        subUseCase:
          type:
            - object
            - 'null'
          properties:
            slug:
              type: string
            label:
              type: string
          required:
            - slug
            - label
          description: The narrower use case under `useCase`, when there is one.
        callerPersona:
          type:
            - object
            - 'null'
          properties:
            slug:
              type: string
            label:
              type: string
          required:
            - slug
            - label
          description: The kind of caller the call was read as. Null when not classified.
        caller:
          type: object
          properties:
            kind:
              type: string
              enum:
                - test
                - automated
                - silent
                - repeat
                - new
              description: >-
                Who called, from facts alone. `test`: a line the agent's own
                team tests it from; such a call counts in no issue. `automated`:
                another company's AI agent. `silent`: nobody on the caller's
                side spoke. `repeat`: a number that called this agent more than
                once. `new`: none of these.
            nth:
              type:
                - integer
                - 'null'
              description: >-
                For `repeat`: which of that number's calls this is, oldest
                first.
            of:
              type:
                - integer
                - 'null'
              description: 'For `repeat`: how many calls that number made to this agent.'
          required:
            - kind
            - nth
            - of
          description: >-
            Who called, from facts alone. The phone number itself is never
            returned.
        counts:
          type: object
          properties:
            turns:
              type:
                - integer
                - 'null'
              description: Turns in the transcript. Null when the call has no trace.
            callerTurns:
              type:
                - integer
                - 'null'
            agentTurns:
              type:
                - integer
                - 'null'
            toolFailures:
              type:
                - integer
                - 'null'
              description: >-
                Tool calls that failed. A tool that ended the call is not a
                failure.
            frictions:
              type:
                - integer
                - 'null'
              description: >-
                Points of friction the analysis recorded (see the call's
                `analysis.frictions`). Null until analysed.
          required:
            - turns
            - callerTurns
            - agentTurns
            - toolFailures
            - frictions
        signalCodes:
          type:
            - array
            - 'null'
          items:
            type: string
          description: >-
            Codes of the signals detected on the call, sorted. A signal is a
            symptom noticed on a call, not a diagnosed issue; what to fix is on
            the issues. Null until analysed, empty when nothing was noticed.
      required:
        - object
        - id
        - providerCallId
        - version
        - startedAt
        - endedAt
        - durationMs
        - direction
        - disconnectionReason
        - outcome
        - objective
        - intent
        - useCase
        - subUseCase
        - callerPersona
        - caller
        - counts
        - signalCodes
      example:
        object: call
        id: 0b9e8d7c-6f5a-4b3c-9d2e-1f0a9b8c7d6e
        providerCallId: call_5e0c2b7a91d34f6e8a1b
        version: 8
        startedAt: '2026-10-01T15:42:05.000Z'
        endedAt: '2026-10-01T15:44:51.000Z'
        durationMs: 166000
        direction: inbound
        disconnectionReason: user_hangup
        outcome: abandoned
        objective: Book a cleaning for next week
        intent:
          slug: book_appointment
          label: Book appointment
        useCase:
          slug: scheduling
          label: Scheduling
        subUseCase:
          slug: new_booking
          label: New booking
        callerPersona:
          slug: hurried-returning-patient
          label: Hurried returning patient
        caller:
          kind: repeat
          nth: 2
          of: 3
        counts:
          turns: 24
          callerTurns: 12
          agentTurns: 12
          toolFailures: 1
          frictions: 2
        signalCodes:
          - tool_timeout
          - dead_air
    ErrorType:
      type: string
      enum:
        - invalid_request_error
        - authentication_error
        - budget_error
        - permission_error
        - not_found_error
        - conflict_error
        - rate_limit_error
        - api_error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An API key (`sig_...`), or a session token from the web app.

````

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