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

# Retrieve a webhook subscription



## OpenAPI

````yaml api-reference/specs/webhooks.yaml GET /v1/webhook-subscriptions/{subscription_id}
openapi: 3.0.3
info:
  title: AssemblyAI Voice Agent Webhooks API
  description: >
    Subscribe to session and call lifecycle events for your voice agents.
    AssemblyAI

    POSTs a signed JSON payload to your URL when each event fires. See

    [Webhooks](/voice-agents/voice-agent-api/webhooks).
  version: 1.0.0
  termsOfService: https://www.assemblyai.com/legal/terms-of-service
  contact:
    name: API Support
    email: support@assemblyai.com
    url: https://www.assemblyai.com/docs/
servers:
  - url: https://agents.assemblyai.com
    description: Production server
    x-fern-server-name: Default
security: []
paths:
  /v1/webhook-subscriptions/{subscription_id}:
    parameters:
      - name: subscription_id
        in: path
        required: true
        schema:
          type: string
          example: 0d75ebd7-937c-495c-b638-ba582ec05b39
    get:
      summary: Retrieve a webhook subscription
      operationId: getWebhookSubscription
      responses:
        '200':
          description: The subscription.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookSubscription'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - apiKey: []
components:
  schemas:
    WebhookSubscription:
      type: object
      description: A subscription. The signing secret is never returned, only its version.
      properties:
        id:
          type: string
        agent_id:
          type: string
          nullable: true
        url:
          type: string
        events:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEvent'
        enabled:
          type: boolean
        secret_version:
          type: integer
          example: 1
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    WebhookEvent:
      type: string
      enum:
        - session.started
        - session.completed
        - call.connected
        - call.ended
        - call.failed
    Error:
      type: object
      properties:
        detail:
          type: string
          example: Unauthorized
  responses:
    Unauthorized:
      description: Unauthorized. Invalid or missing API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The subscription was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Your AssemblyAI API key in the Authorization header (raw key; a Bearer
        prefix is also accepted).

````