> ## 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 gateway



## OpenAPI

````yaml /0.14/openapi.json get /api/v1/gateways/{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/gateways/{id}:
    get:
      tags:
        - Gateways
      summary: Get a gateway
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: The gateway, with its active webhooks
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayDetail'
        '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:
    GatewayDetail:
      allOf:
        - $ref: '#/components/schemas/Gateway'
        - type: object
          properties:
            webhooks:
              type: array
              items:
                $ref: '#/components/schemas/GatewayWebhook'
              description: >-
                Active webhooks bound to this gateway, newest first, with
                secrets masked
          required:
            - webhooks
    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
    Gateway:
      type: object
      properties:
        id:
          type: string
          example: gtw_6a2d4f81-...
        type:
          type: string
          description: Integration this gateway speaks
          example: servicenow
        active:
          type: boolean
        org_id:
          type: string
          example: org_460b541c-...
        tenant_id:
          type: string
          example: ten_115bea44-...
        user_id:
          type: string
          example: usr_2b91c7de-...
        metadata:
          type: object
          nullable: true
          additionalProperties:
            nullable: true
          description: Type-specific connection settings
          example:
            servicenow_assigned_group_id: net-ops
            environment: prod
        inbound_prompt:
          type: string
          nullable: true
          description: Take/skip and routing rules applied to incoming tickets
        outbound_prompt:
          type: string
          nullable: true
          description: Status, comment and escalation rules for ticket writes
        inbound_override_enabled:
          type: boolean
          description: Off leaves the default ticket rules in force
        outbound_override_enabled:
          type: boolean
        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
        - type
        - active
        - org_id
        - tenant_id
        - user_id
        - metadata
        - inbound_prompt
        - outbound_prompt
        - inbound_override_enabled
        - outbound_override_enabled
        - created_at
        - updated_at
    GatewayWebhook:
      type: object
      properties:
        id:
          type: string
          example: whk_9c31e07b-...
        name:
          type: string
          example: ServiceNow inbound
        path:
          type: string
          description: Unique ingest path this webhook answers on
          example: sn-net-ops-prod
        secret:
          type: string
          description: >-
            Masked - only the last six characters of the signing secret are
            returned
          example: '****a91c7d'
        source_type:
          type: string
          example: servicenow
        event_type:
          type: string
          example: incident.created
        active:
          type: boolean
          enum:
            - true
          description: Inactive webhooks are not returned
        description:
          type: string
          nullable: true
        org_id:
          type: string
          example: org_460b541c-...
        tenant_id:
          type: string
          example: ten_115bea44-...
        gateway_id:
          type: string
          example: gtw_6a2d4f81-...
        last_used_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
        - name
        - path
        - secret
        - source_type
        - event_type
        - active
        - description
        - org_id
        - tenant_id
        - gateway_id
        - last_used_at
        - created_at
        - updated_at
  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.

````