Skip to content

List all API service integration instance secrets

Request

OAuth 2.0 scope:
  • okta.oauthIntegrations.read

Lists all client secrets for an API Service Integration instance by apiServiceId

Path
apiServiceIdstringrequired

id of the API Service Integration instance

Example:000lr2rLjZ6NsGn1P0g3
curl -i -X GET \
  https://subdomain.okta.com/integrations/api/v1/api-services/000lr2rLjZ6NsGn1P0g3/credentials/secrets

Responses

OK

Bodyapplication/json
Array [
client_secretstringread-onlyrequired

The OAuth 2.0 client secret string. The client secret string is returned in the response of a Secret creation request. In other responses (such as list, activate, or deactivate requests), the client secret is returned as an undisclosed hashed value.

Example:"DRUFXGF9XbLnS9k-Sla3x3POBiIxDreBCdZuFs5B"
createdstringread-onlyrequired

Timestamp when the API Service Integration instance Secret was created

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

The ID of the API Service Integration instance Secret

Example:"ocs2f4zrZbs8nUa7p0g4"
lastUpdatedstringread-onlyrequired

Timestamp when the API Service Integration instance Secret was updated

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

OAuth 2.0 client secret string hash

Example:"yk4SVx4sUWVJVbHt6M-UPA"
statusstringrequired

Status of the API Service Integration instance Secret

Enum:"ACTIVE""INACTIVE"
Example:"ACTIVE"
]
Response
[ { "id": "ocs2f4zrZbs8nUa7p0g4", "status": "INACTIVE", "client_secret": "***DhOW", "secret_hash": "yk4SVx4sUWVJVbHt6M-UPA", "created": "2023-02-21T20:08:24.000Z", "lastUpdated": "2023-02-21T20:08:24.000Z", "_links": { … } }, { "id": "ocs2f50kZB0cITmYU0g4", "status": "ACTIVE", "client_secret": "***MQGQ", "secret_hash": "0WOOvBSzV9clc4Nr7Rbaug", "created": "2023-04-06T21:32:33.000Z", "lastUpdated": "2023-04-06T21:32:33.000Z", "_links": { … } } ]