Create a partner secret
Creates a partner-level secret inherited by every organization you manage. Partner secrets are the lowest-priority tier — project and organization secrets override them when host patterns overlap.
Authorizations
API key obtained from the dashboard or GET /user/api-key
Body
1 - 255"Fallback Anthropic key"
anthropic, openai, generic The secret value (API key, token, etc.)
1 - 10000Hostname pattern to match (no ://, /, or spaces)
"api.anthropic.com"
Optional path pattern to match
1000How the gateway injects this secret into matching outbound requests (generic secrets only). Exactly one variant:
- Header —
{ "headerName": "Authorization", "valueFormat": "Bearer {value}" } - Query parameter —
{ "paramName": "key", "paramFormat": "{value}" } - URL path template —
{ "pathTemplate": "/bot{value}" }(must start with/and contain{value}exactly once) - URL path regex —
{ "pathRegex": "^/bot([^/]+)", "pathReplacement": "/bot{value}" }(replacement must contain{value})
Unknown or mixed keys are rejected.
- Header injection
- Query parameter injection
- URL path template injection
- URL path regex injection
Response
Secret created
The narrowed secret representation returned by create endpoints.