Create a secret
Secrets
Create a secret
Creates a new secret. The gateway uses secrets to inject credentials into outbound requests matching the host and path patterns.
- anthropic and openai types are auto-configured.
- generic type requires an
injectionConfig.
POST
Create a secret
Documentation Index
Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key obtained from the dashboard or GET /user/api-key
Body
application/json
Required string length:
1 - 255Example:
"Anthropic Production"
Available options:
anthropic, openai, generic The secret value (API key, token, etc.)
Required string length:
1 - 10000Hostname pattern to match (no ://, /, or spaces)
Example:
"api.anthropic.com"
Optional path pattern to match
Maximum string length:
1000Configuration for how the gateway injects this secret into outbound requests.
Response
Secret created