Skip to main content
POST
/
api
/
vault
Create a new vault secret
curl --request POST \
  --url https://your-instance.example.com/api/vault \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "value": "<string>",
  "workosOrganizationId": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
value
string
required
workosOrganizationId
string

WorkOS organization ID (format: "org_...")

Response

Secret created successfully

Generic response envelope. Endpoint-specific fields are intentionally open.