Primate Intelligence Webhook Endpoints API
The webhook_endpoints API from Primate Intelligence — 6 operation(s) for webhook_endpoints.
The webhook_endpoints API from Primate Intelligence — 6 operation(s) for webhook_endpoints.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/primateintelligence-ai:primateintelligence-ai-webhook-endpoints-api"
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.
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: 3.2.0
info:
title: Primate Vision Webhook Endpoints API
version: 1.0.0-alpha
description: Public API v1 for Primate Vision — video understanding for the agentic web. P1 (PRI-430) publishes resource schemas; endpoints ship from P3 onward.
contact:
email: support@primateintelligence.ai
servers:
- url: https://api.primateintelligence.ai
description: Production
- url: https://dev-api.primateintelligence.ai
description: Development
tags:
- name: webhook_endpoints
paths:
/v1/webhook_endpoints:
post:
summary: Create a webhook endpoint (returns the one-time whsec_ secret)
description: 'Standard Webhooks signing (webhook-id / webhook-timestamp / webhook-signature). The secret appears ONLY in this response. Delivery contract: 10s timeout, retries 1m/5m/30m/2h/8h/24h with jitter, at-least-once, no ordering — dedupe on the evt_ id. Endpoints failing 100% for 72h are auto-disabled with an email notice. At most 10 endpoints per account.'
tags:
- webhook_endpoints
security:
- bearerAuth: []
parameters:
- name: Idempotency-Key
in: header
required: false
schema:
type: string
minLength: 1
maxLength: 255
description: '§16.1: first request wins; 24h replay window; same key + different body → 409 idempotency_key_reused.'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWebhookEndpointRequest'
responses:
'201':
description: Endpoint created. `secret` is returned exactly once.
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
'400':
description: validation_failed / webhook_endpoint_limit (10 per account).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: invalid_api_key / key_revoked / key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: resource_not_found (account-scoped; no existence oracle)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: resource_conflict / idempotency_key_reused / idempotency_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: rate_limit_exceeded / concurrency_limit_exceeded / quota_exceeded (always with Retry-After)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
operationId: postV1WebhookEndpoints
x-operation-id-source: derived
get:
summary: List webhook endpoints (secrets never included)
tags:
- webhook_endpoints
security:
- bearerAuth: []
responses:
'200':
description: List envelope.
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpointList'
'400':
description: validation_failed / url_forbidden / prompt errors (§15)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: invalid_api_key / key_revoked / key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: resource_not_found (account-scoped; no existence oracle)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: resource_conflict / idempotency_key_reused / idempotency_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: rate_limit_exceeded / concurrency_limit_exceeded / quota_exceeded (always with Retry-After)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
operationId: getV1WebhookEndpoints
x-operation-id-source: derived
/v1/webhook_endpoints/{id}:
get:
summary: Fetch a webhook endpoint (secret never included)
tags:
- webhook_endpoints
security:
- bearerAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id (we_…).
responses:
'200':
description: The endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
'400':
description: validation_failed / url_forbidden / prompt errors (§15)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: invalid_api_key / key_revoked / key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: resource_not_found (account-scoped; no existence oracle)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: resource_conflict / idempotency_key_reused / idempotency_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: rate_limit_exceeded / concurrency_limit_exceeded / quota_exceeded (always with Retry-After)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
operationId: getV1WebhookEndpointsById
x-operation-id-source: derived
delete:
summary: Delete a webhook endpoint (effective immediately, §17)
tags:
- webhook_endpoints
security:
- bearerAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id (we_…).
responses:
'200':
description: '{id, object, deleted: true}.'
'400':
description: validation_failed / url_forbidden / prompt errors (§15)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: invalid_api_key / key_revoked / key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: resource_not_found (account-scoped; no existence oracle)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: resource_conflict / idempotency_key_reused / idempotency_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: rate_limit_exceeded / concurrency_limit_exceeded / quota_exceeded (always with Retry-After)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
operationId: deleteV1WebhookEndpointsById
x-operation-id-source: derived
/v1/webhook_endpoints/{id}/rotate_secret:
post:
summary: Rotate the signing secret (24h dual-secret overlap)
description: Returns the NEW secret exactly once. The previous secret keeps signing deliveries for 24h so receivers can migrate without dropped verifications — the signature header carries one signature per active secret.
tags:
- webhook_endpoints
security:
- bearerAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id (we_…).
responses:
'200':
description: Endpoint with the new one-time `secret`.
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
'400':
description: validation_failed / url_forbidden / prompt errors (§15)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: invalid_api_key / key_revoked / key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: resource_not_found (account-scoped; no existence oracle)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: resource_conflict / idempotency_key_reused / idempotency_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: rate_limit_exceeded / concurrency_limit_exceeded / quota_exceeded (always with Retry-After)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
operationId: postV1WebhookEndpointsByIdRotateSecret
x-operation-id-source: derived
/v1/webhook_endpoints/{id}/enable:
post:
summary: Re-enable a disabled endpoint (clears auto-disable state)
tags:
- webhook_endpoints
security:
- bearerAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id (we_…).
responses:
'200':
description: The re-enabled endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
'400':
description: validation_failed / url_forbidden / prompt errors (§15)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: invalid_api_key / key_revoked / key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: resource_not_found (account-scoped; no existence oracle)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: resource_conflict / idempotency_key_reused / idempotency_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: rate_limit_exceeded / concurrency_limit_exceeded / quota_exceeded (always with Retry-After)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
operationId: postV1WebhookEndpointsByIdEnable
x-operation-id-source: derived
/v1/webhook_endpoints/{id}/deliveries:
get:
summary: List recent deliveries (last 100, with response codes)
description: Dead-lettered deliveries stay visible for 30 days. Deliveries carry the evt_ id (stable across retries), attempt count, last response status/error, and next retry time.
tags:
- webhook_endpoints
security:
- bearerAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id (we_…).
responses:
'200':
description: List envelope (newest first).
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookDeliveryList'
'400':
description: validation_failed / url_forbidden / prompt errors (§15)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: invalid_api_key / key_revoked / key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: resource_not_found (account-scoped; no existence oracle)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: resource_conflict / idempotency_key_reused / idempotency_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: rate_limit_exceeded / concurrency_limit_exceeded / quota_exceeded (always with Retry-After)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
operationId: getV1WebhookEndpointsByIdDeliveries
x-operation-id-source: derived
/v1/webhook_endpoints/{id}/deliveries/{delivery_id}/redeliver:
post:
summary: Redeliver a delivery now (works on failed/dead rows)
tags:
- webhook_endpoints
security:
- bearerAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id (we_…).
- name: delivery_id
in: path
required: true
schema:
type: string
description: Delivery id (whd_…).
responses:
'202':
description: Requeued for immediate delivery.
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookDelivery'
'400':
description: validation_failed / url_forbidden / prompt errors (§15)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: invalid_api_key / key_revoked / key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: resource_not_found (account-scoped; no existence oracle)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: resource_conflict / idempotency_key_reused / idempotency_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: rate_limit_exceeded / concurrency_limit_exceeded / quota_exceeded (always with Retry-After)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
operationId: postV1WebhookEndpointsByIdDeliveriesByDeliveryIdRedeliver
x-operation-id-source: derived
components:
schemas:
WebhookDeliveryList:
type: object
properties:
object:
type: string
enum:
- list
data:
type: array
items:
$ref: '#/components/schemas/WebhookDelivery'
has_more:
type: boolean
required:
- object
- data
- has_more
WebhookEndpointList:
type: object
properties:
object:
type: string
enum:
- list
data:
type: array
items:
$ref: '#/components/schemas/WebhookEndpoint'
has_more:
type: boolean
required:
- object
- data
- has_more
ErrorObject:
type:
- object
- 'null'
properties:
code:
type: string
example: video_unreadable
message:
type: string
required:
- code
- message
WebhookDelivery:
type: object
properties:
id:
type: string
pattern: ^whd_[0-9A-HJKMNP-TV-Z]{26}$
description: Webhook delivery id (prefixed ULID).
example: whd_01KX12XX3BNM688AWHX7406HCF
object:
type: string
enum:
- webhook_delivery
event_id:
type: string
description: Stable across retries — consumers dedupe on this.
example: evt_01KX12XX3BNM688AWHX7406HCF
event_type:
$ref: '#/components/schemas/WebhookEventType'
status:
type: string
enum:
- pending
- delivering
- delivered
- failed
- dead
attempt_count:
type: integer
minimum: 0
last_response_status:
type:
- integer
- 'null'
last_error:
type:
- string
- 'null'
next_attempt_at:
type:
- string
- 'null'
format: date-time
description: Null once delivered or dead-lettered.
example: '2026-07-08T14:00:00Z'
last_attempt_at:
type:
- string
- 'null'
format: date-time
example: '2026-07-08T14:00:00Z'
delivered_at:
type:
- string
- 'null'
format: date-time
example: '2026-07-08T14:00:00Z'
created_at:
type: string
format: date-time
example: '2026-07-08T14:00:00Z'
required:
- id
- object
- event_id
- event_type
- status
- attempt_count
- last_response_status
- last_error
- next_attempt_at
- last_attempt_at
- delivered_at
- created_at
description: One event→endpoint delivery record (§16.3). Dead-lettered rows visible 30 days.
ErrorEnvelope:
type: object
properties:
error:
allOf:
- $ref: '#/components/schemas/ErrorObject'
- type: object
properties:
status:
type: integer
required:
- status
required:
- error
CreateWebhookEndpointRequest:
type: object
properties:
url:
type: string
maxLength: 2048
format: uri
description: HTTPS delivery URL.
events:
type: array
items:
$ref: '#/components/schemas/WebhookEventType'
minItems: 1
description: Subscribed event types — a non-empty subset of the closed v1 vocabulary.
description:
type: string
maxLength: 500
required:
- url
- events
WebhookEventType:
type: string
enum:
- video.ready
- video.failed
- analysis.completed
- analysis.failed
- analysis.canceled
- stream.ended
description: Closed v1 event vocabulary (§4.5). Payload = the full resource DTO.
WebhookEndpoint:
type: object
properties:
id:
type: string
pattern: ^we_[0-9A-HJKMNP-TV-Z]{26}$
description: Webhook endpoint id (prefixed ULID).
example: we_01KX12XX3BNM688AWHX7406HCF
object:
type: string
enum:
- webhook_endpoint
url:
type: string
format: uri
events:
type: array
items:
$ref: '#/components/schemas/WebhookEventType'
minItems: 1
description:
type:
- string
- 'null'
maxLength: 500
status:
type: string
enum:
- enabled
- disabled
disabled_reason:
type:
- string
- 'null'
enum:
- auto_failure
- user
description: auto_failure = 72h of 100% delivery failure (§16.3). Re-enable via POST …/enable.
secret:
type: string
pattern: ^whsec_
description: Signing secret — returned EXACTLY ONCE (create / rotate_secret), never readable again.
last_success_at:
type:
- string
- 'null'
format: date-time
example: '2026-07-08T14:00:00Z'
created_at:
type: string
format: date-time
example: '2026-07-08T14:00:00Z'
required:
- id
- object
- url
- events
- description
- status
- disabled_reason
- last_success_at
- created_at
description: A customer webhook endpoint (§4.5). Standard Webhooks signing.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: API key (pv_live_… / pv_test_…). Clerk session JWTs are accepted on the same endpoints for first-party clients.