Casama AI Secrets API

The secrets API from Casama AI, for secrets.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 11

GET /v1/secrets/requests Bots waiting for a secret (pending requests you can see) #
POST /v1/secrets/requests/{id}/fulfill Save the value a bot asked for (into Vault, for that bot and those hosts only) #
POST /v1/secrets/requests/{id}/login Answer a sign-in card with a login: saved to Vault for that bot and site only… #
POST /v1/secrets/requests/{id}/on-page Answer a sign-in card by signing in on the page yourself, in the browser inside… #
POST /v1/secrets/requests/{id}/decline Decline a bot's request for a secret; the bot continues without it #
GET /v1/secrets List secrets #
POST /v1/secrets Create a named secret with allowed hosts (value stored in Vault) #
DELETE /v1/secrets/{id} Delete secret #
GET /v1/orgs/{id}/secret-store Get secret store #
PUT /v1/orgs/{id}/secret-store Keep bots' named secrets in the workspace's Infisical project (admins) #
DELETE /v1/orgs/{id}/secret-store Go back to Vault (secrets kept in Infisical are copied back first) #

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/casama-ai:casama-ai-secrets-api"
All apis
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.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

casama-ai-secrets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama Secrets API
  version: 0.1.0
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://api.casama.ai
tags:
- name: Secrets
paths:
  /v1/secrets/requests:
    get:
      operationId: listSecretRequests
      tags:
      - Secrets
      security:
      - bearerAuth: []
      summary: Bots waiting for a secret (pending requests you can see)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: org_id
        in: query
      responses:
        '200':
          description: Secret requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BotSecretRequestList'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/secrets/requests/{id}/fulfill:
    post:
      operationId: fulfillSecretRequest
      tags:
      - Secrets
      security:
      - bearerAuth: []
      summary: Save the value a bot asked for (into Vault, for that bot and those hosts only)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FulfillSecretRequestBody'
      responses:
        '200':
          description: Fulfilled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BotSecretRequest'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/secrets/requests/{id}/login:
    post:
      operationId: shareSecretRequestLogin
      tags:
      - Secrets
      security:
      - bearerAuth: []
      summary: 'Answer a sign-in card with a login: saved to Vault for that bot and site only…'
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShareTakeoverLoginBody'
      responses:
        '200':
          description: Login saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BotSecretRequest'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/secrets/requests/{id}/on-page:
    post:
      operationId: signInOnPage
      tags:
      - Secrets
      security:
      - bearerAuth: []
      summary: Answer a sign-in card by signing in on the page yourself, in the browser inside…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Signing in on the page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BotSecretRequest'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/secrets/requests/{id}/decline:
    post:
      operationId: declineSecretRequest
      tags:
      - Secrets
      security:
      - bearerAuth: []
      summary: Decline a bot's request for a secret; the bot continues without it
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Declined
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BotSecretRequest'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/secrets:
    get:
      operationId: listSecrets
      tags:
      - Secrets
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: org_id
        in: query
      responses:
        '200':
          description: Secret metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecretList'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      summary: List secrets
      x-summary-source: derived
    post:
      operationId: createSecret
      tags:
      - Secrets
      security:
      - bearerAuth: []
      summary: Create a named secret with allowed hosts (value stored in Vault)
      parameters:
      - schema:
          type: string
          maxLength: 255
          description: Retries with the same key return the first result
        required: false
        description: Retries with the same key return the first result
        name: idempotency-key
        in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSecretRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Secret'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/secrets/{id}:
    delete:
      operationId: deleteSecret
      tags:
      - Secrets
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletedId'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      summary: Delete secret
      x-summary-source: derived
  /v1/orgs/{id}/secret-store:
    get:
      operationId: getSecretStore
      tags:
      - Secrets
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecretStoreSettings'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      summary: Get secret store
      x-summary-source: derived
    put:
      operationId: setSecretStore
      tags:
      - Secrets
      security:
      - bearerAuth: []
      summary: Keep bots' named secrets in the workspace's Infisical project (admins)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetSecretStoreRequest'
      responses:
        '200':
          description: Store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecretStoreSettings'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    delete:
      operationId: deleteSecretStore
      tags:
      - Secrets
      security:
      - bearerAuth: []
      summary: Go back to Vault (secrets kept in Infisical are copied back first)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecretStoreSettings'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  schemas:
    BotSecretRequest:
      type: object
      properties:
        id:
          type: string
          format: uuid
        org_id:
          type: string
          format: uuid
        bot_id:
          type: string
          format: uuid
        run_id:
          type: string
          format: uuid
        conversation_id:
          type:
          - string
          - 'null'
          format: uuid
        name:
          type: string
        service:
          type: string
        allowed_hosts:
          type: array
          items:
            type: string
        reason:
          type: string
        kind:
          $ref: '#/components/schemas/SecretKind'
        status:
          type: string
          enum:
          - pending
          - fulfilled
          - declined
          - expired
          - on_page
        login_host:
          type:
          - string
          - 'null'
          description: 'Set on a sign-in card (D-511): the site whose login is asked for; answer with the login or on-page routes'
        expires_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
      required:
      - id
      - org_id
      - bot_id
      - run_id
      - conversation_id
      - name
      - service
      - allowed_hosts
      - reason
      - kind
      - status
      - expires_at
      - created_at
      description: A bot asking for a secret; never holds a value
    DeletedId:
      type: object
      properties:
        deleted:
          type: string
          format: uuid
      required:
      - deleted
    SecretStoreSettings:
      type: object
      properties:
        provider:
          type: string
          enum:
          - vault
          - infisical
        site_url:
          type:
          - string
          - 'null'
        project_id:
          type:
          - string
          - 'null'
        environment:
          type:
          - string
          - 'null'
        secret_path:
          type:
          - string
          - 'null'
      required:
      - provider
      - site_url
      - project_id
      - environment
      - secret_path
    FulfillSecretRequestBody:
      type: object
      properties:
        value:
          type: string
          minLength: 1
          maxLength: 10000
          description: Stored in Vault; never returned, logged or shown to the bot
      required:
      - value
    Secret:
      type: object
      properties:
        id:
          type: string
          format: uuid
        org_id:
          type: string
          format: uuid
        name:
          type: string
        allowed_hosts:
          type: array
          items:
            type: string
        allowed_bot_ids:
          type:
          - array
          - 'null'
          items:
            type: string
            format: uuid
        kind:
          $ref: '#/components/schemas/SecretKind'
        created_at:
          type: string
          format: date-time
      required:
      - id
      - org_id
      - name
      - allowed_hosts
      - allowed_bot_ids
      - kind
      - created_at
    SecretList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Secret'
      required:
      - items
    SecretKind:
      type: string
      enum:
      - value
      - totp
      description: 'value: the secret itself; totp: a two-step seed bots use as {{totp:NAME}}'
    CreateSecretRequest:
      type: object
      properties:
        org_id:
          type: string
          format: uuid
        name:
          type: string
          pattern: ^[A-Z][A-Z0-9_]{0,63}$
          description: Referenced as {{secret:NAME}}
        value:
          type: string
          minLength: 1
          maxLength: 10000
          description: Stored in Vault; never returned
        allowed_hosts:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 253
          minItems: 1
          maxItems: 50
        allowed_bot_ids:
          type: array
          items:
            type: string
            format: uuid
        kind:
          allOf:
          - $ref: '#/components/schemas/SecretKind'
          - description: 'totp: value is an otpauth://totp link or a base32 key'
      required:
      - org_id
      - name
      - value
      - allowed_hosts
    Problem:
      type: object
      properties:
        type:
          type: string
          example: https://casama.ai/problems/not_found
        title:
          type: string
        status:
          type: integer
        code:
          type: string
          description: Stable error code
          example: not_found
        detail:
          type: string
        instance:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
            required:
            - path
            - message
          description: Field errors for validation_failed
      required:
      - type
      - title
      - status
      - code
    ShareTakeoverLoginBody:
      type: object
      properties:
        username:
          type: string
          minLength: 1
          maxLength: 500
          description: Email or username. Stored in Vault; never returned or shown to the bot
        password:
          type: string
          minLength: 1
          maxLength: 1000
          description: Stored in Vault; never returned, logged or shown to the bot
        remember:
          type: boolean
          default: true
          description: Keep it for this bot's later runs; false deletes it when this run ends
      required:
      - username
      - password
    BotSecretRequestList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/BotSecretRequest'
      required:
      - items
    SetSecretStoreRequest:
      type: object
      properties:
        site_url:
          type: string
          format: uri
        project_id:
          type: string
          minLength: 1
          maxLength: 100
        environment:
          type: string
          minLength: 1
          maxLength: 64
        secret_path:
          type: string
          maxLength: 300
          pattern: ^\/
        client_id:
          type: string
          minLength: 1
          maxLength: 200
        client_secret:
          type: string
          minLength: 1
          maxLength: 500
        move_existing:
          type: boolean
      required:
      - site_url
      - project_id
      - client_id
      - client_secret
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token