Push
Delivering Sign Requests using a push notification can be a very convenient way for end users to interact with your application: they don't even have to scan a QR code.
If you are building a backend integration, the flow is slightly different.
Backend
If your application features user sign-in (to identify your user) and you obtained a user_token from a previously signed payload from this specific user, you can add the user_token to the next payload to deliver the payload through a push notification.
The first interaction (to obtain the user_token) will always involve either: showing a QR code for the user to scan with the Xumm app or a deep link to the Xumm app to sign a payload.
A payload containing a user token looks like this:
{
"user_token": "c5bc4ccc-28fa-4080-b702-0d3aac97b993",
"txjson": { ... }
}After posting the payload the Xumm SDK/API, the response will confirm push notification delivery:
{
"uuid": "<some-uuid>",
...
"pushed": true
}Obtaining the `user_token`
From a webhook
After the end user resolves the sign request by signing, the configured application Webhook URL will receive a JSON body per POST request containing the accessToken section:
From a resolved Payload
When you get the payload results, the application.issued_user_token contains the user token.
Last updated
Was this helpful?