Trajectory Secrets API
The secrets API from Trajectory — 2 operation(s) for secrets.
The secrets API from Trajectory — 2 operation(s) for secrets.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/trajectory:trajectory-secrets-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Trajectory Secrets API
version: 0.1.0
x-trajectory-api-version: '2026-10-14'
description: This contract is API version 2026-10-14. The optional Trajectory-API-Version header pins it, and tmp-contract is accepted as an alias. Requests without the header get this version. Version 2026-10-07 and the pre-launch legacy response formats are retired.
tags:
- name: Secrets
paths:
/api/v1/secrets:
get:
tags:
- Secrets
summary: List User Secrets
operationId: listUserSecrets
parameters:
- name: cursor
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Cursor
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 25
title: Limit
- name: sort
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Sort
- name: order
in: query
required: false
schema:
enum:
- asc
- desc
type: string
default: desc
title: Order
- name: search
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Search
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SecretListResponse'
x-trajectory-visibility: public
post:
tags:
- Secrets
summary: Create Secret
operationId: createSecret
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSecretRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSecretResponse'
x-trajectory-visibility: public
/api/v1/secrets/{secret_id}:
delete:
tags:
- Secrets
summary: Revoke Secret
operationId: revokeSecret
parameters:
- name: secret_id
in: path
required: true
schema:
type: string
title: Secret Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RevokeSecretResponse'
x-trajectory-visibility: public
components:
schemas:
SecretListResponse:
properties:
items:
items:
$ref: '#/components/schemas/Secret'
type: array
title: Items
description: Page of the organization's live secrets.
next_cursor:
anyOf:
- type: string
- type: 'null'
title: Next Cursor
description: Cursor for the next page, or null if none.
has_more:
type: boolean
title: Has More
description: True if more secrets remain beyond this page.
type: object
required:
- items
- has_more
title: SecretListResponse
Secret:
properties:
secret_id:
type: string
title: Secret Id
description: Opaque identifier used to reference the secret.
name:
type: string
title: Name
description: Name the secret is referenced by (e.g. in ${secret:NAME}).
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Optional human-readable description.
byte_length:
type: integer
title: Byte Length
description: Length of the secret value in UTF-8 bytes.
created_at:
anyOf:
- type: string
- type: string
format: date-time
- type: 'null'
title: Created At
description: UTC timestamp the secret was created.
updated_at:
anyOf:
- type: string
- type: string
format: date-time
- type: 'null'
title: Updated At
description: UTC timestamp the secret was last updated.
type: object
required:
- secret_id
- name
- byte_length
title: Secret
CreateSecretResponse:
properties:
secret:
$ref: '#/components/schemas/Secret'
description: Metadata for the newly created secret.
type: object
required:
- secret
title: CreateSecretResponse
CreateSecretRequest:
properties:
name:
type: string
title: Name
description: Name to reference the secret by; unique among live secrets.
value:
type: string
title: Value
description: The secret value. Write-only — never returned after creation.
description:
anyOf:
- type: string
maxLength: 1024
- type: 'null'
title: Description
description: Optional human-readable description.
type: object
required:
- name
- value
title: CreateSecretRequest
RevokeSecretResponse:
properties:
secret_id:
type: string
title: Secret Id
description: Identifier of the secret that was revoked.
type: object
required:
- secret_id
title: RevokeSecretResponse
securitySchemes:
TrajectoryAccessToken:
type: http
description: Short-lived token scoped to one rollout trajectory
scheme: bearer
InferenceAuthorization:
type: http
scheme: bearer