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

# Get Webhook



## OpenAPI

````yaml get /v1/webhooks/
openapi: 3.0.2
info:
  title: Vocode Hosted API
  description: |2-

            Vocode's Hosted API helps you automate phone calls in minutes. 🚀

            ## Numbers

            You can buy phone lines and place agents on them.

            ## Calls

            You can start, end, and get information about calls.
            
  termsOfService: http://example.com/terms/
  contact:
    name: Support
    email: support@vocode.dev
  version: 1.0.0
servers:
  - url: https://api.vocode.dev
    description: Production environment
  - url: https://staging.vocode.dev
    description: Staging environment
security: []
tags:
  - name: numbers
    description: Operations with phone numbers.
  - name: calls
    description: Manage calls.
paths:
  /v1/webhooks/:
    get:
      tags:
        - webhooks
      summary: Get Webhook
      operationId: get_webhook
      parameters:
        - required: true
          schema:
            title: Id
            type: string
            format: uuid
          name: id
          in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Webhook:
      title: Webhook
      required:
        - id
        - user_id
        - subscriptions
        - url
      type: object
      properties:
        id:
          title: Id
          type: string
          format: uuid
        user_id:
          title: User Id
          type: string
          format: uuid
        subscriptions:
          type: array
          items:
            $ref: '#/components/schemas/EventType'
        url:
          title: Url
          type: string
        method:
          allOf:
            - $ref: '#/components/schemas/HTTPMethod'
          default: POST
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          title: Detail
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
    EventType:
      title: EventType
      enum:
        - event_message
        - event_action
        - event_phone_call_connected
        - event_phone_call_ended
        - event_transcript
        - event_recording
      type: string
      description: An enumeration.
    HTTPMethod:
      title: HTTPMethod
      enum:
        - GET
        - POST
      type: string
      description: An enumeration.
    ValidationError:
      title: ValidationError
      required:
        - loc
        - msg
        - type
      type: object
      properties:
        loc:
          title: Location
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````