Add a webhook endpoint
POST
/v1/admin/webhooks
const url = 'https://api.sealcord.com/v1/admin/webhooks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"url":"example","event_types":["licence.issued"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.sealcord.com/v1/admin/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "example", "event_types": [ "licence.issued" ] }'Add a webhook endpoint; the answer carries its secret, shown only once. An https URL on port 443 naming a public host (no IP address, no internal or Sealcord host). Past the plan’s endpoints, 402 plan_limit_reached. Not for an assistant: 403 forbidden.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
url
required
string
event_types
required
Array<string>
Responses
Section titled “Responses”Missing or invalid API key.
Needs scope webhooks:write.