Skip to main content
POST
/
api
/
v1
/
secrets
Create Secret
curl --request POST \
  --url https://api.example.com/api/v1/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chat_config": {
    "api_key": "<string>",
    "model": "<string>"
  },
  "inference_config": {
    "api_key": "<string>",
    "model": "<string>"
  }
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
chat_config
BaseSecret · object
inference_config
BaseSecret · object

Response

Successful Response