List all API Token Metadata

GET {{baseUrl}}/api/v1/api-tokens

Lists all the metadata of the active API tokens

Request Params

KeyDatatypeRequiredDescription
afterstringThe cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination for more information.
limitnumberA limit on the number of objects to return.
qstringFinds a token that matches the name or clientName.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

[{"name":"My API Token","userId":"00uabcdefg1234567890","tokenWindow":"P30D","id":"00Tabcdefg1234567890","clientName":"Okta API","expiresAt":"2021-12-11T20:38:10.000Z","created":"2021-11-09T20:38:10.000Z","lastUpdated":"2021-11-11T20:38:10.000Z","_links":{"self":{"href":"https://{yourOktaDomain}/api/v1/api-tokens/00Tabcdefg1234567890","hints":{"allow":["GET","DELETE"]}},"user":{"href":"https://{yourOktaDomain}/api/v1/users/00uabcdefg1234567890","hints":{"allow":["GET"]}}}},{"name":"Another API Token","userId":"00uabcdefg1234567890","tokenWindow":"PT5M","id":"00T1234567890abcdefg","clientName":"Okta API","expiresAt":"2021-11-11T20:43:10.000Z","created":"2021-11-09T20:38:10.000Z","lastUpdated":"2021-11-11T20:38:10.000Z","_links":{"self":{"href":"https://{yourOktaDomain}/api/v1/api-tokens/00T1234567890abcdefg","hints":{"allow":["GET","DELETE"]}},"user":{"href":"https://{yourOktaDomain}/api/v1/users/00uabcdefg1234567890","hints":{"allow":["GET"]}}}}]