SandBase Webhooks API

Register organization webhooks for asynchronous model generation events

GitHub OpenAPI

Operations 4

GET /events/webhooks List webhooks #
POST /events/webhooks Create a webhook #
PATCH /events/webhooks/{webhook_id} Update a webhook #
DELETE /events/webhooks/{webhook_id} Delete a webhook #

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/sandbase-ai:sandbase-ai-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

sandbase-ai-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SandBase Webhooks API
  description: 'SandBase is an agent-native platform for connecting Agents to the real world.

    Use one account and one key to call Models, ready-made APIs, and Agents.


    ## Authentication

    Public API requests require a SandBase API key. Use `Authorization: Bearer sk-YOUR_KEY` by default.

    Anthropic Messages and Google Gemini-compatible operations also document their native SDK-compatible key locations.


    ## SDK Compatibility

    - **LLM Gateway** (`/v1/chat/completions`): Use OpenAI SDK with `base_url="https://api.sandbase.ai/v1"`

    - **Embeddings** (`/v1/embeddings`): Use OpenAI SDK with `base_url="https://api.sandbase.ai/v1"`

    - **Images** (`/v1/images/generations`, `/v1/images/edits`): Use OpenAI SDK with `base_url="https://api.sandbase.ai/v1"`

    - **Anthropic Messages** (`/v1/messages`): Use Anthropic SDK with `base_url="https://api.sandbase.ai"`

    - **Google Gemini GenerateContent** (`/v1beta/models/{model}:generateContent`): Configure the Google Gen AI SDK to use `https://api.sandbase.ai`

    - **Agents and Sessions** (`/v1/agents`, `/v1/agents/sessions`): Follow the OpenAI Agents protocol (`OpenAI-Beta: agents=v1` is optional) plus the documented SandBase extensions

    - **Agents platform resources** (`/v1/agents*`, `/v1/mcp-connections*`, `/v1/secrets*`, `/v1/skills*`): Accept `Authorization: Bearer` or `X-API-Key` and return the `AgentsError` envelope'
  version: 1.0.0
  x-sandbase-session-contract:
    status: active
    feature: Agents platform Sessions
    description: A Session (ses_*) runs one saved Agent version in a SandBase-hosted environment. Sessions are created directly with POST /v1/agents/sessions. Internal runtime identities are never exposed.
  contact:
    name: SandBase
    url: https://www.sandbase.ai
  license:
    name: Proprietary
servers:
- url: https://api.sandbase.ai
  description: Production
security:
- BearerAuth: []
tags:
- name: Webhooks
  description: Register organization webhooks for asynchronous model generation events
paths:
  /events/webhooks:
    get:
      operationId: listWebhooks
      tags:
      - Webhooks
      summary: List webhooks
      description: Lists the organization's webhooks. signatureSecret is never returned.
      security:
      - BearerAuth: []
      - WebhookApiKey: []
      responses:
        '200':
          description: Webhooks
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Webhook'
        '401':
          description: Missing, invalid, or revoked API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
        '500':
          description: Webhook lookup failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
    post:
      operationId: createWebhook
      tags:
      - Webhooks
      summary: Create a webhook
      description: Registers a webhook for asynchronous model generation events. The response is the only time signatureSecret is returned.
      security:
      - BearerAuth: []
      - WebhookApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookCreateRequest'
      responses:
        '200':
          description: Webhook created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookCreated'
        '400':
          description: Invalid body, URL, resourceType, or events
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
        '401':
          description: Missing, invalid, or revoked API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
        '500':
          description: Webhook creation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
  /events/webhooks/{webhook_id}:
    parameters:
    - name: webhook_id
      in: path
      required: true
      schema:
        type: string
      description: Webhook ID returned by create or list.
    patch:
      operationId: updateWebhook
      tags:
      - Webhooks
      summary: Update a webhook
      description: Updates the fields sent; omitted fields remain unchanged. The resulting resourceType and events subscription must be valid. signatureSecret cannot be changed.
      security:
      - BearerAuth: []
      - WebhookApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookUpdateRequest'
      responses:
        '200':
          description: Updated webhook
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
        '400':
          description: Invalid body or subscription, or the request includes signatureSecret
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
        '401':
          description: Missing, invalid, or revoked API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
        '404':
          description: webhook not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
        '500':
          description: Webhook update failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
    delete:
      operationId: deleteWebhook
      tags:
      - Webhooks
      summary: Delete a webhook
      security:
      - BearerAuth: []
      - WebhookApiKey: []
      responses:
        '204':
          description: Webhook deleted
        '401':
          description: Missing, invalid, or revoked API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
        '404':
          description: webhook not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
        '500':
          description: Webhook deletion failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookError'
components:
  schemas:
    WebhookUpdateRequest:
      type: object
      properties:
        name:
          type: string
        url:
          type: string
          format: uri
        resourceType:
          type: string
          enum:
          - model
        events:
          type: array
          items:
            type: string
            enum:
            - model.generation.completed
            - model.generation.failed
            - model.generation.timeout
            - model.generation.cancelled
        enabled:
          type: boolean
    WebhookError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: integer
          description: The HTTP status code.
        message:
          type: string
    Webhook:
      type: object
      required:
      - id
      - name
      - url
      - resourceType
      - events
      - enabled
      - createdAt
      properties:
        id:
          type: string
        name:
          type: string
        url:
          type: string
          format: uri
        resourceType:
          type: string
          description: model for new registrations. Retired types (session, sandbox, template) can still appear on old registrations.
        events:
          type: array
          items:
            type: string
          description: Empty means all events in the resource type.
        enabled:
          type: boolean
        createdAt:
          type: string
          format: date-time
    WebhookCreateRequest:
      type: object
      required:
      - name
      - url
      - resourceType
      properties:
        name:
          type: string
        url:
          type: string
          format: uri
          description: HTTP(S) endpoint. Use HTTPS in production.
        resourceType:
          type: string
          enum:
          - model
        events:
          type: array
          items:
            type: string
            enum:
            - model.generation.completed
            - model.generation.failed
            - model.generation.timeout
            - model.generation.cancelled
          description: Empty or omitted means all current and future events in the resource type.
        enabled:
          type: boolean
          default: true
        signatureSecret:
          type: string
          description: Optional. Omit to let SandBase generate a high-entropy secret.
    WebhookCreated:
      allOf:
      - $ref: '#/components/schemas/Webhook'
      - type: object
        required:
        - signatureSecret
        properties:
          signatureSecret:
            type: string
            description: HMAC signing secret. Returned only in this response.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: SandBase API key. Treat the complete credential as an opaque secret.
    AnthropicApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Supported only by `POST /v1/messages` for Anthropic SDK compatibility
    GoogleApiKey:
      type: apiKey
      in: header
      name: x-goog-api-key
      description: Supported by Google Gemini-compatible endpoints. Takes precedence over the other key locations.
    GoogleQueryApiKey:
      type: apiKey
      in: query
      name: key
      description: Google SDK compatibility fallback. Prefer x-goog-api-key or Authorization because URLs can be logged.
    WebhookApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Accepted by the webhook Events API (/events/webhooks*). Authorization Bearer takes precedence when both are sent.
    AgentsApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Accepted only by Agents platform resources (/v1/agents*, /v1/mcp-connections*, /v1/secrets*, /v1/skills*). If Authorization is also sent, both must carry the same key.