Verify Token

Verify Token

Verify a sent verification token. Can only be done once for each token.

  • Send the verification code that your user supplied, with the corresponding id from the Verify request.
  • Check the status of the response to determine if the code the user supplied matches the one sent by {app}.

API Endpoint

http://portal.thundersms.com/api/v2/

GET

{endpoint}verify/check/{id}/{token}

MANDATORY PARAMETERS

Name Type Description
id string This is the id you received in the response to the Verify request.
token int The verification code entered by your user.

Example Request

curl -X GET \
  '{endpoint}verify/check/41379328-d3a7-4fcd-be90-d5237f911d76/742385' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer 38e896f55670311982434e929559xxxx' \

Example Response

{
  "id": "41379328-d3a7-4fcd-be90-d5237f911d76",
  "status": "success"
}

SUCCESS CODES

Code Status Status Description
200 success Verified successfully.

FAILURE CODES

Code Status Status Description
401 Unauthenticated Authetication Error
200 failed when you passed invalid id value
200 expired token expired
200 invalid when you passed wrong token for verificaton