Skip to main content
POST
/
governance
/
resources
/
projects
/
secrets
Create a new project secret
curl --request POST \
  --url https://api.example.com/governance/resources/projects/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Project-ID: <x-project-id>' \
  --data '
{
  "name": "<string>",
  "value": "<string>",
  "description": "<string>"
}
'
{
  "name": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Project-ID
string
required

Body

application/json

Request body for creating a secret.

name
string
required

Secret name (e.g., 'credentials')

value
string
required

Secret value as string. Structure depends on the resource type. For more complex secrets this can be a serialized JSON string.

description
string | null

Optional description of the secret

Response

Successful Response

Response body for a newly created secret.

name
string
required

Name of the created secret

created_at
string<date-time>
required

Timestamp when the secret was created