Skip to main content
Registering a consumer tells ShoulderTap which kinds it handles and where to deliver answers. This endpoint registers webhook consumers; in-process consumers are registered through the SDK.

Register a consumer

POST /api/v1/consumers Body is a ConsumerRegistration. Required: id, handles_kinds, delivery.
Returns 201 Created with { id }. See Webhook consumers for the event payloads your URL will receive.
id
string
required
The consumer’s id.
handles_kinds
array
required
Kinds this consumer deals with.
delivery
object
required
{ "type": "webhook", "url": "..." } for a webhook consumer.
dedup_window
string
default:"P1D"
ISO-8601 duration for deduplication.
auto_accept
boolean
default:"false"
Deliver without human review. See the warning.
kind_schemas
object
Optional custom capture schemas per kind. See Kinds.

Unregister a consumer

DELETE /api/v1/consumers/{id}
Returns 204 No Content.