Examples
Example of integration with Vouch
🧪 Try it out!
Prerequisite
To run the following example, please make sure you have vlayer extension installed.
Example of integration with Vouch
This document provides a step-by-step guide on how to integrate your application with Vouch.
Step 1: Redirect user to Vouch
The first step to trigger web proof generation is to redirect the user to the app.getvouch.io
.
This button will open the Vouch application in a new tab with the following parameters:
Query Param | Description | Value |
---|---|---|
requestId | Unique identifier for the request | 650c70f7-ff4b-4ed6-9ee7-60cdab45f9b8 |
customerId | UUID of the selected customer app | 1be03be8-5014-413c-835a-feddf4020da2 |
datasourceId | UUID of the selected datasource | 1cb27231-a559-4f19-8929-463ed90446dd |
inputs | Base64 encoded datasource params: {"twitter_username":"zkmarek"} | eyJ0d2l0dGVyX3VzZXJuYW1lIjoiemttYXJlayJ9 |
redirectBackUrl | URL to redirect the user back to your app | http://localhost:3000/examples/integration?requestId=650c70f7-ff4b-4ed6-9ee7-60cdab45f9b8 |
webhookUrl | POST URL to send the WebProof | https://docs.getvouch.io/api/web-proof/650c70f7-ff4b-4ed6-9ee7-60cdab45f9b8 |