Skip to main content
GET
/
secrets
List secrets
curl --request GET \
  --url https://api.onecli.sh/v1/secrets \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "name": "<string>",
    "hostPattern": "<string>",
    "pathPattern": "<string>",
    "injectionConfig": {},
    "isPlatform": true,
    "scope": "<string>",
    "typeLabel": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
]

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

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Response

200 - application/json

List of secrets

id
string
name
string
type
enum<string>
Available options:
anthropic,
openai,
generic
hostPattern
string
pathPattern
string | null
injectionConfig
object

Configuration for how the gateway injects this secret into outbound requests.

isPlatform
boolean
scope
string
typeLabel
string
createdAt
string<date-time>