> ## Documentation Index
> Fetch the complete documentation index at: https://outlit-codex-platform-actions-create-update-cli.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get destination

> Get one configured Outlit automation destination by id with masked configuration only. Read-only.



## OpenAPI

````yaml /openapi.json get /api/destinations/{id}
openapi: 3.1.0
info:
  title: Outlit API
  summary: Public Outlit Platform and Ingest APIs.
  description: >-
    Canonical OpenAPI specification for the public Outlit API surfaces
    documented at docs.outlit.ai.
  version: 1.0.0
servers:
  - url: https://app.outlit.ai
security:
  - bearerAuth: []
tags:
  - name: Platform API
    description: >-
      Authenticated API key routes for customer intelligence tools and
      integration management.
  - name: Ingest API
    description: Public-key event ingestion routes used by Outlit SDKs.
paths:
  /api/destinations/{id}:
    get:
      tags:
        - Platform API
      summary: Get destination
      description: >-
        Get one configured Outlit automation destination by id with masked
        configuration only. Read-only.
      operationId: getDestination
      parameters:
        - name: id
          in: path
          required: true
          description: Destination ID.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Get destination completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDestinationCommandSuccess'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            The API key is valid but does not have the required agent read
            scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandErrorEnvelope'
        '404':
          description: >-
            No destination was found for the authenticated organization and
            requested id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandErrorEnvelope'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          description: The platform could not complete the command.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommandErrorEnvelope'
components:
  schemas:
    GetDestinationCommandSuccess:
      type: object
      required:
        - ok
        - commandId
        - commandVersion
        - correlationId
        - result
      properties:
        ok:
          type: boolean
          const: true
        commandId:
          type: string
          const: destination.get
        commandVersion:
          type: integer
          const: 1
        correlationId:
          type: string
        result:
          allOf:
            - $ref: '#/components/schemas/CommandResultBase'
            - type: object
              properties:
                operationId:
                  type: string
                  const: destination.get
                data:
                  type: object
                  required:
                    - destination
                  properties:
                    destination:
                      $ref: '#/components/schemas/DestinationRead'
                  additionalProperties: false
      additionalProperties: false
    CommandErrorEnvelope:
      type: object
      required:
        - ok
        - commandId
        - commandVersion
        - error
      properties:
        ok:
          type: boolean
          const: false
        commandId:
          type: string
        commandVersion:
          type: integer
          minimum: 1
        error:
          type: object
          required:
            - code
            - message
            - correlationId
            - retryable
          properties:
            code:
              type: string
              enum:
                - validation_failed
                - authorization_denied
                - conflict
                - not_found
                - rate_limited
                - transient_failure
            message:
              type: string
            correlationId:
              type: string
            retryable:
              type: boolean
            details:
              type: object
              additionalProperties: true
          additionalProperties: false
      additionalProperties: false
    CommandResultBase:
      type: object
      required:
        - operationId
        - status
        - resources
        - data
        - warnings
      properties:
        operationId:
          type: string
        status:
          type: string
          const: completed
        resources:
          type: array
          items:
            $ref: '#/components/schemas/CommandResource'
        data:
          type: object
          additionalProperties: true
        warnings:
          type: array
          items:
            type: string
        auditId:
          type: string
      additionalProperties: false
    DestinationRead:
      type: object
      required:
        - id
        - key
        - name
        - description
        - provider
        - kind
        - enabled
        - maskedConfig
        - syncStatus
        - lastSyncedAt
        - providerErrorCode
        - providerErrorMessage
        - isDefault
        - schemaVersion
        - configHash
        - archivedAt
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          format: uuid
        key:
          type: string
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        provider:
          $ref: '#/components/schemas/DestinationProvider'
        kind:
          $ref: '#/components/schemas/DestinationKind'
        enabled:
          type: boolean
        maskedConfig:
          anyOf:
            - type: object
              additionalProperties: true
            - type: 'null'
        syncStatus:
          $ref: '#/components/schemas/DestinationSyncStatus'
        lastSyncedAt:
          type:
            - string
            - 'null'
          format: date-time
        providerErrorCode:
          type:
            - string
            - 'null'
        providerErrorMessage:
          type:
            - string
            - 'null'
        isDefault:
          type: boolean
        schemaVersion:
          type: string
        configHash:
          type:
            - string
            - 'null'
        archivedAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      additionalProperties: false
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
      additionalProperties: true
    CommandResource:
      type: object
      required:
        - type
        - id
      properties:
        type:
          type: string
        id:
          type: string
      additionalProperties: false
    DestinationProvider:
      type: string
      enum:
        - SLACK
        - OUTPOST
        - WEBHOOK
    DestinationKind:
      type: string
      enum:
        - SLACK_CHANNEL
        - WEBHOOK_ENDPOINT
    DestinationSyncStatus:
      type: string
      enum:
        - PENDING_PROVIDER_SYNC
        - SYNCED
        - PROVIDER_ERROR
        - DISABLED_BY_PROVIDER
    ValidationIssue:
      type: object
      required:
        - path
        - message
      properties:
        path:
          type: array
          items:
            type:
              - string
              - number
        message:
          type: string
      additionalProperties: false
  responses:
    Unauthorized:
      description: Invalid or missing API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Invalid credentials
    InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Outlit API key using the Bearer ok_... format.

````