Verify an authentication token

Request

Verifies a customer's authentication token.

Security
SecretApiKey or JWT or PublishableApiKey
Path
tokenstringrequired

ID of the authentication token.

curl -i -X GET \
  'https://www.rebilly.com/_mock/catalog/all/authentication-tokens/{token}' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE'

Responses

Authentication token verified.

Bodyapplication/json
usernamestringrequired

Username of the customer who is associated with the authentication token.

customerIdstring, <= 50 characters(CustomerId)read-only

ID of the customer resource.

Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
tokenstringread-only

ID of the authentication token.

otpRequiredboolean

Specifies if a One-Time Password (OTP) is required to exchange the authentication token.

credentialIdstring, <= 50 characters(ResourceId)read-only

ID of the user associated with the authentication token.

Example:"4f6cf35x-2c4y-483z-a0a9-158621f77a21"
expiredTimestring or null, (date-time)

Date and time when the token expired.

Response
{ "username": "string", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "token": "string", "otpRequired": true, "credentialId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21", "expiredTime": "2019-08-24T14:15:22Z", "_links": [ {} ] }