List webhooks
$ curl -H "Authorization: Bearer api-key" https://api.planadoapp.com/v2/webhooks | jq
{
"webhooks": [
{
"uuid": "5491b43c-d3a1-4bf4-ab43-cb2f3673d18c",
"url": "https://example.com/planado-webhook-handler",
"event_types": [
"client_updated"
],
"secret": "verysecret"
},
...
]
}
Field | Type | JSON Type | Can be null |
Description |
---|---|---|---|---|
|
UUID |
String |
No |
Unique identifier |
|
String |
String |
No |
Webhook URL |
|
[String] |
Array |
No |
List of events to be delivered |
|
String |
String |
Yes |
Optional secret that will be passed in |
Requests
All webhook requests are tracked. Failed requests will be retried.
$ curl -H "Authorization: Bearer api-key" https://api.planadoapp.com/v2/webhooks/5491b43c-d3a1-4bf4-ab43-cb2f3673d18c/requests | jq
{
"requests": [
{
"uuid": "b29766e7-b4b8-4b43-a8e5-d8186d81e00a",
"event_type": "client_updated",
"entity_type": "client",
"entity_uuid": "b0a8e6e5-4846-4698-b38d-184517d09fe6",
"entity_version": 2,
"attempt_no": 2,
"status": "sent",
"http_request_body": "<long JSON body>",
"http_response_code": null,
"http_response_headers": null,
"http_response_body": null,
"send_at": "2020-04-26T01:15:36+00:00",
"sent_at": "2020-04-26T01:15:40+00:00",
"request_time_ms": 4,
"error_type": "connection failure",
"error_description": "Failed to open TCP connection to :80 (Connection refused - connect(2) for nil port 80)"
},
...
]
}
Field | Type | JSON type | Can be null |
Description |
---|---|---|---|---|
|
UUID |
String |
No |
Unique identifier |
|
String |
String |
No |
Event type |
|
String |
String |
No |
Can be |
|
UUID |
String |
No |
Entity identifier |
|
Integer |
Number |
No |
Entity version |
|
Integer |
Number |
No |
Attempt # |
|
String |
String |
No |
|
|
String |
String |
No |
String-encoded JSON body |
|
Integer |
Number |
Yes |
Response status code |
|
Map |
Object |
Yes |
Response headers |
|
String |
String |
Yes |
Response body |
|
String |
No |
Scheduled request time |
|
|
String |
Yes |
Actual request time |
|
|
Integer |
Number |
Yes |
Elapsed request time in milliseconds |
|
String |
String |
No |
If request fails with a non-HTTP error this field is added |
|
String |
String |
Yes |
If request fails with a non-HTTP error this field contains error description |