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

> ## Agent Instructions
> Use OpenAPI for fields and errors; the Python guide and PyPI for SDK capabilities and availability. Scenario IDs are dashboard UUIDs. Bound polling; reports may stay null. Reconcile ambiguous call creation before retrying. Docs MCP reads docs and accepts feedback; API MCP performs authenticated call actions.

# Get a call

> Get a call's details and latest outcome.



## OpenAPI

````yaml /api-reference/openapi.json get /calls/{call_id}
openapi: 3.1.0
info:
  title: Sarj.ai Developer API
  description: >
    Create calls, schedule retries, and retrieve outcomes.


    [Quickstart](https://platform-docs.sarj.ai/getting-started) ·

    [Authentication and
    errors](https://platform-docs.sarj.ai/api-reference/overview) ·

    [MCP guide](https://platform-docs.sarj.ai/mcp-server)
  license:
    name: Apache 2.0
    identifier: Apache-2.0
  version: 1.1.0
servers:
  - url: https://platform-api.sarj.ai/api/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: System
    description: Service health and status.
  - name: Calls
    description: Create outbound voice calls and retrieve call details and transcripts.
  - name: Schedule Configs
    description: Create and manage retry policies for scheduled outbound calls.
  - name: Webhooks
    description: Receive call outcomes at your configured endpoint.
externalDocs:
  description: Sarj.ai Documentation
  url: https://platform-docs.sarj.ai
paths:
  /calls/{call_id}:
    get:
      tags:
        - Calls
      summary: Get a call
      description: Get a call's details and latest outcome.
      operationId: getCall
      parameters:
        - name: call_id
          in: path
          required: true
          schema:
            type: string
            description: Call id (UUID), as returned in the `id` field.
            title: Call Id
          description: Call id (UUID), as returned in the `id` field.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_PublicCallDetail_'
              example:
                data:
                  id: 8f9b2c1e-4a5d-4f6e-8b1a-2c3d4e5f6a7b
                  status: completed
                  phone_number: '+966512345678'
                  scenario_id: 550e8400-e29b-41d4-a716-446655440000
                  language: ar
                  direction: outbound
                  variables:
                    customer_name: Ahmad
                    order_id: ORD-123
                  duration: 142
                  permanent_recording_url: >-
                    https://platform-api.sarj.ai/api/v1/calls/8f9b2c1e-4a5d-4f6e-8b1a-2c3d4e5f6a7b/recording
                  transcript:
                    - role: assistant
                      content: Hello Ahmad, calling about order ORD-123.
                    - role: user
                      content: Yes, hi.
                    - role: assistant
                      content: Your order is ready for delivery tomorrow.
                  report:
                    generated_at: '2026-04-12T10:33:41Z'
                    outcome:
                      status: success
                      reason: >-
                        The customer confirmed the delivery appointment for
                        tomorrow.
                      success_criteria:
                        - text: Customer confirms the delivery slot
                          achieved: true
                          is_primary: true
                  created_at: '2026-04-12T10:30:00Z'
                  updated_at: '2026-04-12T10:32:22Z'
                  started_at: '2026-04-12T10:30:05Z'
                  ended_at: '2026-04-12T10:32:22Z'
                meta:
                  request_id: 550e8400-e29b-41d4-a716-446655440000
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: unauthorized
                  message: Authentication required.
                meta: {}
        '403':
          description: API key not associated with an organization.
          content:
            application/json:
              example:
                error:
                  type: no_organization
                  message: API key is not associated with an organization.
                meta:
                  request_id: 550e8400-e29b-41d4-a716-446655440000
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Call not found.
          content:
            application/json:
              example:
                error:
                  type: call_not_found
                  message: Call 8f9b2c1e-4a5d-4f6e-8b1a-2c3d4e5f6a7b was not found.
                  call_id: 8f9b2c1e-4a5d-4f6e-8b1a-2c3d4e5f6a7b
                meta:
                  request_id: 550e8400-e29b-41d4-a716-446655440000
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Unexpected server error with a request ID for support correlation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - label: Python (SDK)
          lang: Python
          source: >-
            import os

            from sarj_platform_sdk import SDK


            with SDK(api_key_auth=os.environ["SARJ_API_KEY"], timeout_ms=10_000)
            as sdk:
                res = sdk.calls.get_call(call_id=os.environ["SARJ_CALL_ID"])
                call = res.data
                print(f"Status: {call.status}, duration: {call.duration}")
        - label: curl
          lang: bash
          source: >-
            curl --fail-with-body --max-time 10
            https://platform-api.sarj.ai/api/v1/calls/8f9b2c1e-4a5d-4f6e-8b1a-2c3d4e5f6a7b
            \
              -H "Authorization: Bearer $SARJ_API_KEY"
        - label: Python (requests)
          lang: Python
          source: |-
            import os
            import requests

            call_id = "8f9b2c1e-4a5d-4f6e-8b1a-2c3d4e5f6a7b"
            response = requests.get(
                f"https://platform-api.sarj.ai/api/v1/calls/{call_id}",
                headers={
                    "Authorization": f"Bearer {os.environ['SARJ_API_KEY']}",
                },
                timeout=10,
            )
            response.raise_for_status()
            call = response.json()["data"]
            print(f"Status: {call['status']}, duration: {call['duration']}")
        - label: TypeScript
          lang: TypeScript
          source: |-
            const callId = "8f9b2c1e-4a5d-4f6e-8b1a-2c3d4e5f6a7b";
            const response = await fetch(
              `https://platform-api.sarj.ai/api/v1/calls/${callId}`,
              {
                headers: {
                  "Authorization": `Bearer ${process.env.SARJ_API_KEY}`,
                },
                signal: AbortSignal.timeout(10_000),
              },
            );

            if (!response.ok) throw new Error(`HTTP ${response.status}`);
            const { data: call } = await response.json();
            console.log(`Status: ${call.status}, duration: ${call.duration}`);
components:
  schemas:
    ApiResponse_PublicCallDetail_:
      properties:
        data:
          $ref: '#/components/schemas/PublicCallDetail'
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      additionalProperties: false
      type: object
      required:
        - data
        - meta
      title: ApiResponse[PublicCallDetail]
    ErrorResponse:
      properties:
        error:
          oneOf:
            - $ref: '#/components/schemas/ValidationErrorPayload'
            - $ref: '#/components/schemas/UnauthorizedPayload'
            - $ref: '#/components/schemas/NotFoundPayload'
            - $ref: '#/components/schemas/InternalErrorPayload'
            - $ref: '#/components/schemas/PhoneNumberBlockedPayload'
            - $ref: '#/components/schemas/CallLimitExceededPayload'
            - $ref: '#/components/schemas/OutboundCallFailedPayload'
            - $ref: '#/components/schemas/ScenarioNotFoundPayload'
            - $ref: '#/components/schemas/ScenarioForbiddenPayload'
            - $ref: '#/components/schemas/ScenarioInvalidConfigPayload'
            - $ref: '#/components/schemas/NoOrganizationPayload'
            - $ref: '#/components/schemas/CallNotFoundPayload'
            - $ref: '#/components/schemas/OauthInvalidRedirectUriPayload'
            - $ref: '#/components/schemas/SchedulingDisabledPayload'
            - $ref: '#/components/schemas/InvalidScheduleTimePayload'
            - $ref: '#/components/schemas/ScheduleConfigNotFoundPayload'
            - $ref: '#/components/schemas/CallNotPendingPayload'
          title: Error
          discriminator:
            propertyName: type
            mapping:
              call_limit_exceeded: '#/components/schemas/CallLimitExceededPayload'
              call_not_found: '#/components/schemas/CallNotFoundPayload'
              call_not_pending: '#/components/schemas/CallNotPendingPayload'
              internal_error: '#/components/schemas/InternalErrorPayload'
              invalid_schedule_time: '#/components/schemas/InvalidScheduleTimePayload'
              no_organization: '#/components/schemas/NoOrganizationPayload'
              not_found: '#/components/schemas/NotFoundPayload'
              oauth_invalid_redirect_uri: '#/components/schemas/OauthInvalidRedirectUriPayload'
              outbound_call_failed: '#/components/schemas/OutboundCallFailedPayload'
              phone_number_blocked: '#/components/schemas/PhoneNumberBlockedPayload'
              scenario_forbidden: '#/components/schemas/ScenarioForbiddenPayload'
              scenario_invalid_config: '#/components/schemas/ScenarioInvalidConfigPayload'
              scenario_not_found: '#/components/schemas/ScenarioNotFoundPayload'
              schedule_config_not_found: '#/components/schemas/ScheduleConfigNotFoundPayload'
              scheduling_disabled: '#/components/schemas/SchedulingDisabledPayload'
              unauthorized: '#/components/schemas/UnauthorizedPayload'
              validation_error: '#/components/schemas/ValidationErrorPayload'
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      additionalProperties: false
      type: object
      required:
        - error
        - meta
      title: ErrorResponse
      description: >-
        Public API error. Branch on `error.type`; SDKs preserve raw payloads for
        unknown variants.
    PublicCallDetail:
      properties:
        id:
          type: string
          title: Id
          description: Call ID.
          examples:
            - 550e8400-e29b-41d4-a716-446655440000
        status:
          anyOf:
            - $ref: '#/components/schemas/CallStatus'
            - type: 'null'
          description: Call status.
          examples:
            - in_progress
        phone_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone Number
          description: Call phone number.
        scenario_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Scenario Id
          description: Call scenario ID.
        language:
          anyOf:
            - $ref: '#/components/schemas/Language'
            - type: 'null'
          description: Call language.
        direction:
          anyOf:
            - $ref: '#/components/schemas/PhoneDirection'
            - type: 'null'
          description: Call direction.
        variables:
          additionalProperties: true
          type: object
          title: Variables
          description: Stored scenario variables; empty when unavailable.
        duration:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Duration
          description: Duration in seconds; null before the call ends or if unavailable.
        recording_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Recording Url
          description: >-
            Signed download URL; prefer `permanent_recording_url` when
            available. Expires 24h after issue when recording endpoints are
            enabled, otherwise 7d. Null before the call ends or when no
            recording exists.
          deprecated: true
        permanent_recording_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Permanent Recording Url
          description: >-
            Stable recording link; requires your API key and does not expire.
            Null before the call ends, without a recording, or while recording
            endpoints are disabled (use `recording_url` during rollout).
        transcript:
          anyOf:
            - items:
                $ref: '#/components/schemas/PublicTranscriptMessage'
              type: array
            - type: 'null'
          title: Transcript
          description: >-
            Spoken messages in order; null before the call ends or when
            unavailable.
        report:
          anyOf:
            - $ref: '#/components/schemas/PublicCallReport'
            - type: 'null'
          description: >-
            Async post-call assessment for `completed` or `max_duration_reached`
            calls. Null until ready, for other terminal statuses, or permanently
            if analysis fails or is skipped. Bound polling; webhooks carry the
            final available outcome.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Created at; booking time for scheduled calls.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Last updated.
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
          description: Answered at.
        ended_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Ended At
          description: Ended at.
        scheduled_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Scheduled At
          description: >-
            Booked dial time for a scheduled call or platform retry; null for
            immediate calls.
        is_retry:
          type: boolean
          title: Is Retry
          description: Whether this is a platform-booked retry.
          default: false
        retry_attempt_number:
          type: integer
          title: Retry Attempt Number
          description: Dial attempt number, starting at 1.
          default: 1
        root_call_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Root Call Id
          description: First attempt's call ID; null on the first or only attempt.
        next_retry_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Next Retry At
          description: Next pending dial time in this retry group; null if none.
      additionalProperties: false
      type: object
      required:
        - id
        - created_at
        - updated_at
      title: PublicCallDetail
    ResponseMeta:
      properties:
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
          description: >-
            Opaque correlation ID, also in `X-Request-ID`. Reuses that request
            header when non-empty, otherwise generates an ID. If null, use the
            response header.
          examples:
            - 550e8400-e29b-41d4-a716-446655440000
      additionalProperties: false
      type: object
      title: ResponseMeta
      description: Request metadata.
    ValidationErrorPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: validation_error
          title: Type
          default: validation_error
        field_violations:
          items:
            $ref: '#/components/schemas/FieldViolation'
          type: array
          title: Field Violations
          description: Per-field validation details.
      additionalProperties: false
      type: object
      required:
        - message
        - field_violations
        - type
      title: ValidationErrorPayload
    UnauthorizedPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: unauthorized
          title: Type
          default: unauthorized
      additionalProperties: false
      type: object
      required:
        - message
        - type
      title: UnauthorizedPayload
    NotFoundPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: not_found
          title: Type
          default: not_found
      additionalProperties: false
      type: object
      required:
        - message
        - type
      title: NotFoundPayload
    InternalErrorPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: internal_error
          title: Type
          default: internal_error
      additionalProperties: false
      type: object
      required:
        - message
        - type
      title: InternalErrorPayload
    PhoneNumberBlockedPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: phone_number_blocked
          title: Type
          default: phone_number_blocked
        phone_number:
          type: string
          title: Phone Number
          description: The phone number that is blocked.
      additionalProperties: false
      type: object
      required:
        - message
        - phone_number
        - type
      title: PhoneNumberBlockedPayload
    CallLimitExceededPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: call_limit_exceeded
          title: Type
          default: call_limit_exceeded
        phone_number:
          type: string
          title: Phone Number
          description: The phone number that hit the limit.
        call_limit:
          type: integer
          title: Call Limit
          description: The per-number call limit that was reached.
      additionalProperties: false
      type: object
      required:
        - message
        - phone_number
        - call_limit
        - type
      title: CallLimitExceededPayload
    OutboundCallFailedPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: outbound_call_failed
          title: Type
          default: outbound_call_failed
        reason:
          type: string
          title: Reason
          description: Call-service failure reason; for diagnostics.
      additionalProperties: false
      type: object
      required:
        - message
        - reason
        - type
      title: OutboundCallFailedPayload
    ScenarioNotFoundPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: scenario_not_found
          title: Type
          default: scenario_not_found
        scenario_id:
          type: string
          title: Scenario Id
      additionalProperties: false
      type: object
      required:
        - message
        - scenario_id
        - type
      title: ScenarioNotFoundPayload
    ScenarioForbiddenPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: scenario_forbidden
          title: Type
          default: scenario_forbidden
        scenario_id:
          type: string
          title: Scenario Id
      additionalProperties: false
      type: object
      required:
        - message
        - scenario_id
        - type
      title: ScenarioForbiddenPayload
    ScenarioInvalidConfigPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: scenario_invalid_config
          title: Type
          default: scenario_invalid_config
        scenario_id:
          type: string
          title: Scenario Id
      additionalProperties: false
      type: object
      required:
        - message
        - scenario_id
        - type
      title: ScenarioInvalidConfigPayload
    NoOrganizationPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: no_organization
          title: Type
          default: no_organization
      additionalProperties: false
      type: object
      required:
        - message
        - type
      title: NoOrganizationPayload
    CallNotFoundPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: call_not_found
          title: Type
          default: call_not_found
        call_id:
          type: string
          title: Call Id
      additionalProperties: false
      type: object
      required:
        - message
        - call_id
        - type
      title: CallNotFoundPayload
    OauthInvalidRedirectUriPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: oauth_invalid_redirect_uri
          title: Type
          default: oauth_invalid_redirect_uri
        redirect_uri:
          type: string
          title: Redirect Uri
      additionalProperties: false
      type: object
      required:
        - message
        - redirect_uri
        - type
      title: OauthInvalidRedirectUriPayload
    SchedulingDisabledPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: scheduling_disabled
          title: Type
          default: scheduling_disabled
      additionalProperties: false
      type: object
      required:
        - message
        - type
      title: SchedulingDisabledPayload
    InvalidScheduleTimePayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: invalid_schedule_time
          title: Type
          default: invalid_schedule_time
      additionalProperties: false
      type: object
      required:
        - message
        - type
      title: InvalidScheduleTimePayload
    ScheduleConfigNotFoundPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: schedule_config_not_found
          title: Type
          default: schedule_config_not_found
        schedule_config_id:
          type: string
          title: Schedule Config Id
      additionalProperties: false
      type: object
      required:
        - message
        - schedule_config_id
        - type
      title: ScheduleConfigNotFoundPayload
    CallNotPendingPayload:
      properties:
        message:
          type: string
          title: Message
          description: For display; branch on `type`, not this text.
        type:
          type: string
          const: call_not_pending
          title: Type
          default: call_not_pending
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
      additionalProperties: false
      type: object
      required:
        - message
        - status
        - type
      title: CallNotPendingPayload
    CallStatus:
      type: string
      enum:
        - queued
        - in_progress
        - transferring
        - transferred
        - completed
        - timeout
        - user_rejected
        - max_duration_reached
        - failed
        - ringing
        - voicemail
        - dialing
        - cancelled
        - expired
        - scheduled
      title: CallStatus
    Language:
      type: string
      enum:
        - en
        - ar
        - ur
      title: Language
      description: Language codes in ISO 639-1
    PhoneDirection:
      type: string
      enum:
        - inbound
        - outbound
      title: PhoneDirection
    PublicTranscriptMessage:
      properties:
        role:
          type: string
          enum:
            - user
            - assistant
          title: Role
          description: 'Speaker: `user` (customer) or `assistant` (AI).'
        content:
          type: string
          title: Content
          description: Spoken text.
      additionalProperties: false
      type: object
      required:
        - role
        - content
      title: PublicTranscriptMessage
    PublicCallReport:
      properties:
        generated_at:
          type: string
          format: date-time
          title: Generated At
          description: Report generated at.
        outcome:
          $ref: '#/components/schemas/PublicCallOutcome'
          description: Call outcome assessment.
      additionalProperties: false
      type: object
      required:
        - generated_at
        - outcome
      title: PublicCallReport
    FieldViolation:
      properties:
        field:
          type: string
          title: Field
          description: Dot-separated invalid-field path.
          examples:
            - phone_number.country_code
        message:
          type: string
          title: Message
          description: Validation message.
          examples:
            - Must start with +
      additionalProperties: false
      type: object
      required:
        - field
        - message
      title: FieldViolation
    PublicCallOutcome:
      properties:
        status:
          type: string
          enum:
            - success
            - failure
            - error
          title: Status
          description: Outcome against scenario criteria; `error` means assessment failed.
          examples:
            - success
        reason:
          type: string
          title: Reason
          description: Outcome explanation.
        success_criteria:
          items:
            $ref: '#/components/schemas/PublicSuccessCriteriaResult'
          type: array
          title: Success Criteria
          description: Per-criterion results.
      additionalProperties: false
      type: object
      required:
        - status
        - reason
        - success_criteria
      title: PublicCallOutcome
    PublicSuccessCriteriaResult:
      properties:
        text:
          type: string
          title: Text
          description: Configured scenario criterion.
        achieved:
          type: boolean
          title: Achieved
          description: Whether the criterion was met.
        is_primary:
          type: boolean
          title: Is Primary
          description: Whether this is the primary scenario criterion.
      additionalProperties: false
      type: object
      required:
        - text
        - achieved
        - is_primary
      title: PublicSuccessCriteriaResult
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: API key from your Sarj.ai dashboard.

````

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