latestOpenAPI 3.1.02026-08-0817082.3 KB

cac8702ed2aa

Webhooks

Create a new webhook

Create a new webhook.

post/v1/webhooks

Request body

urlstring uri required

The url of the callback that will be triggered when the webhook is fired.

type'LEARNER_TRAINING_CAMPAIGN_COMPLETED' required

The type of webhook. Currently, only one type, LEARNER_TRAINING_CAMPAIGN_COMPLETED, is supported.

Example request

{
  "url": "https://{your-domain}.com/webhooks/ethena",
  "type": "LEARNER_TRAINING_CAMPAIGN_COMPLETED"
}

Response

Created

string required

The unique identifier of a webhook.

Example response

"wh123abc45"