okta.apiTokens.read
Lists all the metadata of the active API tokens
after | string The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the |
limit | integer [ 1 .. 200 ] Default: 20 A limit on the number of objects to return. |
q | string Finds a token that matches the name or clientName. |
OK
Forbidden
Too Many Requests
[- {
- "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": {
- "hints": {
- "allow": [
- "GET",
- "DELETE"
]
}
}, - "user": {
- "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": {
- "hints": {
- "allow": [
- "GET",
- "DELETE"
]
}
}, - "user": {
- "hints": {
- "allow": [
- "GET"
]
}
}
}
}
]
Revokes the API token provided in the Authorization header
No Content
Forbidden
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.apiTokens.read
Retrieves the metadata for an active API token by id
OK
Forbidden
Not Found
Too Many Requests
{- "name": "My API Token",
- "userId": "00uXXXXXXXXXXXXXXXXX",
- "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": {
- "hints": {
- "allow": [
- "GET",
- "DELETE"
]
}
}, - "user": {
- "hints": {
- "allow": [
- "GET"
]
}
}
}
}
okta.apiTokens.manage
Revokes an API token by apiTokenId
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}