Read Resource Client Secret

GET {{apiPath}}/environments/{{envID}}/resources/{{resourceID}}/secret

The GET /environments/{{envID}}/resources/{{resourceID}}/secret operation retrieves a resource’s client secret. If a previous secret has been designated (and has not expired), the previous secret is also returned by the request. Any non-custom resources will return a 404 response.

Prerequisites

Create a resource to get a {{resourceID}} for the endpoint. For more information, see Resources.

RESPONSES

status: OK

{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/resources/4ae5e950-6cf5-4109-87de-ccadd1363c13/secret"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"resource":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/resources/4ae5e950-6cf5-4109-87de-ccadd1363c13"}},"environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"secret":"zaopVd.X_Lf4Eo","previous":{"secret":"5t_pCSKazwlA.","expiresAt":"2024-01-02T13:54:34.487Z"}}