dbt Labs Webhooks API

The Webhooks API from dbt Labs, for webhooks.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 11

GET /api/v3/accounts/{account_id}/webhooks/event/{event_id} Retrieve webhooks event #
GET /api/v3/accounts/{account_id}/webhooks/event/{event_id}/receipts List webhooks event receipts #
GET /api/v3/accounts/{account_id}/webhooks/receipt/{receipt_id} Retrieve webhooks receipt #
GET /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id} Retrieve webhooks subscription #
PUT /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id} Update webhooks subscription #
DELETE /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id} Destroy webhooks subscription #
GET /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id}/event/{event_id}/receipt List webhooks subscription event receipt #
GET /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id}/events List webhooks events #
GET /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id}/test Test webhooks subscription #
GET /api/v3/accounts/{account_id}/webhooks/subscriptions List webhooks subscriptions #
POST /api/v3/accounts/{account_id}/webhooks/subscriptions Create webhooks subscription #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dbtlabs:dbtlabs-webhooks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dbtlabs-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: dbt Cloud API v3 Webhooks API
  version: 3.0.0
  description: '# How to use this API


    The dbt Cloud API v3 contains endpoints for programmatic administration of your dbt Cloud account.

    With it, you can replicate resources across projects, accounts, and environments, or standardize project

    creation for business teams. For endpoints related to jobs and runs, refer to the

    Discovery API or dbt Cloud API v2.


    The API docs are generated from an openapi spec defined in the

    dbt-cloud-openapi-spec

    repository. If you find issues in these docs or have questions about using the dbt Cloud

    API, please open an issue in the dbt-cloud-openapi-spec repo or contact support@getdbt.com.


    ## Authentication


    To authenticate an application with the dbt Cloud API, navigate to the

    Account Settings page and go to Personal Tokens from the left sidebar. Create one if you don''t have one already.

    If you cannot access this page, confirm that your dbt Cloud account has access to the API,

    and that you are using the hosted version of dbt Cloud. If dbt Cloud is running inside of a VPC

    in an Enterprise account, contact your account manager for help finding your account-scoped Personal Access Token.


    Once you''ve found your Personal Access Token (PAT) for your account, use it in the Authorization header of requests to the dbt Cloud API.

    Be sure to include the `Token` prefix in the Authorization header, or the request will fail with a

    "401 Unauthorized" error.


    *Note: `Bearer` can be used in place of `Token` in the Authorization header. Both syntaxes are equivalent.*


    **Headers**

    ```

    Accept: application/json

    Authorization: Token

    ```


    ## Pagination


    All top-level API resources support bulk fetches using the "list" or `GET` API methods. These API methods accept `limit` and `offset` query parameters that you can use together to paginate results and return a subset of those results.


    * Offset: Specifies how many records to skip. Can be an integer 0 and higher.

    * Limit: Specifies the maximum records you want to retrieve in a single request. Can be an integer up to 100. This limit makes responses easier to handle for servers and people.


    Endpoints that support pagination include some useful extra information about the pagination state. For example:


    ```json

    {

    data: [...],

    extra: {

    // How the results were filtered

    filters: {...},

    // The order of the results

    order_by: "id",

    // The pagination state

    pagination: {

    // The number of records returned in this response

    count: 5,

    // The total number of available records

    total_count: 10,

    }


    }

    }

    ````


    ## Example request


    The following example uses the list projects endpoint to list the projects that your token is authorized to access.

    This request skips the first 10 projects and lists the next 10 projects.

    Be sure to replace `` in the Authorization header with your actual API token and `` with your actual account ID.


    ```bash

    curl --request GET \

    --url ''https://cloud.getdbt.com/api/v3/accounts//projects/?limit=10&offset=5'' \

    --header ''Content-Type: application/json'' \

    --header ''Authorization: Token ''

    ```'
  termsOfService: https://www.getdbt.com/terms-of-service
  contact:
    email: support@getdbt.com
servers:
- url: https://cloud.getdbt.com/
  description: Production (US)
- url: https://{account_prefix}.us1.dbt.com/
  description: Production (US)
  variables:
    account_prefix:
      default: ab123
      description: Your unique account prefix. Can be found on your account settings page.
- url: https://emea.dbt.com/
  description: Production (Europe)
- url: https://au.dbt.com/
  description: Production (AU)
tags:
- name: Webhooks
paths:
  /api/v3/accounts/{account_id}/webhooks/event/{event_id}:
    get:
      operationId: RetrieveWebhooksEvent
      description: 'Get a specific event given an event_id.

        This endpoint is deprecated and should not be called anymore.'
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: event_id
        schema:
          type: string
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      tags:
      - Webhooks
      security:
      - BearerAuthentication: []
      deprecated: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventResponseEnvelope'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: Retrieve webhooks event
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Retrieve Webhooks Event
  /api/v3/accounts/{account_id}/webhooks/event/{event_id}/receipts:
    get:
      operationId: ListWebhooksEventReceipts
      description: 'Get all receipts for a given event id.

        This endpoint is deprecated and should not be called anymore.'
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: event_id
        schema:
          type: string
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      tags:
      - Webhooks
      security:
      - BearerAuthentication: []
      deprecated: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWebhooksReceiptsResponseEnvelope'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: List webhooks event receipts
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: List Webhooks Event Receipts
  /api/v3/accounts/{account_id}/webhooks/receipt/{receipt_id}:
    get:
      operationId: RetrieveWebhooksReceipt
      description: 'Get a specific receipt given its id.

        This endpoint is deprecated and should not be called anymore.'
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: path
        name: receipt_id
        schema:
          type: string
        required: true
      tags:
      - Webhooks
      security:
      - BearerAuthentication: []
      deprecated: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWebhooksReceiptResponseEnvelope'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: Retrieve webhooks receipt
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Retrieve Webhooks Receipt
  /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id}:
    get:
      operationId: RetrieveWebhooksSubscription
      description: Get a specific subscription with a subscription id
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: path
        name: subscription_id
        schema:
          type: string
        required: true
      tags:
      - Webhooks
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResponseEnvelope'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: Retrieve webhooks subscription
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Retrieve Webhooks Subscription
    put:
      operationId: UpdateWebhooksSubscription
      description: Edit a subscription given a subscription id
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: subscription_id
        schema:
          type: string
        required: true
      tags:
      - Webhooks
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SubscriptionRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SubscriptionRequest'
        required: true
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateSubscriptionResponseEnvelope'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: Update webhooks subscription
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Update Webhooks Subscription
    delete:
      operationId: DestroyWebhooksSubscription
      description: Delete a specific subscription
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: subscription_id
        schema:
          type: string
        required: true
      tags:
      - Webhooks
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSubscriptionResponseEnvelope'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: Destroy webhooks subscription
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Destroy Webhooks Subscription
  /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id}/event/{event_id}/receipt:
    get:
      operationId: ListWebhooksSubscriptionEventReceipt
      description: Get the receipt for a given subscription id and event id.
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: event_id
        schema:
          type: string
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: path
        name: subscription_id
        schema:
          type: string
        required: true
      tags:
      - Webhooks
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWebhooksReceiptsResponseEnvelope'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: List webhooks subscription event receipt
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: List Webhooks Subscription Event Receipt
  /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id}/events:
    get:
      operationId: ListWebhooksEvents
      description: Get all events for a specific subscription
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: path
        name: subscription_id
        schema:
          type: string
        required: true
      tags:
      - Webhooks
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedWebhooksEvents'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: List webhooks events
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: List Webhooks Events
  /api/v3/accounts/{account_id}/webhooks/subscription/{subscription_id}/test:
    get:
      operationId: TestWebhooksSubscription
      description: Test the client endpoint for a given subscription
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: path
        name: subscription_id
        schema:
          type: string
        required: true
      tags:
      - Webhooks
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestSubscriptionResponseEnvelope'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: Test webhooks subscription
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Test Webhooks Subscription
  /api/v3/accounts/{account_id}/webhooks/subscriptions:
    get:
      operationId: ListWebhooksSubscriptions
      description: Given an account id list all webhook subscriptions
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: query
        name: limit
        schema:
          type: integer
        description: The maximum number of items to return.
      - in: query
        name: offset
        schema:
          type: integer
        description: The number of items to skip before starting to collect the result set.
      tags:
      - Webhooks
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedWebhooksSubscriptions'
          description: ''
      summary: List webhooks subscriptions
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: List Webhooks Subscriptions
    post:
      operationId: CreateWebhooksSubscription
      description: Create a new webhook subscription
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: limit
        schema:
          type: integer
        description: The maximum number of items to return.
      - in: query
        name: offset
        schema:
          type: integer
        description: The number of items to skip before starting to collect the result set.
      tags:
      - Webhooks
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SubscriptionRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SubscriptionRequest'
        required: true
      security:
      - BearerAuthentication: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSubscriptionResponseEnvelope'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: ''
      summary: Create webhooks subscription
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Create Webhooks Subscription
components:
  schemas:
    ListWebhooksReceiptsResponseEnvelope:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Receipt'
        status:
          $ref: '#/components/schemas/WebhookResponseStatus'
      required:
      - data
      - status
    PaginationExtra:
      type: object
      properties:
        pagination:
          $ref: '#/components/schemas/Pagination'
        filters:
          $ref: '#/components/schemas/Filters'
      required:
      - filters
      - pagination
    DeleteSubscriptionResponseData:
      type: object
      properties:
        id:
          type: string
      required:
      - id
    EventResponseEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Event'
        status:
          $ref: '#/components/schemas/WebhookResponseStatus'
      required:
      - data
      - status
    NotFound:
      type: object
      properties:
        data:
          type:
          - object
          - 'null'
          additionalProperties: {}
        status:
          $ref: '#/components/schemas/NotFoundStatus'
      required:
      - status
    GetWebhooksReceiptResponseEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Receipt'
        status:
          $ref: '#/components/schemas/WebhookResponseStatus'
      required:
      - data
      - status
    Event:
      type: object
      properties:
        id:
          type: string
        subscription_id:
          type: string
        account_identifier:
          type: string
        job_id:
          type: string
        trigger_event_type:
          type: string
        payload:
          type: string
        http_status_code:
          type: string
        account_id:
          type: string
      required:
      - account_id
      - account_identifier
      - http_status_code
      - id
      - job_id
      - payload
      - subscription_id
      - trigger_event_type
    Receipt:
      type: object
      properties:
        id:
          type: string
        event_id:
          type: string
        subscription_id:
          type: string
        dispatched_at:
          type: string
        http_status_code:
          type: string
        error_info:
          type: string
        request_body:
          type: string
        request_headers:
          type: string
        response_body:
          type: string
      required:
      - dispatched_at
      - error_info
      - event_id
      - http_status_code
      - id
      - request_body
      - request_headers
      - response_body
      - subscription_id
    DeleteSubscriptionResponseStatus:
      type: object
      properties:
        code:
          type: integer
        is_success:
          type: boolean
      required:
      - code
      - is_success
    SubscriptionResponseEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Subscription'
        status:
          $ref: '#/components/schemas/WebhookResponseStatus'
      required:
      - data
      - status
    Filters:
      type: object
      properties:
        offset:
          type: integer
        limit:
          type: integer
      required:
      - limit
      - offset
    PaginatedWebhooksSubscriptions:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Subscription'
        status:
          $ref: '#/components/schemas/WebhookResponseStatus'
        extra:
          $ref: '#/components/schemas/PaginationExtra'
      required:
      - data
      - extra
      - status
    NotFoundStatus:
      type: object
      properties:
        code:
          type: integer
          default: 404
        is_success:
          type: boolean
          description: Whether the request was successful or not
        user_message:
          type: string
          description: End-user friendly success or error message
        developer_message:
          type: string
          description: Developer friendly success or error message
      required:
      - developer_message
      - is_success
      - user_message
    TestSubscriptionResponseData:
      type: object
      properties:
        event_id:
          type: string
      required:
      - event_id
    Pagination:
      type: object
      properties:
        total_count:
          type: integer
        count:
          type: integer
      required:
      - count
      - total_count
    UpdateSubscriptionResponseEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Subscription'
        status:
          $ref: '#/components/schemas/WebhookResponseStatus'
      required:
      - data
      - status
    DeleteSubscriptionResponseEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/DeleteSubscriptionResponseData'
        status:
          $ref: '#/components/schemas/DeleteSubscriptionResponseStatus'
      required:
      - data
      - status
    SubscriptionRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
          description: Webhook name
        description:
          type: string
          minLength: 1
          description: Webhook description
        event_types:
          type: array
          items: {}
          description: Event types that trigger this webhook. Must not be empty.
        job_ids:
          type: array
          items:
            type: integer
            format: int64
          description: Job IDs that trigger this webhook. Leave empty to trigger for all jobs.
        client_url:
          type: string
          minLength: 1
          description: Endpoint where events are sent
        active:
          type: boolean
          description: Whether or not this Webhook is currently active
        http_status_code:
          type: string
          minLength: 1
          description: The latest HTTP status code received from the client URL. 0 indicates that the webhook has not been dispatched.
        dispatched_at:
          type: string
          minLength: 1
          description: Timestamp of when the webhook was last dispatched.
        deactivate_reason:
          type: string
          minLength: 1
          description: Reason for deactivation
        account_id:
          type: integer
          format: int64
        account_identifier:
          type: string
          minLength: 1
      required:
      - active
      - client_url
      - event_types
      - name
    PaginatedWebhooksEvents:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Event'
        status:
          $ref: '#/components/schemas/WebhookResponseStatus'
        extra:
          $ref: '#/components/schemas/PaginationExtra'
      required:
      - data
      - extra
      - status
    TestSubscriptionResponseEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/TestSubscriptionResponseData'
        status:
          $ref: '#/components/schemas/WebhookResponseStatus'
      required:
      - data
      - status
    Subscription:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          description: Webhook name
        description:
          type: string
          description: Webhook description
        event_types:
          type: array
          items: {}
          description: Event types that trigger this webhook. Must not be empty.
        job_ids:
          type: array
          items:
            type: integer
            format: int64
          description: Job IDs that trigger this webhook. Leave empty to trigger for all jobs.
        client_url:
          type: string
          description: Endpoint where events are sent
        active:
          type: boolean
          description: Whether or not this Webhook is currently active
        http_status_code:
          type: string
          description: The latest HTTP status code received from the client URL. 0 indicates that the webhook has not been dispatched.
        dispatched_at:
          type: string
          description: Timestamp of when the webhook was last dispatched.
        deactivate_reason:
          type: string
          description: Reason for deactivation
        account_id:
          type: integer
          format: int64
        account_identifier:
          type: string
      required:
      - active
      - client_url
      - event_types
      - name
    WebhookResponseStatus:
      type: object
      properties:
        code:
          type: integer
      required:
      - code
    CreateSubscriptionResponseEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Subscription'
        status:
          $ref: '#/components/schemas/WebhookResponseStatus'
      required:
      - data
      - status
  securitySchemes:
    BearerAuthentication:
      type: http
      scheme: bearer
      bearerFormat: Bearer