Skip to main content
POST
/
v1
/
secrets
Create or update an encrypted secret
curl --request POST \
  --url https://api.runtools.ai/v1/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "value": "<string>",
  "scope": "all",
  "category": "provider",
  "description": "<string>",
  "orgWide": true
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.runtools.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

WorkOS session token or RunTools API key (rt_live_* / rt_test_*). Used in Authorization: Bearer <token> header.

Body

application/json
name
string
required

Uppercased to [A-Z0-9_]+ server-side.

value
string
required
scope
string
default:all
category
string
default:provider
description
string
orgWide
boolean

Create as org-shared secret (admin only).

Response

Updated.