Stop delivery to an endpoint
curl --request DELETE \
--url https://api.expedite.now/api/partners/v1/webhook-endpoints/{endpointId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.expedite.now/api/partners/v1/webhook-endpoints/{endpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.expedite.now/api/partners/v1/webhook-endpoints/{endpointId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"disabled": true
}{
"error": {
"code": "BAD_REQUEST",
"message": "Request validation failed",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Partner authentication failed",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Required permission is missing",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "CONFLICT",
"message": "The request conflicts with the current resource state",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Request limit reached; retry later",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}Webhook endpoints
Disable an endpoint
DELETE
/
webhook-endpoints
/
{endpointId}
Stop delivery to an endpoint
curl --request DELETE \
--url https://api.expedite.now/api/partners/v1/webhook-endpoints/{endpointId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.expedite.now/api/partners/v1/webhook-endpoints/{endpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.expedite.now/api/partners/v1/webhook-endpoints/{endpointId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"disabled": true
}{
"error": {
"code": "BAD_REQUEST",
"message": "Request validation failed",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Partner authentication failed",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Required permission is missing",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "CONFLICT",
"message": "The request conflicts with the current resource state",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Request limit reached; retry later",
"requestId": "9cf1644fb12e4af6ac9f47780e3a28d7"
}
}
