×

Validate Token – Onboarding Link New

Validate Token API

You can copy the UUID which is generated in the Onboarding Base URL and provide it in the Get Validate Token API in the end and check then validity.

Example -

  • If this is the onboarding link that is generated - "onboarding_url": "https://messaging.exotel.com/ua-links/isv-onboard/41eabcd-abcdabcd"  then you can copy the last part of the URL like "41eabcd-abcdabcd".
  • Open the Get - Validate Token API and provide the copied token in the end of the URL. 
  • The Sample URL with the above example will look like this - 'https://{{AuthKey}}:{{AuthToken}}@{{SubDomain}}/v2/accounts/{{AccountSid}}/isv?access_token=41eabcd-abcdabcd'
GET

https://{{AuthKey}}:{{AuthToken}}@{{SubDomain}}/v2/accounts/{{AccountSid}}/isv?access_token={{token}}

{
    "request_id": "15dbef467ff34a96b78e67baf63c19bf",
    "method": "GET",
    "http_code": 200,
    "response": {
        "whatsapp": {
            "isv": {
                "code": 200,
                "error_data": null,
                "status": "success",
                "data": {
                    "onboarding_token_status": "VALID"
                }
            }
        }
    }
}