ReferenceREST API

Webhooks

Manage webhook endpoints and list recent events for reconciliation.

View as Markdown

Guide: webhooks and signature verification.

Base URL https://api.okyc.stream/v1 · API version 2026-10-01 · authenticate with Authorization: Bearer sk_test_….

POST /v1/webhook_endpoints

Create a webhook endpoint (the signing secret is returned once).

Request body (WebhookEndpointCreate, required)

FieldTypeRequiredNotes
urlstringyesformat uri
eventsstring[]default ["*"]

Responses

StatusDescriptionBody
201Createdobject (map)
400ErrorError

GET /v1/webhook_endpoints

List webhook endpoints.

Responses

StatusDescriptionBody
200OKobject (map)

DELETE /v1/webhook_endpoints/{id}

Delete a webhook endpoint.

Parameters

NameInTypeRequiredNotes
idpathstringyese.g. ses_in_01j…

Responses

StatusDescriptionBody
200OKobject
404ErrorError

GET /v1/events

List events (for reconciliation).

Parameters

NameInTypeRequiredNotes
typequerystring—
limitqueryintegermin 1, max 100, default 50

Responses

StatusDescriptionBody
200OKobject (map)

On this page