Reference/webhooks

Create Webhook

Create Webhook Project API key or dashboard access token (JWT). Request examples use snake_case; schemas may also display accepted camelCase aliases. Replace resource placeholders with accessible IDs. See the guides for runtime model constraints and workflows.

POST/v1/webhooks
Open playground
Project API key or dashboard access token (JWT). See authentication.

Authorizations

Project API key or dashboard access token (JWT).

Body (application/json)

urlstringrequired

HTTPS destination endpoint URL

eventsarrayoptional
enabledbooleanoptionaldefault: true
descriptionstringoptional

Response

201 - application/json
Successful Response
idstringrequired
organizationIdstringrequired
projectIdstringoptional
urlstringrequired
enabledbooleanrequired
eventsarrayrequired
secretstringoptional
createdAtstringrequired
updatedAtstringrequired
Request Example
curl --fail-with-body -X POST "https://api.apimarketplace.com/v1/webhooks" -H "Authorization: Bearer $API_KEY" -H 'Content-Type: application/json' --data '{"url": "https://your-domain.example/webhooks", "events": ["character.ready", "character.failed", "generation.completed", "generation.failed"], "enabled": true}'