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

# Get a ticket

> The job a ticket opened is found with `GET /api/v1/jobs?ticket_id=`.



## OpenAPI

````yaml /0.20/openapi.json get /api/v1/tickets/{id}
openapi: 3.0.3
info:
  title: 2501 Public API
  version: v1
  description: >-
    The stable, versioned HTTP API for driving 2501 as code. See the API
    Overview for authentication, the org_id rule, cursor pagination, and the
    error envelope.
servers:
  - url: https://{command_center_host}
    variables:
      command_center_host:
        default: your-command-center-host
        description: Your Command Center host
security:
  - bearerAuth: []
paths:
  /api/v1/tickets/{id}:
    get:
      tags:
        - Tickets
      summary: Get a ticket
      description: The job a ticket opened is found with `GET /api/v1/jobs?ticket_id=`.
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: The ticket
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ticket'
        '400':
          description: >-
            Bad request - a field is missing, malformed, or not allowed
            (VALIDATION_FAILED, BAD_REQUEST, INVALID_CURSOR)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            No credentials, or a key that is invalid, revoked, or expired
            (UNAUTHORIZED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Authenticated but not allowed (FORBIDDEN, ORG_ACCESS_DENIED,
            STEP_UP_REFUSED, TWO_FACTOR_ENROLLMENT_REQUIRED,
            LICENSE_CAP_REACHED, LICENSE_EXPIRED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such row that this caller can see (NOT_FOUND)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Ticket:
      type: object
      properties:
        id:
          type: string
          example: tck_4e8a2c1b-...
        org_id:
          type: string
        gateway_id:
          type: string
          description: The gateway that brought the ticket in
        external_id:
          type: string
          description: The ticket's id in the source system
        number:
          type: string
          nullable: true
          example: INC0010042
        status:
          type: string
          enum:
            - pending
            - processed
            - duplicate
            - failed
            - skipped
          example: processed
        type:
          type: string
          enum:
            - incident
            - change_request
          example: incident
        origin:
          type: string
          enum:
            - gateway
            - benchmark
          example: gateway
          description: gateway for a real ticket, benchmark for one a benchmark run opened
        ingestion_source:
          type: string
          nullable: true
          enum:
            - webhook
            - pull
            - api
            - null
          description: How the ticket reached 2501
        description:
          type: string
        is_duplicate:
          type: boolean
        original_ticket_id:
          type: string
          nullable: true
          description: The ticket this one duplicates; null unless is_duplicate
        duplicate_type:
          type: string
          nullable: true
        duplicate_reason:
          type: string
          nullable: true
        target_hosts:
          type: array
          items:
            type: string
        source_url:
          type: string
          nullable: true
        external_created_at:
          type: string
          nullable: true
          format: date-time
          example: '2026-08-26T10:00:26.380Z'
        created_at:
          type: string
          format: date-time
          example: '2026-08-26T10:00:26.380Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-08-26T10:00:26.380Z'
      required:
        - id
        - org_id
        - gateway_id
        - external_id
        - number
        - status
        - type
        - origin
        - ingestion_source
        - description
        - is_duplicate
        - original_ticket_id
        - duplicate_type
        - duplicate_reason
        - target_hosts
        - source_url
        - external_created_at
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        code:
          type: string
          example: VALIDATION_FAILED
        message:
          type: string
          example: Validation failed
        request_id:
          type: string
          example: req_3702b7e7-...
        field:
          type: string
          description: Set when one input is at fault
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
            required:
              - field
              - message
          description: Set when several inputs are at fault
        details:
          type: object
          additionalProperties:
            nullable: true
      required:
        - code
        - message
        - request_id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API key minted in Command Center (Settings -> API Keys), sent as
        `Authorization: Bearer 2501_ak_...`. A Command Center session cookie is
        also accepted.

````

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