Queries
webhooks
Returns all webhooks you have access to.
Template for Query:
query GetWebhooks($pagination: PaginationInput) {
webhooks(pagination: $pagination) {
# Webhooks Fields
}
}
Template for Query Variables:
{
"pagination" : "<SOME-PAGINATION-INPUT-TYPE-VALUE>"
}
Arguments
pagination | Specifies how to split the response into multiple pages. |
Possible Returns
Value Type | Description |
---|---|
Webhooks! non-null |
Contains a list of Webhooks you have access to. |
Example
Example 1
This example retrieves the subscription details of a webhook. It requests the webhook by its ID and displays the callback URL.
Query:
query GetWebhooks {
webhooks {
results {
id
callbackURL
}
}
}
Show More
Response:
{
"data": {
"webhooks": {
"results": [
{
"id": "c7aa4a81-20ff-4fa5-88f4-312357cdbb88",
"callbackURL": "https://www.getpostman.com/oauth2/callback"
},
{
"id": "88c2ee8f-6196-4292-ac4a-091c6844a3dd",
"callbackURL": "https://www.getpostman.com/oauth2/callback"
}
]
}
}
}
Show More