🧩 Webhook integration
Accessing Viewst API
To use Viewst API you need 2 public URLs on your side. Authentication one (Auth URL) and another for getting export results (Result Handler URL)
Auth URL
Auth URL should receive request with a pair - login and password and send back an authentication JSON WEB token.
An example of incoming request:
An example of a token:
Important notes:
Indicate an origin as viewst.com to allow CORS
The access token should be valid forever
Result Handler URL
When the export is successful Viewst sends a POST request for Result Handler URL.
The authorization title contains a token in the form of Bearer ${token}
:
The request body contains the export type (exportType)
The response body also contains a link to the export results ****(resultURL)
A request example: