List webhook endpoints
/developer/v1/webhook-endpoint/query/documentsReturns your company's webhook endpoints in the mode of your key, newest first. The signing secret is not listed: only its last four characters.
Query parameters
pageintegerThe page number, from 1.
Minimum 1 · Default 1
sizeintegerThe page size, at most 50.
Minimum 1 · Maximum 50 · Default 10
Response 200
dataarray of WebhookEndpointrequiredThe endpoints of the page, newest first.
Show child attributesHide child attributes
company_idstringrequiredThe ID of the company the endpoint belongs to.
created_atstring (date-time)requiredWhen the endpoint was created, in UTC.
descriptionstringrequirednullableWhat the endpoint is for, or
null.endpoint_idstringrequiredThe ID of the endpoint.
eventsarray of enumrequiredThe event types the endpoint receives.
is_enabledbooleanrequiredWhether events are sent to the endpoint.
modeenumrequiredtestfor the sandbox,prodfor production.testprod
previous_secret_expires_atstring (date-time)requirednullableAfter a roll, when the old secret stops being valid, in UTC.
nullwhen there is no old secret to accept.secret_last_fourstringrequiredThe last four characters of the signing secret, to tell secrets apart.
updated_atstring (date-time)requiredWhen the endpoint was last changed, in UTC.
urlstringrequiredThe HTTPS address events are sent to.
has_nextbooleanrequiredWhether the data has a next page or not
has_previousbooleanrequiredWhether the data has a previous page or not
pageintegerrequiredThe page number of the data
sizeintegerrequiredThe size of the data
totalintegerrequiredThe total number of data
total_pagesintegerrequiredThe total number of pages
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
422 | validation_error | query.size: Input should be less than or equal to 50 |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |