Skip to content

Retrieve a YubiKey OTP token

Request

OAuth 2.0 scope:
  • okta.users.read

Retrieves the specified YubiKey OTP token by id

Path
tokenIdstringrequired

The YubiKey OTP token ID

curl -i -X GET \
  'https://subdomain.okta.com/api/v1/org/factors/yubikey_token/tokens/{tokenId}'

Responses

Success

Bodyapplication/json
createdstring, (date-time)read-only

Timestamp when the token was created

Example:"2022-08-25T00:31:00.000Z"
idstringread-only

ID of the token

Example:"ykkwcx13nrDq8g4oy0g3"
lastUpdatedstring, (date-time)read-only

Timestamp when the token was last updated

Example:"2022-08-25T00:31:00.000Z"
lastVerifiedstring, (date-time)read-only

Timestamp when the token was last verified

Example:"2022-08-25T00:31:00.000Z"
profileobject

Specified profile information for token

statusstring

Token status

Enum:"BLOCKED""UNASSIGNED""ACTIVE""REVOKED""DELETED""INACTIVE"
_embeddedobject
Response
{ "id": "ykkxdtCA1fKVxyu6R0g3", "created": "2020-06-09T23:42:05.000Z", "activated": "2020-06-09T23:47:29.000Z", "lastVerified": "2020-06-09T23:47:29.000Z", "lastUpdated": "2020-06-09T23:47:29.000Z", "status": "ACTIVE", "profile": { "serial": "000009508427" }, "_links": { "self": { … }, "user": { … }, "deactivate": { … } } }