Firsty

Search...

Search...

Management

Create a webhook endpoint

Experimental. This endpoint is still settling — its request and response shape may change without a deprecation cycle.

Registers an endpoint Firsty delivers the chosen event types to. The response is the only time the signing secret is returned. A client can have up to 5 endpoints, active or not.

post/management/webhooks

Authorization

Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works

Request body

application/json · required

urlstring · urirequired

Destination Firsty posts events to.

eventTypesarray of stringrequired

Values from GET /catalog/webhook-event-types.

descriptionstring

Free-text label for the endpoint.

Responses

201The created endpoint, with its signing secretapplication/json
Show response body
dataobjectrequired
Show properties
webhookEndpointReferencestringrequired

Identifies the endpoint in GET /management/webhooks/{webhookEndpointReference}/deliveries.

urlstring · urirequired

Destination Firsty posts events to.

eventTypesarray of stringrequired

Event types delivered to this endpoint. Values this client subscribed to before an event type was retired are returned as stored, so an entry may be absent from GET /catalog/webhook-event-types.

descriptionstring | nullrequired

Free-text label for the endpoint.

activebooleanrequired

Whether events are delivered to this endpoint.

createdAtstring · date-timerequired
updatedAtstring · date-timerequired
signingSecretstringrequired

Key that signs every delivery to this endpoint. Returned only by create and rotate-secret.

409The client already has 3 webhook endpointsapplication/problem+json
Show response body
typestring · urirequired

URI reference to error documentation

titlestringrequired

Short, consistent error summary

statusintegerrequired

HTTP status code

detailstringrequired

Human-readable explanation specific to this occurrence

400Bad request - invalid parameters401Unauthorized - missing or invalid API key429Rate limit exceeded500Internal server error