Skip to main content
POST
/
webhooks
Create Webhook
curl --request POST \
  --url https://api.mtn.express.ci/client/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://website.com/my_webhook_target"
}
'
{
  "id": "XPW202407291018430004",
  "url": "https://website.com/my_webhook_target",
  "createdAt": "2020-10-15T12:09:49.355Z",
  "updatedAt": "2020-10-15T12:09:49.355Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required

Fully qualified url of the webhook endpoint

Example:

"https://website.com/my_webhook_target"

Response

201 - application/json

Webhook created

id
string
required

The unique identifier of the webhook

Example:

"XPW202407291018430004"

url
string
required

Fully qualified url of the webhook endpoint

Example:

"https://website.com/my_webhook_target"

createdAt
string<date-time>
required

The creation timestamp of the webhook

Example:

"2020-10-15T12:09:49.355Z"

updatedAt
string<date-time>
required

The last update timestamp of the webhook

Example:

"2020-10-15T12:09:49.355Z"