# Get Disposition Codes

> GET /api/v1/organizations/disposition-codes — request parameters and responses from the Menace Voice API schema.

`GET /api/v1/organizations/disposition-codes`

{/* Generated by scripts/sync_docs_api.mjs. Edit the API schema source to change the contract. */}

See [authentication](/api-reference/authentication) for workspace API access. Public embed and artifact endpoints use their documented session or access tokens.

## API contract for documentation tools

Generated from the OpenAPI schema. Do not infer a different parameter type from an example. Authentication headers are alternatives as explained in the authentication guide.

### Parameters

| Name | Location | Type | Required | Description and constraints |
| --- | --- | --- | --- | --- |
| authorization | header | string or null | no |  |
| X-API-Key | header | string or null | no |  |

### Response 200

Successful Response

application/json: DispositionCodesResponse (object).

| Field | Type | Required | Description and constraints |
| --- | --- | --- | --- |
| codes | array of string | yes | Every code that can appear in `gathered_context.mapped_call_disposition`: the platform's built-in dispositions plus any custom mapped codes this organization's runs have produced. |
| end_task_reason_codes | array of string | yes | Disposition codes defined by Pipecat's EndTaskReason enum. |
| system_codes | array of string | yes | Only the platform's built-in dispositions, without the custom codes this organization's runs have produced. This is the set a disposition mapping translates *from*, so the mapping editor seeds its rows here: `codes` also contains mapped codes, which are the targets of a mapping rather than its sources. |

### Response 404

Not found

### Response 422

Validation Error

application/json: HTTPValidationError (object).

| Field | Type | Required | Description and constraints |
| --- | --- | --- | --- |
| detail | array of ValidationError (object) | no |  |

## OpenAPI

````yaml api-reference/openapi.json get /api/v1/organizations/disposition-codes
openapi: 3.1.0
info:
  title: Menace Voice API
  description: API for Menace Voice agents
  version: 1.0.0
servers:
  - url: https://voice.menaceui.com
    description: Production
  - url: http://localhost:8000
    description: Local development
paths:
  /api/v1/organizations/disposition-codes:
    get:
      tags:
        - main
        - organizations
      summary: Get Disposition Codes
      description: >-
        Serve the disposition catalog so clients never hardcode the list.


        Built-in codes come from the enums that write the field; custom codes
        are

        whatever this organization's finished runs have actually recorded, so an

        org with a disposition mapping still gets a usable filter.
      operationId: get_disposition_codes_api_v1_organizations_disposition_codes_get
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: "null"
            title: Authorization
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: "null"
            title: X-Api-Key
      responses:
        "200":
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DispositionCodesResponse"
        "404":
          description: Not found
        "422":
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/HTTPValidationError"
components:
  schemas:
    DispositionCodesResponse:
      properties:
        codes:
          items:
            type: string
          type: array
          title: Codes
          description: "Every code that can appear in
            `gathered_context.mapped_call_disposition`: the platform's built-in
            dispositions plus any custom mapped codes this organization's runs
            have produced."
        end_task_reason_codes:
          items:
            type: string
          type: array
          title: End Task Reason Codes
          description: Disposition codes defined by Pipecat's EndTaskReason enum.
        system_codes:
          items:
            type: string
          type: array
          title: System Codes
          description: "Only the platform's built-in dispositions, without the custom
            codes this organization's runs have produced. This is the set a
            disposition mapping translates *from*, so the mapping editor seeds
            its rows here: `codes` also contains mapped codes, which are the
            targets of a mapping rather than its sources."
      type: object
      required:
        - codes
        - end_task_reason_codes
        - system_codes
      title: DispositionCodesResponse
      description: Disposition codes selectable in org-wide run filters.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: "#/components/schemas/ValidationError"
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
````
