v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Regenerate Authentication Token

Generates authentication token using auth key or expired token generated in otp/validate API. By default, a token is valid for 15 minutes. You can use this API only for orgs in which password based authentication is enabled.

post/auth/v1/web/token/regenerate

Request body

identifierTypestring required

Identifier used for token generation. Values: MOBILE, EMAIL, USERNAME.

identifierValuestring required

Value of the specified identifierType.

brandstring required

Name of the brand/org for which authentication needs to be verified.

expiredTokenstring required

Unique key generated for the successful web OTP validation.

Response

200

identifierTypestring
identifierValuestring
brandstring
expiredTokenstring

Example response

{
  "identifierType": "MOBILE",
  "identifierValue": "0495678923",
  "brand": "STANDARDAPP",
  "expiredToken": "nhdbYiOlsiTU9CSUxFfDk5NDU1NjAyMjQiXSwiZGV2IjoiMzJydHNkZXJlZCIsIm9yZyI6IlNUQU5EQVJEQVBQIiwiYWxnIjoiSFMyNTYifQ.eyJpc3MiOiJDQVBJTExBUlkgVEVDSE5PTE9HSUVTIiwib2djIjpbIjE1MTA2MHxzYS5kZW1vLnNvbHV0aW9uIl0sImV4cCI6MTU5NzY1NTgxMywiaWF0IjoxNTk3NjUyMjEzLCJyb2wiOiJWSUVXIn0.2LqAg3tDVu8VwasSXuwiL6p917NCxgpKEt76qqrHGsF"
}