Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Using TypeScript? Check out our GraphQL SDK for a fully typed client.

List webhook targets

Query
query getWebhookTargets($first: Int = 50, $after: String) {
  webhookTargets(first: $first, after: $after) {
    edges {
      node {
        id
        url
        description
        version
        isEnabled
        eventSubscriptions {
          eventType
        }
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 50
}

Get a webhook target by ID

Query
query getWebhookTarget($webhookTargetId: ID!) {
  webhookTarget(webhookTargetId: $webhookTargetId) {
    id
    url
    description
    version
    isEnabled
    eventSubscriptions {
      eventType
    }
  }
}
Variables
{
  "webhookTargetId": "wt_01HXXXXXXXXXXXXXXXXXXXXXXX"
}