/webhooks
There are three authentication options for webhooks; basic authentication (username and password), bearer token and API keys.
{
"url": "https://myendpoint.com",
"authentication": "basic_auth",
"username": "test",
"password": "pass"
}
{
"result": "success",
"status": 200,
"data": {
"id": 12345,
"created_at": "2021-03-22T11:19:27.000000Z",
"updated_at": "2021-03-22T11:19:27.000000Z",
"url": "https://myendpoint.com",
"authentication": "basic_auth",
"username": "test",
"password": "pass"
}
}
{
"url": "https://myendpoint.com",
"authentication": "bearer_token",
"token": "AbCdEf123456"
}
{
"result": "success",
"status": 200,
"data": {
"id": 12345,
"created_at": "2021-03-22T11:19:27.000000Z",
"updated_at": "2021-03-22T11:19:27.000000Z",
"url": "https://myendpoint.com",
"authentication": "bearer_token",
"token": "AbCdEf123456"
}
}
{
"url": "https://myendpoint.com",
"authentication": "api_key",
"key": "AbCdsefEf123456",
"value": "AbCdEf113123fes"
}
{
"result": "success",
"status": 200,
"data": {
"id": 12345,
"created_at": "2021-03-22T11:19:27.000000Z",
"updated_at": "2021-03-22T11:19:27.000000Z",
"url": "https://myendpoint.com",
"authentication": "api_key",
"key": "AbCdsefEf123456",
"value": "AbCdEf113123fes"
}
}
Code | Status | Description |
---|---|---|
too_many_webhooks | 422 | Max webhooks created |
Sign up to our newsletter to keep up-to-date.