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

ArgumentTypeRequiredDefaultDescription
webhook_idString!Yes

Base64-encoded ApiWebhook id.

date_fromISODateTimeNo

UTC datetime lower bound for log timestamp. Defaults to one hour before date_to when omitted.

date_toISODateTimeNo

UTC datetime upper bound for log timestamp. Defaults to the current UTC time when omitted.

firstIntNo

Page size for cursor pagination. Defaults to 10. Maximum value is 100.

afterStringNo

Cursor returned by the previous page.

analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

WebhooksCallLogsQueryResult

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 {
      ...WebhookCallLogPageFragment
    }
  }
}

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
    }
  }
}