HTTP referenceWebhooks
Create a webhook endpoint
POST
/v1/webhooksRegisters an https URL for the events you choose. Answers 201 with the endpoint and its signing_secret, which signs every delivery. 400 for a URL that is not https.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/webhooks" \ -H "Content-Type: application/json" \ -d '{ "url": "string", "events": [ "model.ready" ] }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "url": "string", "description": "string", "events": [ "model.ready" ], "enabled": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "signing_secret": "string"}{ "error": { "code": "string", "message": "string", "details": null }}