webhookEventTypes
Requires permission settings:webhooks:read.
Lists the event types a webhook endpoint can subscribe to. Requires permission to read webhooks.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query WebhookEventTypes {
webhookEventTypes
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query WebhookEventTypes {\n webhookEventTypes\n}"
}
EOF
Response:
{
"data": {
"webhookEventTypes": [
"string"
]
}
}
webhookEventTypes: [String!]!
Type
String scalar
The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.