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

# Retrieve an event destination

> Returns a single event destination by ID.



## OpenAPI

````yaml /api-reference/v2.json get /event-destinations/{destination_id}
openapi: 3.1.1
info:
  title: Deck API
  version: 2.0.0
servers:
  - url: https://api.deck.co/v2
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Agents
  - name: Components
  - name: Credentials
  - name: Event Destinations
  - name: Events
  - name: Sessions
  - name: Sources
  - name: Storage
  - name: Task Runs
  - name: Tasks
  - name: Test
paths:
  /event-destinations/{destination_id}:
    get:
      tags:
        - Event Destinations
      summary: Retrieve an event destination
      description: Returns a single event destination by ID.
      operationId: getEventDestination
      parameters:
        - name: destination_id
          in: path
          required: true
          schema:
            type: string
          description: Unique identifier for the event destination (prefixed with `evtd_`).
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/EventDestinationResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/EventDestinationResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/EventDestinationResponse'
        '400':
          description: Bad request — validation error or malformed input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
        '401':
          description: Unauthorized.
        '403':
          description: Forbidden.
        '404':
          description: Not found — the requested resource does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: >-
            Conflict — the request is valid but cannot be completed in the
            current state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: >-
            Unprocessable content — the request body is understood but contains
            invalid values.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    EventDestinationResponse:
      required:
        - id
        - object
        - name
        - status
        - type
        - events
        - created_at
        - updated_at
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the event destination, prefixed with `evtd_`.
        object:
          type: string
          description: Always `event_destination`.
        name:
          type: string
          description: Display name for the event destination.
        status:
          type: string
          description: 'Destination status: `pending_verification`, `active`, or `inactive`.'
        type:
          type: string
          enum:
            - webhook
            - aws_sqs
            - aws_kinesis
            - aws_s3
            - aws_eventbridge
            - gcp_pubsub
            - rabbitmq
            - azure_servicebus
            - hookdeck
          description: >-
            Destination type. The endpoint configuration is returned under a
            property whose name equals this value (for example, a `webhook`
            destination returns a `webhook` object).
        events:
          type: array
          items:
            type: string
          description: Event types this destination is subscribed to.
        created_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of when the resource was created.
        updated_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of when the resource was last updated.
        request_id:
          type:
            - 'null'
            - string
          description: >-
            Unique identifier for the API request. Include this when contacting
            support.
        webhook:
          type: object
          required:
            - url
          properties:
            url:
              type: string
              description: Absolute `https` or `http` URL that receives event deliveries.
          description: >-
            Configuration returned for a `webhook` destination (credentials are
            never returned).
        aws_sqs:
          type: object
          required:
            - queue_url
          properties:
            queue_url:
              type: string
              description: URL of the destination Amazon SQS queue.
          description: >-
            Configuration returned for a `aws_sqs` destination (credentials are
            never returned).
        aws_kinesis:
          type: object
          required:
            - stream_name
            - region
          properties:
            stream_name:
              type: string
              description: Name of the Amazon Kinesis stream.
            region:
              type: string
              description: AWS region of the stream.
          description: >-
            Configuration returned for a `aws_kinesis` destination (credentials
            are never returned).
        aws_s3:
          type: object
          required:
            - bucket
            - region
          properties:
            bucket:
              type: string
              description: Name of the destination Amazon S3 bucket.
            region:
              type: string
              description: AWS region of the bucket.
          description: >-
            Configuration returned for a `aws_s3` destination (credentials are
            never returned).
        aws_eventbridge:
          type: object
          required:
            - event_bus_name
            - region
          properties:
            event_bus_name:
              type: string
              description: Name of the Amazon EventBridge event bus.
            region:
              type: string
              description: AWS region of the event bus.
          description: >-
            Configuration returned for a `aws_eventbridge` destination
            (credentials are never returned).
        gcp_pubsub:
          type: object
          required:
            - project_id
            - topic
          properties:
            project_id:
              type: string
              description: Google Cloud project ID.
            topic:
              type: string
              description: 'Pub/Sub topic name. Accepted alias: `topic_name`.'
          description: >-
            Configuration returned for a `gcp_pubsub` destination (credentials
            are never returned).
        rabbitmq:
          type: object
          required:
            - exchange
            - server_url
          properties:
            exchange:
              type: string
              description: Name of the RabbitMQ exchange.
            server_url:
              type: string
              description: >-
                RabbitMQ host as `host[:port]` (for example `rabbitmq:5672`).
                You may instead pass a full AMQP URL with embedded credentials;
                Deck extracts the host, username, and password from it.
          description: >-
            Configuration returned for a `rabbitmq` destination (credentials are
            never returned).
        azure_servicebus:
          type: object
          required:
            - name
          properties:
            name:
              type: string
              description: >-
                Name of the Service Bus queue or topic. Accepted alias:
                `queue_name`.
          description: >-
            Configuration returned for a `azure_servicebus` destination
            (credentials are never returned).
        hookdeck:
          type: object
          properties: {}
          description: >-
            Configuration returned for a `hookdeck` destination (credentials are
            never returned).
      description: >-
        An event destination object representing an endpoint that receives
        platform events.
    ValidationErrorResponse:
      required:
        - errors
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
          description: RFC 9110 problem type URI.
        title:
          type:
            - 'null'
            - string
          description: Short summary of the validation failure.
        status:
          type:
            - 'null'
            - integer
          description: HTTP status code.
          format: int32
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Validation errors grouped by field name.
        traceId:
          type:
            - 'null'
            - string
          description: Request trace identifier.
      description: Validation error returned for malformed requests (HTTP 400).
    ErrorResponse:
      required:
        - errors
        - request_id
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/TaskRunError'
          description: One or more errors that describe what went wrong.
        request_id:
          type: string
          description: Unique identifier for this request, useful for tracing.
      description: Standard error response.
    TaskRunError:
      required:
        - type
        - code
        - message
      type: object
      properties:
        type:
          type: string
          description: >-
            Error category (e.g. `source`, `auth`, `task`, `rate_limit`).
            Determines the class of failure.
        code:
          type: string
          description: Machine-readable error code. Use this for programmatic handling.
        message:
          type: string
          description: >-
            Human-readable explanation. Do not rely on this for logic — it may
            change.
        field:
          type:
            - 'null'
            - string
          description: The input field that caused the error, when applicable.
      description: Error details for a failed task run. Same structure as API-level errors.
  securitySchemes:
    BearerAuth:
      type: http
      description: Secret key (sk_live_...)
      scheme: bearer
      bearerFormat: JWT

````