Skip to content

Activate an OAuth 2.0 client secret

Request

OAuth 2.0 scope:
  • okta.apps.manage

Activates an OAuth 2.0 client secret by secretId

Path
appIdstringrequired

Application ID

Example:0oafxqCAJWWGELFTYASJ
secretIdstringrequired

Unique id of the OAuth 2.0 client secret

Example:ocs2f4zrZbs8nUa7p0g4
curl -i -X POST \
  https://subdomain.okta.com/api/v1/apps/0oafxqCAJWWGELFTYASJ/credentials/secrets/ocs2f4zrZbs8nUa7p0g4/lifecycle/activate

Responses

OK

Bodyapplication/json
client_secretstringread-only

The OAuth 2.0 client secret string

Example:"DRUFXGF9XbLn......a3x3POBiIxDreBCdZuFs5B"
createdstringread-only

Timestamp when the OAuth 2.0 client secret was created

Example:"2023-02-21T20:08:24.000Z"
idstringread-only

The unique ID of the OAuth 2.0 client secret

Example:"ocs2f4zrZbs8nUa7p0g4"
lastUpdatedstringread-only

Timestamp when the OAuth 2.0 client secret was updated

Example:"2023-02-21T20:08:24.000Z"
secret_hashstringread-only

OAuth 2.0 client secret string hash

Example:"yk4SVx4sUWVJVbHt6M-UPA"
statusstring

Status of the OAuth 2.0 client secret

Default:"ACTIVE"
Enum:"ACTIVE""INACTIVE"
Example:"ACTIVE"
Response
{ "id": "ocs2f50kZB0cITmYU0g4", "status": "ACTIVE", "client_secret": "DRUFXGF9XbLn......a3x3POBiIxDreBCdZuFs5B", "secret_hash": "0WOOvBSzV9clc4Nr7Rbaug", "created": "2023-04-06T21:32:33.000Z", "lastUpdated": "2023-04-06T21:32:33.000Z", "_links": { "deactivate": { … } } }