Create a application secret
Creates a new secret credential for the specified application, which can be used to authenticate the application when requesting tokens.
API-KeyX-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>
The unique identifier of the application.
Request Body
application/json
The request payload used to create a application secret.
TypeScript Definitions
Use the request body type in TypeScript.
Create Secret Request: Represents a request to create a credential used by a client or API resource.
Response Headers
201
Returns the location header
uriResponse Body
application/json
The application secret was created successfully
TypeScript Definitions
Use the response body type in TypeScript.
Secret Response: Represents a credential used by a client or API resource.
Errors
curl -X POST "https://your-domain.us.monocloud.com/api/applications/eCOGRJYpnNwwAAuCeReEW/secrets" \ -H "X-API-KEY: <token>" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "description": null, "expiration": null, "type": "shared_secret", "creation_time": 0, "last_updated": 0, "secret_value": "string"}