...
By way of example, the default scenario_session/createcreated
webhook notification includes the following:
...
X-Scope-Topic:
scenario_session/createcreated
X-Scope-Topic-Version:
1.1
X-Scope-API-Version:
3
X-Scope-Domain:
scopear.com
X-Scope-Webhook-Type:
node
X-Scope-Hmac-Sha256:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
X-Scope-Webhook-Id:
b54557e4-bdd9-4b37-8a5f-bf7d70bcd043
...
The following example shows how to subscribe for the scenario_session/createcreated
webhook topic (via the Scope GraphQL API).
...
Code Block | ||
---|---|---|
| ||
mutation { createWebhookSubscription( webhookSubscription: { topic: { key: 'scenario_session/createcreated' } callbackUrl: "https://my-custom-application.com/hooks/scopear" sharedSecret: "SOME SUPER SECRET STRING" } ) { errors { field message } webhookSubscription { id } } } |
...