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

# Get webhook

> Retrieve the details of a specific webhook, including its subscribed events, endpoint, and signing secret.



## OpenAPI

````yaml https://api.sevalla.com/v3/openapi.json get /webhooks/{id}
openapi: 3.1.0
info:
  title: Sevalla API docs
  version: 1.0.0
servers:
  - url: https://api.sevalla.com/v3
security:
  - bearerAuth: []
paths:
  /webhooks/{id}:
    get:
      tags:
        - Webhooks
      summary: Get webhook
      description: >-
        Retrieve the details of a specific webhook, including its subscribed
        events, endpoint, and signing secret.
      operationId: getWebhookV3
      parameters:
        - schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            example: fb5e5168-4281-4bec-94c5-0d1584e9e657
          in: path
          name: id
          required: true
          description: Webhook identifier
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    description: Unique identifier for the webhook
                    example: fb5e5168-4281-4bec-94c5-0d1584e9e657
                  company_id:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    description: Identifier of the company that owns this webhook
                    example: fb5e5168-4281-4bec-94c5-0d1584e9e657
                  is_enabled:
                    type: boolean
                    description: >-
                      Whether the webhook is currently active and receiving
                      events
                    example: true
                  allowed_events:
                    type: array
                    items:
                      type: string
                      enum:
                        - APP_CREATE
                        - APP_UPDATE
                        - APP_DELETE
                        - APP_DEPLOY
                        - DATABASE_CREATE
                        - DATABASE_UPDATE
                        - DATABASE_DELETE
                        - STATIC_SITE_CREATE
                        - STATIC_SITE_UPDATE
                        - STATIC_SITE_DELETE
                        - STATIC_SITE_DEPLOY
                    description: >-
                      List of event types this webhook subscribes to.
                      `APP_CREATE` - application created. `APP_UPDATE` -
                      application updated. `APP_DELETE` - application deleted.
                      `APP_DEPLOY` - application deployed. `DATABASE_CREATE` -
                      database created. `DATABASE_UPDATE` - database updated.
                      `DATABASE_DELETE` - database deleted. `STATIC_SITE_CREATE`
                      - static site created. `STATIC_SITE_UPDATE` - static site
                      updated. `STATIC_SITE_DELETE` - static site deleted.
                      `STATIC_SITE_DEPLOY` - static site deployed.
                    example:
                      - APP_DEPLOY
                      - APP_CREATE
                  secret:
                    type: string
                    description: >-
                      Webhook signing secret used to verify event payloads.
                      Prefixed with whsec_.
                    example: whsec_abc123...
                  old_secret:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: >-
                      Previous signing secret, available temporarily after
                      rolling the secret to allow graceful migration
                    example: null
                  old_secret_expired_at:
                    anyOf:
                      - type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                      - type: 'null'
                    description: >-
                      Timestamp when the old secret expires, in ISO 8601 format.
                      Null if no old secret exists.
                    example: null
                  endpoint:
                    type: string
                    format: uri
                    description: URL where webhook events are delivered via HTTP POST
                    example: https://example.com/webhooks
                  description:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: Optional human-readable description for the webhook
                    example: Production deploy notifications
                  created_by:
                    type: string
                    description: Identifier of the API key that created the webhook
                    example: fb5e5168-4281-4bec-94c5-0d1584e9e657
                  updated_by:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: Identifier of the API key that last updated the webhook
                    example: null
                  created_at:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                    description: Timestamp when the webhook was created, in ISO 8601 format
                    example: '2025-01-30T00:00:00.000Z'
                  updated_at:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                    description: >-
                      Timestamp when the webhook was last modified, in ISO 8601
                      format
                    example: '2025-01-30T00:00:00.000Z'
                required:
                  - id
                  - company_id
                  - is_enabled
                  - allowed_events
                  - secret
                  - old_secret
                  - old_secret_expired_at
                  - endpoint
                  - description
                  - created_by
                  - updated_by
                  - created_at
                  - updated_at
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                    example: Unauthorized
                  status:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    description: HTTP status code
                    example: 401
                  data:
                    type: object
                    properties:
                      code:
                        description: Error tracking code for support reference
                        example: err-abc-123
                        type: string
                      message:
                        description: Additional error details or instructions
                        example: >-
                          If you need assistance, please contact support and
                          provide this error code.
                        type: string
                    additionalProperties: false
                required:
                  - message
                  - status
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                    example: Forbidden
                  status:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    description: HTTP status code
                    example: 403
                  data:
                    type: object
                    properties:
                      code:
                        description: Error tracking code for support reference
                        example: err-abc-123
                        type: string
                      message:
                        description: Additional error details or instructions
                        example: >-
                          If you need assistance, please contact support and
                          provide this error code.
                        type: string
                    additionalProperties: false
                required:
                  - message
                  - status
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                    example: Not found
                  status:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    description: HTTP status code
                    example: 404
                  data:
                    type: object
                    properties:
                      code:
                        description: Error tracking code for support reference
                        example: err-abc-123
                        type: string
                      message:
                        description: Additional error details or instructions
                        example: >-
                          If you need assistance, please contact support and
                          provide this error code.
                        type: string
                    additionalProperties: false
                required:
                  - message
                  - status
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                    example: Internal Server Error
                  status:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    description: HTTP status code
                    example: 500
                  data:
                    type: object
                    properties:
                      code:
                        description: Error tracking code for support reference
                        example: err-abc-123
                        type: string
                      message:
                        description: Additional error details or instructions
                        example: >-
                          If you need assistance, please contact support and
                          provide this error code.
                        type: string
                    additionalProperties: false
                required:
                  - message
                  - status
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication. Pass your API key as a Bearer token in the
        Authorization header.

````