Skip to main content
POST
/
v1
/
apps
/
{id}
/
secrets
Set app secret
curl --request POST \
  --url https://api.usenaive.ai/v1/apps/{id}/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "value": "<string>"
}
'
{
  "key": "<string>",
  "target": "<string>"
}

Authorizations

Authorization
string
header
required

Workspace API key. Create one via the dashboard or POST /v1/auth/keys.

Path Parameters

id
string
required

Body

application/json
key
string
required
value
string
required
target
enum<string>
required
Available options:
preview,
production

Response

Saved.

key
string
target
string