Secrets

Create a secret

Creates a new encrypted secret in a project

post/v1/projects/{project_id}/secrets

Request

  • Base URL: https://api.naturali.ai
  • URL: https://api.naturali.ai/v1/projects/{project_id}/secrets
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)

Request body

namestring required

Secret name

valuestring required

Secret value (will be encrypted)

Example request

{
  "name": "DATABASE_PASSWORD",
  "value": "supersecretpassword"
}

Response

Secret created successfully

idstring
namestring
has_valueboolean

Whether an encrypted value is stored for this secret

project_idstring
created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.