Skip to main content
POST
Create a secret

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Body

application/json
name
string
required

Unique in the workspace, ignoring case, such as ORDERS_API_KEY. Letters, digits, spaces, dots, dashes and underscores, starting with a letter or digit; up to 100 characters.

Required string length: 1 - 100
Pattern: ^[A-Za-z0-9][A-Za-z0-9 _.-]*$
value
string
required

The credential, such as an API key, sent as the header value by every tool that uses the secret. Surrounding spaces are dropped, and line breaks are refused. It is encrypted when saved and never returned.

Required string length: 1 - 8192

Response

Created.

data
object
required