query WebhookTarget($webhookTargetId: ID!) {
webhookTarget(webhookTargetId: $webhookTargetId) {
id
url
description
eventSubscriptions {
eventType
}
version
isEnabled
}
}{
"webhookTargetId": "id"
}{
"data": {
"webhookTarget": {
"id": "id",
"url": "string",
"description": "string",
"eventSubscriptions": [
{
"eventType": "string"
}
],
"version": "string",
"isEnabled": true
}
}
}webhookTarget
Fetch a single webhook target by its ID. Returns null if no target with that ID exists in the workspace. Requires the webhookTarget:read permission. Creating, changing and deleting webhook targets are done by the user in the Plain app, because a webhook sends workspace events to an outside URL. The Plain app page is https://app.plain.com/workspace/w_…/settings/webhooks/<webhookTargetId>, or …/settings/webhooks/add for a new one.
webhookTarget(webhookTargetId: ID!): WebhookTargetArguments
Returns
The list of event types this target is subscribed to.
The webhook schema version this target is pinned to (e.g. '2024-01-01'). All events delivered to this target conform to that version's schema.
When false, Plain will not attempt to deliver any events to this target until it is re-enabled.
Custom HTTP headers sent with every delivery to this target, e.g. an Authorization header for endpoints that require bearer-token auth. Header values are stored encrypted and never returned — reads expose only the configured header names.
query WebhookTarget($webhookTargetId: ID!) {
webhookTarget(webhookTargetId: $webhookTargetId) {
id
url
description
eventSubscriptions {
eventType
}
version
isEnabled
}
}{
"webhookTargetId": "id"
}{
"data": {
"webhookTarget": {
"id": "id",
"url": "string",
"description": "string",
"eventSubscriptions": [
{
"eventType": "string"
}
],
"version": "string",
"isEnabled": true
}
}
}Was this page helpful?

