Account, keys and webhooks ›
Get webhook
GET
/v1/webhooks/{id}One webhook, and its tries of the last 30 days.
RequestTypeScript
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- const webhook = await agental.getWebhook("wh_3e8b0c5a9d2f7146");
Answer200 OK
- {
- "id": string,
- "url": string,
- "events": string[],
- "description": string,
- "createdAt": string,
- "updatedAt": string,
- "signingSecret": string,
- "deliveries": [{
- "id": string,
- "event": string,
- "status": string,
- "httpStatus": integer | null,
- "error": string | null,
- "createdAt": string,
- … 2 more
- }],
- }
Webhook and recorded deliveries.
Path
idrequiredstring |
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 Webhook and recorded deliveries. No signing secret.
JSON8 fields
idstring
urlstring
eventsstring[]
descriptionstring
createdAtstring
updatedAtstring
signingSecretstring
Returned only on create and rotate.
deliveriesobject[]8 fields
idstring
eventstring
statusstring
httpStatusintegernull
errorstringnull
createdAtstring
eventIdstringnull
The id of the event this was a try of: the id in what was sent.
More
An event that is not taken is tried again, eight times over about a day, under the same id.attemptintegernull
Which try of that event this was, counted from 1.
Errors and other answers
| 404 | Not found. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.