List an endpoint’s recent deliveries
curl --request GET \
--url https://api.scoutworks.app/api/v1/webhook-endpoints/{endpointId}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/webhook-endpoints/{endpointId}/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/webhook-endpoints/{endpointId}/deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"eventType": "<string>",
"status": "pending",
"attemptCount": 0,
"nextAttemptAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"lastHttpStatus": 0,
"lastError": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"attempts": [
{
"attemptNumber": 0,
"httpStatus": 0,
"durationMs": 0,
"error": "<string>",
"responseSnippet": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Webhook endpoints
List an endpoint’s recent deliveries
Its newest deliveries, newest first, each with its latest tries and the start of what your endpoint answered. Deliveries are kept 30 days; the newest 50 are listed, in one page.
GET
/
webhook-endpoints
/
{endpointId}
/
deliveries
List an endpoint’s recent deliveries
curl --request GET \
--url https://api.scoutworks.app/api/v1/webhook-endpoints/{endpointId}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/webhook-endpoints/{endpointId}/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/webhook-endpoints/{endpointId}/deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"eventType": "<string>",
"status": "pending",
"attemptCount": 0,
"nextAttemptAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"lastHttpStatus": 0,
"lastError": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"attempts": [
{
"attemptNumber": 0,
"httpStatus": 0,
"durationMs": 0,
"error": "<string>",
"responseSnippet": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}