Webhooks
Webhooks are HTTP callbacks that allow you to receive notifications when a Payload (Sign Request) has been resolved (rejected or signed).
Webhooks are essential for asynchronous communication and can trigger specific actions in your application based on events in Xumm.
If you entered a valid Webhook URL in your Application Settings at the Xumm Xumm Developer Console, your application would receive an HTTP POST containing a JSON body with limited details for the given payload.
Please note a Webhook will not contain the entire payload: to get the entire payload, you should GET the payload using an SDK/API call.
A sample webhook looks like this:
If a user token (userToken
.user_token
) is issued and you plan on payload delivery using push notifications in the future, your application could/should store the token. See Push
Use the payloadResponse
.payload_uuidv4
to confirm and get payload outcome using an SDK/API call.
Expected result / retry
If your backend does not respond within 15 seconds, or responds with a non 200 HTTP status code, the Xumm platform will retry the webhook four more times (bringing the max. total attempts at five).
The first retry will take place after 10 seconds. The next after 60 seconds. Then two more retries will take place at a 600 second (10 minute) interval.
Safety
If you want to make sure the Webhook your application received came from the Xumm platform, there are two things you can do:
Send a GET for the payload to get the full payload using the SDK/API to the Xumm platform: get( … )
Verify the signature we send in a HTTP Header when we deliver the Webhook: Signature verification\
Last updated