ScaledThought Webhooks API

The Webhooks API from ScaledThought — 2 operation(s) for webhooks.

GitHub OpenAPI

Operations 3

GET /v1/webhooks This account's webhook endpoints #
POST /v1/webhooks Add a signed webhook endpoint (public https only) #
DELETE /v1/webhooks/{id} Delete 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/scaledthought-com:scaledthought-com-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

scaledthought-com-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScaledThought control plane Webhooks API
  version: 0.1.0
  description: Accounts, keys, budgets, usage, prepaid credits (human-approved top-ups), files, batches and models. Inference is OpenAI-compatible at the base_url returned by signup.
servers:
- url: https://api.us.scaledthought.com
  description: us region
tags:
- name: Webhooks
paths:
  /v1/webhooks:
    get:
      operationId: listWebhooks
      summary: This account's webhook endpoints
      security:
      - apiKey: []
      responses:
        '200':
          description: '{data: Webhook[]}'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired (code key_expired) API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '421':
          description: Key belongs to another region
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Webhooks
    post:
      operationId: createWebhook
      summary: Add a signed webhook endpoint (public https only)
      description: 'Events: balance.low, key.expiring, budget.exhausted. The response''s signing_secret is shown once. Each delivery is a POST with x-st-signature: t=,v1=.")>; the body is {id, type, created_at, region, account_id, data} with ids and numbers only. Failed deliveries are retried with backoff for about two days. At most 5 endpoints. Needs the billing scope.'
      security:
      - apiKey: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWebhookInput'
      responses:
        '201':
          description: The webhook and its signing_secret (once)
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired (code key_expired) API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '421':
          description: Key belongs to another region
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Webhooks
  /v1/webhooks/{id}:
    delete:
      operationId: deleteWebhook
      security:
      - apiKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: '{id, deleted: true}'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired (code key_expired) API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '421':
          description: Key belongs to another region
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Webhooks
      summary: Delete webhook
      x-summary-source: derived
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type:
              - string
              - 'null'
          required:
          - message
          - type
          - code
      required:
      - error
    CreateWebhookInput:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        url:
          type: string
          maxLength: 2048
          format: uri
          description: Public https endpoint (port 443) that receives signed POSTs. Deliveries go to this URL wherever it is hosted (outside your region if it is).
        events:
          minItems: 1
          maxItems: 3
          type: array
          items:
            type: string
            enum:
            - balance.low
            - key.expiring
            - budget.exhausted
          description: Events to receive
      required:
      - url
      - events
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: st_{region}_{env}_… key
    anthropicApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: st_{region}_{env}_… key