List API resource secrets

View as Markdown
GET
/resources/api_resources/{api_id}/secrets

Retrieves a list of secrets associated with the API resource.

Authorization

API-Key
headerX-API-KEY<token>

MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>

Path Parameters

api_id*string

The unique identifier of the API resource.

Response Body

200

application/json

The API resource secrets were retrieved successfully

TypeScript Definitions

Use the response body type in TypeScript.

Returns an array. Each item has the fields below.

Secret Response: Represents a credential used by a client or API resource.

Errors

401Unauthorized
403Forbidden

curl -X GET "https://your-domain.us.monocloud.com/api/resources/api_resources/n8TniSuy4WN9ROJYNwir6/secrets" \  -H "X-API-KEY: <token>"
[  {    "id": "string",    "description": null,    "expiration": null,    "type": "shared_secret",    "creation_time": 0,    "last_updated": 0,    "secret_value": "string"  }]
© 2026 MonoCloud. All rights reserved.