Skip to main content

Integration Vision

Overview​

This service facilitates the vision streams for logged in users in the embed widget.

Enabling Vision​

In order to enable vision you'll need to implement following endpoint for us to validate the user.

fetchUserStatus Endpoint.​

This endpoint will allow us to validate the user status. You'll need to validate the login status and user balances.

Endpoint will need to be protected using either client_credentials or api_key. Same credentials used for wallet transactions will be passed as the Bearer token.

Example Request:​
POST {ExternalWalletEndpoint}/auth/fetchUserStatus

Request body:
{
"token": "token", // Token used to login to the system.
"metadata": {
"userId": "user-id",
"brandName": "betmakers",
"brandUserId": "brand-user-id",
"data": ""
}
}

Response:
{
"loggedIn": true,
"cashBalance": 1000
}

Example CURL:​

curl --location '{ExternalWalletEndpoint}/auth/fetchUserStatus' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY/ACCESS_TOKEN>' \
--data '{
"token": "<USER_TOKEN>",
"metadata": {
"userId": "external-user-1",
"brandName": "betmakers",
"brandUserId": "external-user-1",
"data": ""
}
}'