Get All Webhook Endpoint Attempts
This endpoint retrieves attempts related to this endpoint
info
This operation requires admin role.
HTTP Request
GET /api/v2/webhook/endpoint/{id}/attempt/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | A unique integer value identifying this endpoint |
limit | query | integer | false | Number of results to return per page |
offset | query | integer | false | The initial index from which to return the results |
ordering | query | string | false | Which field to use when ordering the results. For sorting desc use - in front of the field name. Default to -created_at. Available values are created_at, sent_at, next_retry |
Example Request
- JavaScript
- Bash
const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};
fetch('/api/v2/webhook/endpoint/{id}/attempt/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X GET /api/v2/webhook/endpoint/{id}/attempt/ \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Attempt |
Example responses
- 200
{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [
{
"id": "integer",
"created_at": "string",
"event": {
"type": "string",
"added_at": "string"
},
"sent_at": "string",
"http_request_body": "string",
"http_request_signature_header": "string",
"http_response_code": "integer",
"http_response_body": "string",
"next_retry": "string"
}
]
}