Retrieve authentication tokens

Request

Retrieves a list of customer authentication tokens.

Security
SecretApiKey or JWT
Query
limitinteger, [ 0 .. 1000 ]

Limits the number of collection items to be returned.

offsetinteger, [ 0 .. 1000 ]

Specifies the starting point within the collection of items to be returned.

curl -i -X GET \
  'https://www.rebilly.com/_mock/catalog/all/authentication-tokens?limit=1000&offset=1000' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE'

Responses

List of auth tokens retrieved.

Headers
Pagination-Totalinteger

Total number of items.

Example:332
Pagination-Limitinteger

Maximum number of items per page.

Example:100
Pagination-Offsetinteger

Specifies the starting point within the collection of resource results. For example, a request with limit=20 retrieves and displays the first 20 results on a page. A following request with limit=20 and offset=20, retrieves the next page of 20 results.

Example:2
Bodyapplication/json
Array [
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": [] } ]