Usertour Webhooks API

The Webhooks API from Usertour, for webhooks.

GitHub OpenAPI

Operations 6

GET /v2/projects/{projectId}/environments/{environmentId}/webhooks List webhooks #
POST /v2/projects/{projectId}/environments/{environmentId}/webhooks Create a webhook #
GET /v2/projects/{projectId}/environments/{environmentId}/webhooks/{id} Get a webhook (includes the signing secret for webhook:manage tokens) #
PATCH /v2/projects/{projectId}/environments/{environmentId}/webhooks/{id} Update a webhook #
DELETE /v2/projects/{projectId}/environments/{environmentId}/webhooks/{id} Delete a webhook #
POST /v2/projects/{projectId}/environments/{environmentId}/webhooks/{id}/rotate-secret Rotate the signing secret #

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/usertour-io:usertour-io-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

usertour-io-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Usertour API v2 Webhooks API
  description: 'Project-scoped v2 API. Authenticate with a personal API token — an opaque `utp_...` string (NOT a JWT: do not try to decode it), created in the Usertour app under Settings → API, sent as `Authorization: Bearer utp_...`.'
  version: '2.0'
  contact: {}
servers:
- url: https://api.usertour.io
tags:
- name: Webhooks
paths:
  /v2/projects/{projectId}/environments/{environmentId}/webhooks:
    get:
      operationId: ApiWebhooksController_list
      summary: List webhooks
      parameters:
      - name: cursor
        required: false
        in: query
        description: 'Opaque page cursor — the `cursor` query value found inside a prior response''s `next`/`previous` URL. Normally you never build this yourself: just GET those URLs as-is.'
        schema:
          type: string
      - name: limit
        required: false
        in: query
        description: Max items per page (1-100, default 20).
        schema:
          minimum: 1
          maximum: 100
          default: 20
          type: integer
      - name: environmentId
        required: true
        in: path
        description: Environment ID
        schema: {}
      - name: projectId
        required: true
        in: path
        description: Project ID
        schema: {}
      responses:
        '200':
          description: List of webhooks
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWebhooksResponseDto'
        '400':
          description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '401':
          description: Missing or expired API key — E1010, E1020.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '403':
          description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '429':
          description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      tags:
      - Webhooks
      security:
      - bearer: []
    post:
      operationId: ApiWebhooksController_create
      summary: Create a webhook
      description: On Usertour Cloud, webhooks need a paid plan (Starter or above) — a Hobby project gets 403 E0043. Self-hosted instances are never gated. The same applies to update, rotate-secret and delivery; reads and delete stay available on any plan.
      parameters:
      - name: environmentId
        required: true
        in: path
        description: Environment ID
        schema: {}
      - name: projectId
        required: true
        in: path
        description: Project ID
        schema: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWebhookBodyDto'
      responses:
        '201':
          description: Webhook created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDto'
        '400':
          description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '401':
          description: Missing or expired API key — E1010, E1020.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '403':
          description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '429':
          description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      tags:
      - Webhooks
      security:
      - bearer: []
  /v2/projects/{projectId}/environments/{environmentId}/webhooks/{id}:
    get:
      operationId: ApiWebhooksController_get
      summary: Get a webhook (includes the signing secret for webhook:manage tokens)
      description: The signing secret is the ability to forge signed deliveries, so it rides only on tokens holding webhook:manage — a read-only token gets every other field.
      parameters:
      - name: id
        required: true
        in: path
        description: Webhook ID
        schema:
          type: string
      - name: projectId
        required: true
        in: path
        description: Project ID
        schema:
          type: string
      - name: environmentId
        required: true
        in: path
        description: Environment ID
        schema: {}
      responses:
        '200':
          description: Webhook found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDto'
        '400':
          description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '401':
          description: Missing or expired API key — E1010, E1020.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '403':
          description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '404':
          description: Webhook not found
        '429':
          description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      tags:
      - Webhooks
      security:
      - bearer: []
    patch:
      operationId: ApiWebhooksController_update
      summary: Update a webhook
      parameters:
      - name: id
        required: true
        in: path
        description: Webhook ID
        schema:
          type: string
      - name: environmentId
        required: true
        in: path
        description: Environment ID
        schema: {}
      - name: projectId
        required: true
        in: path
        description: Project ID
        schema: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookBodyDto'
      responses:
        '200':
          description: Webhook updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDto'
        '400':
          description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '401':
          description: Missing or expired API key — E1010, E1020.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '403':
          description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '404':
          description: Webhook not found
        '429':
          description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      tags:
      - Webhooks
      security:
      - bearer: []
    delete:
      operationId: ApiWebhooksController_remove
      summary: Delete a webhook
      parameters:
      - name: id
        required: true
        in: path
        description: Webhook ID
        schema:
          type: string
      - name: environmentId
        required: true
        in: path
        description: Environment ID
        schema: {}
      - name: projectId
        required: true
        in: path
        description: Project ID
        schema: {}
      responses:
        '204':
          description: Webhook deleted
        '400':
          description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '401':
          description: Missing or expired API key — E1010, E1020.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '403':
          description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '404':
          description: Webhook not found
        '429':
          description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      tags:
      - Webhooks
      security:
      - bearer: []
  /v2/projects/{projectId}/environments/{environmentId}/webhooks/{id}/rotate-secret:
    post:
      operationId: ApiWebhooksController_rotateSecret
      summary: Rotate the signing secret
      parameters:
      - name: id
        required: true
        in: path
        description: Webhook ID
        schema:
          type: string
      - name: environmentId
        required: true
        in: path
        description: Environment ID
        schema: {}
      - name: projectId
        required: true
        in: path
        description: Project ID
        schema: {}
      responses:
        '200':
          description: Secret rotated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDto'
        '400':
          description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '401':
          description: Missing or expired API key — E1010, E1020.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '403':
          description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '404':
          description: Webhook not found
        '429':
          description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      tags:
      - Webhooks
      security:
      - bearer: []
components:
  schemas:
    UpdateWebhookBodyDto:
      type: object
      properties:
        url:
          type: string
          maxLength: 2083
          pattern: ^https?:\/\/
        topics:
          minItems: 1
          maxItems: 100
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 200
          description: 'Topic subscriptions: "*" (everything); "event.tracked" (all behavior events) or "event.tracked.<codeName>" for one; "content" / "content.published"; "user" or "user.created" / "user.updated" / "user.deleted"; "company" or "company.created" / "company.updated" / "company.deleted". A bare family name also covers topics added to it later. High-volume events (page_viewed) are excluded from the wildcard forms and must be subscribed explicitly.'
        enabled:
          type: boolean
        description:
          type: string
          maxLength: 200
    CreateWebhookBodyDto:
      type: object
      properties:
        url:
          type: string
          maxLength: 2083
          pattern: ^https?:\/\/
          description: Endpoint events are POSTed to. Public HTTPS by default; deployments with ALLOW_PRIVATE_NETWORK_EGRESS may use private/http targets (SSRF-guarded server-side).
        topics:
          minItems: 1
          maxItems: 100
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 200
          description: 'Topic subscriptions: "*" (everything); "event.tracked" (all behavior events) or "event.tracked.<codeName>" for one; "content" / "content.published"; "user" or "user.created" / "user.updated" / "user.deleted"; "company" or "company.created" / "company.updated" / "company.deleted". A bare family name also covers topics added to it later. High-volume events (page_viewed) are excluded from the wildcard forms and must be subscribed explicitly.'
        enabled:
          description: Defaults to true.
          type: boolean
        description:
          type: string
          maxLength: 200
      required:
      - url
      - topics
    ErrorResponseDto:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable machine-readable code (e.g. E1017). Match on this, never on `message`.
            message:
              type: string
              description: Human-readable summary. Wording may change between releases.
            issues:
              description: Validation errors (E1017) may carry one entry per problem so every field can be fixed in a single round-trip. Absent on other errors.
              type: array
              items:
                type: object
                properties:
                  rule:
                    type: string
                    description: 'Which validation layer rejected it: schema | reactive_condition | action_not_allowed | step_shape | reference_target | auto_start | media_url | destination_url. New values may be added; treat an unknown value as a generic validation failure.'
                  message:
                    type: string
                  path:
                    description: Path into the request body (e.g. `steps[0].triggers[0].when[1]`).
                    type: string
                required:
                - rule
                - message
            doc_url:
              type: string
              description: Base URL of the API documentation.
      required:
      - error
    ListWebhooksResponseDto:
      type: object
      properties:
        results:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              object:
                type: string
                enum:
                - webhook
              createdAt:
                type: string
              url:
                type: string
              topics:
                type: array
                items:
                  type: string
              enabled:
                type: boolean
              description:
                type:
                - string
                - 'null'
              consecutiveFailures:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
                description: Consecutive failed delivery attempts (circuit-breaker streak; any success resets).
              cooldownUntil:
                type:
                - string
                - 'null'
                description: While in the future, deliveries to this endpoint are held and sent after the window (cooldown).
              autoDisabledAt:
                type:
                - string
                - 'null'
                description: Set when the system disabled the endpoint after sustained delivery failure.
              secret:
                description: HMAC signing secret (whsec_...). Present only for tokens holding webhook:manage, and only on single-object reads, create, and rotate. An EMPTY string means the stored secret can no longer be decrypted (e.g. the encryption key changed) — call rotate-secret to mint a fresh one.
                type: string
            required:
            - id
            - object
            - createdAt
            - url
            - topics
            - enabled
            - description
            - consecutiveFailures
            - cooldownUntil
            - autoDisabledAt
        next:
          type:
          - string
          - 'null'
        previous:
          type:
          - string
          - 'null'
      required:
      - results
      - next
      - previous
    WebhookDto:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          enum:
          - webhook
        createdAt:
          type: string
        url:
          type: string
        topics:
          type: array
          items:
            type: string
        enabled:
          type: boolean
        description:
          type:
          - string
          - 'null'
        consecutiveFailures:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Consecutive failed delivery attempts (circuit-breaker streak; any success resets).
        cooldownUntil:
          type:
          - string
          - 'null'
          description: While in the future, deliveries to this endpoint are held and sent after the window (cooldown).
        autoDisabledAt:
          type:
          - string
          - 'null'
          description: Set when the system disabled the endpoint after sustained delivery failure.
        secret:
          description: HMAC signing secret (whsec_...). Present only for tokens holding webhook:manage, and only on single-object reads, create, and rotate. An EMPTY string means the stored secret can no longer be decrypted (e.g. the encryption key changed) — call rotate-secret to mint a fresh one.
          type: string
      required:
      - id
      - object
      - createdAt
      - url
      - topics
      - enabled
      - description
      - consecutiveFailures
      - cooldownUntil
      - autoDisabledAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: utp_... personal API token (opaque)
      type: http