Skip to main content
PUT
/
secrets
Create or update a secret
curl --request PUT \
  --url https://api.quiva.ai/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "api-key",
  "value": "sk_live_abcdefghijklmnopqrstuvwxyz"
}
'
{
  "message": "success"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Secret details to store

key
string
required

The unique identifier for the secret

value
string
required

The secret value to store

Response

Secret created/updated successfully

message
string
Example:

"success"