The GraphQL API of Pipefy provides the function of WebHooks: you can register them, so that upon a certain action, an URL you specify is called, which enables you to use the GraphQL API to develop your own integrations and automations.
These WebHooks can be registered for both Database Tables and Pipes. But: to query them, to check which WebHooks are registered on a pipe, the Documentation does not provide a straight-forward way: The object you are looking for is Webhook, and as you can see in Pipe, there is a field ‚webhooks‘ linking to said object; in Table or TableRecord, there is not.
So, what is the trick? How can I query which WebHooks are attached to a DataBase?
The trick is not obvious, but straight-forward: use the database id as a pipe id!
Like this:
query {
pipes(ids:s"yourTableId"]) {
id
webhooks{
id
url
name
headers
actions
}
}
}