Webhook Protocols
Webhooks support the following protocols:
- HTTP(S)
- Google Cloud Pub/Sub
- AWS SQS
- SB
- WS
- WSS
HTTP(S)
Webhook payloads are sent in POST requests.
All webhooks with targetUrl
, where the scheme is HTTP(S) will use this protocol.
Nautical calculates the HMAC sha256 header - X-Nautical Commerce-Signature
based on secretKey
and the payload
Google Cloud Pub/Sub
All webhooks where scheme is gcpubsub
will be treated as a Google Cloud Pub/Sub webhooks.
The structure of targetUrl
should be as below:
gcpubsub://cloud.google.com/projects/<yourproject>/topics/<yourtopic>
To proper use the Google Cloud Pub/Sub you need to set the GOOGLE_APPLICATION_CREDENTIALS
environment variable
AWS SQS
All webhooks where scheme is awssqs
will be treated as AWS SQS webhooks.
The structure of targetUrl
should be as below:
awssqs://<access_key_id>:<secret_access_key>@sqs.<region>.amazonaws.com/<account_id>/<queue_name>