Learn how to build your app on Okta, fast. QUICK STARTS
Edit Page


This endpoint is a Deprecated feature. Please see Getting an API Token.

Create tokens

POST /tokens

Create a token. This API does not require any token-based authentication to access.

Request Example

curl -v -X POST \
-H "Content-type:application/json" \
-H "Accept:application/json" \
-d '{
  "username": "user8u3VOJBREVQHBTAS@asdf.com",
  "password": "SecretPass",
  "clientAppId": "capalkhfadflkjh",
  "deviceName": "Sample Device Name"
}' "https://{yourOktaDomain}/api/v1/tokens"

Response Example

  "token": "00F-MBcxD2SC8tzXDCDZm2a04qtXLcFqtlrrPu6eVtxRs"

Revoke tokens

DELETE /tokens

Revokes the token that is being used to authenticate to the API.

Request Example

curl -v -X DELETE \
-H "Content-type:application/json" \
-H "Authorization:SSWS ${api_token}" \
-H "Accept:application/json" \