query webhooksAuthenticated
Returns WebhookConnection!
Arguments
| Argument | Type | Description |
|---|---|---|
input | WebhooksInput! |
Example request
curl -X POST 'https://graph.clientloop.com/' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{
"query": "query Webhooks($input: WebhooksInput!) { webhooks(input: $input) { edges { node { id ownerId url events description enabled secretCheckValue createdAt updatedAt } cursor } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } } }",
"variables": {
"input": {
"ownerId": "abc123",
"first": 42,
"after": "example",
"last": 42,
"before": "example"
}
}
}'const response = await fetch('https://graph.clientloop.com/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <api-key>',
},
body: JSON.stringify({
query: `
query Webhooks($input: WebhooksInput!) {
webhooks(input: $input) {
edges {
node {
id
ownerId
url
events
description
enabled
secretCheckValue
createdAt
updatedAt
}
cursor
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}
`,
variables: {
"input": {
"ownerId": "abc123",
"first": 42,
"after": "example",
"last": 42,
"before": "example"
}
},
}),
});
const { data, errors } = await response.json();<?php
$body = <<<'JSON'
{
"query": "query Webhooks($input: WebhooksInput!) { webhooks(input: $input) { edges { node { id ownerId url events description enabled secretCheckValue createdAt updatedAt } cursor } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } } }",
"variables": {
"input": {
"ownerId": "abc123",
"first": 42,
"after": "example",
"last": 42,
"before": "example"
}
}
}
JSON;
$ch = curl_init('https://graph.clientloop.com/');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'Authorization: Bearer <api-key>',
],
CURLOPT_POSTFIELDS => $body,
]);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
var body = """
{
"query": "query Webhooks($input: WebhooksInput!) { webhooks(input: $input) { edges { node { id ownerId url events description enabled secretCheckValue createdAt updatedAt } cursor } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } } }",
"variables": {
"input": {
"ownerId": "abc123",
"first": 42,
"after": "example",
"last": 42,
"before": "example"
}
}
}
""";
var request = HttpRequest.newBuilder(URI.create("https://graph.clientloop.com/"))
.header("Content-Type", "application/json")
.header("Authorization", "Bearer <api-key>")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
var response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());using System.Net.Http;
using System.Text;
var body = """
{
"query": "query Webhooks($input: WebhooksInput!) { webhooks(input: $input) { edges { node { id ownerId url events description enabled secretCheckValue createdAt updatedAt } cursor } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } } }",
"variables": {
"input": {
"ownerId": "abc123",
"first": 42,
"after": "example",
"last": 42,
"before": "example"
}
}
}
""";
using var client = new HttpClient();
using var content = new StringContent(body, Encoding.UTF8, "application/json");
client.DefaultRequestHeaders.Add("Authorization", "Bearer <api-key>");
var response = await client.PostAsync("https://graph.clientloop.com/", content);
var result = await response.Content.ReadAsStringAsync();Types
input WebhooksInput
| Field | Type | Description |
|---|---|---|
ownerId | ID | |
first | Int | |
after | String | |
last | Int | |
before | String |
type WebhookConnection
| Field | Type | Description |
|---|---|---|
edges | [WebhookEdge!]! | |
pageInfo | PageInfo! |
type WebhookEdge
| Field | Type | Description |
|---|---|---|
node | Webhook! | |
cursor | String! |
type PageInfo
PageInfo type for cursor-based pagination following the Relay specification for cursor based pagination.
| Field | Type | Description |
|---|---|---|
hasNextPage | Boolean! | |
hasPreviousPage | Boolean! | |
startCursor | String | |
endCursor | String |
type Webhook
A subscription that delivers event notifications to an owner-supplied HTTPS endpoint. Referenced by id so its url or event list can change without affecting referencing records.
| Field | Type | Description |
|---|---|---|
id | ID! | |
ownerId | ID! | |
url | String! | Destination HTTPS endpoint that receives event payloads via POST. |
events | [String!]! | Event types this webhook is subscribed to (e.g. "commitment.created"). |
description | String | Optional human-readable label describing the webhook's purpose. |
enabled | Boolean! | Whether the webhook is active and delivering events. |
secretCheckValue | String! | Checksum of the signing secret, used to confirm which secret is configured without exposing it. The raw secret is only ever returned by webhookCreate and webhookRotateSecret. |
createdAt | DateTime! | |
updatedAt | DateTime! |
scalar DateTime
ISO 8601 formatted date time. Ex. 2023-11-23T14:30:00Z