Webhook
Endpoints for managing webhook subscriptions: list current subscriptions, register new endpoint URLs, remove existing ones, and send a test event to verify a subscription.
Lists all the URLs that are currently subscribed to receive events via webhooks.
Authorize your requests using a tenant's API Key. Use this method of security only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t" or "test_abo912126tastastt"
A list of endpoints
An endpoint to receive events
The url of the endpoint that receives events.
http://app.example.com/endpoint/sqtchOptional name of the endpoint that receives events.
ZapierHow the subscription was created. Always MANUAL for subscriptions created via the API.
MANUALThe event types this endpoint is subscribed to. ["*"] means all event types.
["*"]Unexpected Error
curl -L \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/subscription' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'[
{
"endpointUrl": "https://example.com/hook",
"name": "Zapier",
"source": "MANUAL",
"webhookTypes": [
"*"
]
},
{
"endpointUrl": "https://another.example.com/hook",
"name": "Example",
"source": "MANUAL",
"webhookTypes": [
"*"
]
}
]Subscribes a URL to receive events via webhooks.
Authorize your requests using a tenant's API Key. Use this method of security only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t" or "test_abo912126tastastt"
An endpoint to receive events
The url of the endpoint that receives events.
http://app.example.com/endpoint/sqtchOptional name of the endpoint that receives events.
ZapierHow the subscription was created. Always MANUAL for subscriptions created via the API.
MANUALThe event types this endpoint is subscribed to. ["*"] means all event types.
["*"]Webhook endpoint created
No content
Unexpected Error
curl -L \
--request POST \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/subscription' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'No content
Removes a URL from receiving events via webhooks.
Authorize your requests using a tenant's API Key. Use this method of security only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t" or "test_abo912126tastastt"
The url of the endpoint that will be removed. URL-encode this field.
Endpoint deleted
No content
Unexpected Error
curl -L \
--request DELETE \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/subscription/{url}' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'No content
Sends a test event to the specified webhook.
Authorize your requests using a tenant's API Key. Use this method of security only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t" or "test_abo912126tastastt"
The url of the endpoint to send a test message to. URL-encode this field.
Test message sent
No content
Unexpected Error
curl -L \
--request POST \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/subscription/{url}/test' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'No content
Last updated
