Trajectory Secrets API

The secrets API from Trajectory — 2 operation(s) for secrets.

Operations 3

GET /api/v1/secrets List User Secrets #
POST /api/v1/secrets Create Secret #
DELETE /api/v1/secrets/{secret_id} Revoke Secret #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/trajectory:trajectory-secrets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API 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 Specification

trajectory-secrets-api-openapi.yml Raw ↑
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