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

# List webhook endpoints

> Lists the webhook endpoints that receive that organization’s events. Requires admin access to the organization. Results are paginated and ordered by creation date (newest first). Signing secrets are never included.



## OpenAPI

````yaml https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/webhooks
openapi: 3.1.0
info:
  title: Basedash Public API
  version: 0.0.0
  description: >-
    API for programmatic access to Basedash features. Use API keys for
    authentication. Send request bodies as JSON with `Content-Type:
    application/json`; other content types are rejected with a 415 (file uploads
    use `multipart/form-data`).
  contact:
    name: Basedash Support
    url: https://basedash.com
    email: support@basedash.com
servers:
  - url: https://charts.basedash.com
    description: Production
security: []
tags:
  - name: Organizations
    description: Manage organizations
  - name: Groups
    description: Manage organization groups and memberships
  - name: Data Sources
    description: Manage database connections and data sources
  - name: MCP servers
    description: Manage MCP server data sources
  - name: Insights
    description: Manage generated insights
  - name: Webhooks
    description: >-
      Receive an HTTPS POST when something happens in Basedash, instead of
      polling. Register an endpoint on an organization to receive that
      organization’s events, or on a billing account to receive the events of
      every organization attached to it (register once for all of your
      organizations). Webhook endpoints are managed only through this API.


      **Events.** `insight.generated`: a new insight is ready. `insight.failed`:
      generating an insight was attempted and failed for good; `data.reason` is
      `generation_failed` or `provider_unavailable`, and `data.insightId` is the
      id the insight would have had (no insight exists for it). Every event is a
      JSON object `{ "id", "type", "createdAt", "data" }`. Payloads are thin:
      `data` names the organization and the insight, and for `insight.generated`
      carries the `url` of the "Get an insight" endpoint to fetch it from with
      your API key.


      **Signing.** Deliveries follow the [Standard
      Webhooks](https://www.standardwebhooks.com) specification. Each request
      carries `webhook-id` (the event id, the same on every retry: use it to
      deduplicate), `webhook-timestamp` (Unix seconds) and `webhook-signature`
      (`v1,<signature>`). The signature is the base64 HMAC-SHA256 of
      `{webhook-id}.{webhook-timestamp}.{raw request body}`, keyed with the
      base64-decoded part of the endpoint secret after `whsec_`. Verify it with
      any Standard Webhooks library, against the raw body before parsing it, and
      reject timestamps more than five minutes old. The secret is returned only
      when an endpoint is created or its secret is rotated.


      **Delivery.** Answer with a 2xx status within 10 seconds. Redirects are
      not followed. A 5xx, 408 or 429 answer, a redirect, a timeout or a
      connection error is retried with exponential backoff, up to 6 attempts
      over about a day (5 minutes, 30 minutes, 2 hours, 6 hours and 16 hours
      after each failure). Any other 4xx answer is not retried: the event fails
      for that endpoint at once. Answer 410 to have the endpoint disabled
      immediately. An endpoint is also disabled automatically after 5 events in
      a row fail, whether each ran out of retries or got a 4xx that is not
      retried; re-enable it by updating it with `enabled: true`. Events that
      occur while an endpoint is disabled are not sent later.
  - name: Automations
    description: Manage automations and automation runs
  - name: Skills
    description: Manage organization skills
  - name: Models
    description: Manage reusable SQL models
  - name: Dashboards
    description: Manage dashboards and their tabs
  - name: Charts
    description: Manage charts and their SQL queries
  - name: Chats
    description: >-
      Chat with the Basedash AI agent about your data. Start a chat by sending a
      message, then continue the conversation with follow-up messages. The
      assistant responds asynchronously: pass the `wait` query parameter to
      receive the finished response in the same request, or poll the assistant
      message (or stream its events) after an HTTP 202. Chats created through
      the API are not shown in the Basedash app. Reading, canceling, deleting
      and sharing work on every chat the API key owner can open in the app,
      wherever it was started; only chats started through the API accept
      follow-up messages.
paths:
  /api/public/organizations/{orgId}/webhooks:
    get:
      tags:
        - Webhooks
      summary: List webhook endpoints
      description: >-
        Lists the webhook endpoints that receive that organization’s events.
        Requires admin access to the organization. Results are paginated and
        ordered by creation date (newest first). Signing secrets are never
        included.
      parameters:
        - schema:
            type: string
            description: Organization ID
          required: true
          description: Organization ID
          name: orgId
          in: path
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
            description: Maximum number of items to return (1-100, default 50)
          required: false
          description: Maximum number of items to return (1-100, default 50)
          name: limit
          in: query
        - schema:
            type: string
            description: Cursor for pagination (ID of the last item from previous page)
          required: false
          description: Cursor for pagination (ID of the last item from previous page)
          name: cursor
          in: query
      responses:
        '200':
          description: Webhook endpoints retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/PublicWebhookEndpoint'
                  pagination:
                    $ref: '#/components/schemas/PaginationMeta'
                required:
                  - data
                  - pagination
        '400':
          description: Bad request - limit is not an integer from 1 to 100
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - Organization not found or no admin access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded - Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    PublicWebhookEndpoint:
      type: object
      properties:
        id:
          type: string
          description: Webhook endpoint ID
        url:
          type: string
          description: HTTPS URL that events are POSTed to
        description:
          type:
            - string
            - 'null'
          description: Your own note about what this endpoint is for
        eventTypes:
          type: array
          items:
            $ref: '#/components/schemas/PublicWebhookEventType'
          description: >-
            Event types this endpoint receives. An event of any other type is
            not sent to it.
        enabled:
          type: boolean
          description: >-
            Whether events are sent to this endpoint. False after you disable
            it, and after Basedash disables it automatically (see
            `disabledReason`).
        consecutiveFailures:
          type: integer
          description: >-
            Deliveries in a row that failed for good (ran out of retries, or got
            a 4xx answer that is not retried) since the last successful delivery
        lastSuccessAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When the endpoint last accepted a delivery
        lastFailureAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When a delivery to the endpoint last failed
        disabledAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When the endpoint was disabled. Null while it is enabled.
        disabledReason:
          type:
            - string
            - 'null'
          enum:
            - manual
            - consecutive_failures
            - gone
            - null
          description: >-
            Why the endpoint is disabled. `manual`: disabled through this API.
            `consecutive_failures`: too many deliveries in a row failed for
            good. `gone`: the endpoint answered a delivery with HTTP 410. Null
            while it is enabled.
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp
        updatedAt:
          type: string
          format: date-time
          description: Last update timestamp
      required:
        - id
        - url
        - description
        - eventTypes
        - enabled
        - consecutiveFailures
        - lastSuccessAt
        - lastFailureAt
        - disabledAt
        - disabledReason
        - createdAt
        - updatedAt
    PaginationMeta:
      type: object
      properties:
        nextCursor:
          type:
            - string
            - 'null'
          description: Cursor for the next page (null if no more pages)
        hasMore:
          type: boolean
          description: Whether there are more items after this page
      required:
        - nextCursor
        - hasMore
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - error
    RateLimitErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/RateLimitError'
      required:
        - error
    PublicWebhookEventType:
      type: string
      enum:
        - insight.generated
        - insight.failed
      description: >-
        Event type. `insight.generated`: a new insight is ready to fetch.
        `insight.failed`: an insight generation was attempted and failed for
        good.
    ApiError:
      type: object
      properties:
        title:
          type: string
          description: Error type identifier
        detail:
          type: string
          description: Human-readable error description
        code:
          type: string
          description: >-
            Stable machine-readable code when the error has one.
            `ip_not_allowed` means the organization only allows access from
            approved IP addresses and the caller’s address is not one.
        ip:
          type:
            - string
            - 'null'
          description: >-
            With `ip_not_allowed`: the caller’s IP address as Basedash saw it,
            which an organization admin can add under Settings → Security →
            Network access.
      required:
        - title
        - detail
    RateLimitError:
      allOf:
        - $ref: '#/components/schemas/ApiError'
        - type: object
          properties:
            title:
              type: string
              enum:
                - RateLimitExceeded
            retryAfterMs:
              type: number
              description: Milliseconds until the rate limit window resets
          required:
            - retryAfterMs
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication using Bearer token format: `Bearer
        <basedash_api_key>`

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.