webhooks_call_logs
Returns customer webhook call logs. date_from and date_to are UTC datetimes. If date_to is omitted it defaults to the current UTC time; if date_from is omitted it defaults to one hour before date_to. The maximum allowed period is one week.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
webhook_id | String! | Yes | Base64-encoded ApiWebhook id. | |
date_from | ISODateTime | No | UTC datetime lower bound for log timestamp. Defaults to one hour before date_to when omitted. | |
date_to | ISODateTime | No | UTC datetime upper bound for log timestamp. Defaults to the current UTC time when omitted. | |
first | Int | No | Page size for cursor pagination. Defaults to 10. Maximum value is 100. | |
after | String | No | Cursor returned by the previous page. | |
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
Query
query webhooks_call_logs(
$webhook_id: String!,
$date_from: ISODateTime,
$date_to: ISODateTime,
$first: Int,
$after: String,
$analyze: Boolean
) {
webhooks_call_logs(
webhook_id: $webhook_id,
date_from: $date_from,
date_to: $date_to,
first: $first,
after: $after,
analyze: $analyze
) {
request_id
complexity
data {
edges {
cursor
node {
id
webhook_type
url
timestamp
status_code
response
}
}
page_info {
has_next_page
has_previous_page
start_cursor
end_cursor
}
}
}
}Variables
{
"webhook_id": "abc123",
"date_from": ISODateTime,
"date_to": ISODateTime,
"first": 987,
"after": "abc123",
"analyze": true
}Response
{
"data": {
"webhooks_call_logs": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"data": WebhookCallLogPage
}
}
}