Casama AI Plugins API

The plugins API from Casama AI, for plugins.

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 8

GET /v1/plugin-directory Reviewed plugins from the gallery, each pinned to the commit that was reviewed #
POST /v1/plugins/preview What an Agent Plugins 1.0 package from GitHub would add #
POST /v1/plugins Install a plugin for a bot, pinned to the previewed commit #
GET /v1/plugins List plugins #
GET /v1/plugins/{id}/update The latest commit of the plugin's source and what changes #
POST /v1/plugins/{id}/update Update plugin #
DELETE /v1/plugins/{id} Remove the plugin and everything it added #
PATCH /v1/plugins/{id}/settings Change a plugin's plain settings (not its secrets) #

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-plugins-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-plugins-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama Plugins 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: Plugins
paths:
  /v1/plugin-directory:
    get:
      operationId: listPluginDirectory
      tags:
      - Plugins
      security:
      - bearerAuth: []
      summary: Reviewed plugins from the gallery, each pinned to the commit that was reviewed
      responses:
        '200':
          description: Plugins
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginDirectory'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/plugins/preview:
    post:
      operationId: previewPlugin
      tags:
      - Plugins
      security:
      - bearerAuth: []
      summary: What an Agent Plugins 1.0 package from GitHub would add
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreviewPluginRequest'
      responses:
        '200':
          description: Preview
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginPreview'
        '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'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/plugins:
    post:
      operationId: installPlugin
      tags:
      - Plugins
      security:
      - bearerAuth: []
      summary: Install a plugin for a bot, pinned to the previewed commit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstallPluginRequest'
      responses:
        '201':
          description: Installed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Plugin'
        '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'
    get:
      operationId: listPlugins
      tags:
      - Plugins
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: bot_id
        in: query
      responses:
        '200':
          description: Plugins
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginList'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      summary: List plugins
      x-summary-source: derived
  /v1/plugins/{id}/update:
    get:
      operationId: getPluginUpdate
      tags:
      - Plugins
      security:
      - bearerAuth: []
      summary: The latest commit of the plugin's source and what changes
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Update
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginUpdatePreview'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    post:
      operationId: updatePlugin
      tags:
      - Plugins
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePluginRequest'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Plugin'
        '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'
      summary: Update plugin
      x-summary-source: derived
  /v1/plugins/{id}:
    delete:
      operationId: uninstallPlugin
      tags:
      - Plugins
      security:
      - bearerAuth: []
      summary: Remove the plugin and everything it added
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Removed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletedPlugin'
        '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'
  /v1/plugins/{id}/settings:
    patch:
      operationId: updatePluginSettings
      tags:
      - Plugins
      security:
      - bearerAuth: []
      summary: Change a plugin's plain settings (not its secrets)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePluginSettingsRequest'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Plugin'
        '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:
    PluginSecretInfo:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        server:
          type: string
      required:
      - name
      - description
      - server
    UpdatePluginRequest:
      type: object
      properties:
        commit:
          type: string
          pattern: ^[0-9a-f]{40}$
        secrets:
          type: object
          additionalProperties:
            type: string
            maxLength: 10000
        settings:
          type: object
          additionalProperties:
            type: string
            maxLength: 500
      required:
      - commit
    InstalledPluginServer:
      allOf:
      - $ref: '#/components/schemas/PluginServerInfo'
      - type: object
        properties:
          integration_id:
            type: string
            format: uuid
          status:
            type: string
            enum:
            - pending
            - ok
            - error
          error:
            type:
            - string
            - 'null'
          tools:
            type: array
            items:
              type: object
              properties:
                name:
                  type: string
                risk:
                  type: string
                  enum:
                  - low
                  - medium
                  - high
              required:
              - name
              - risk
        required:
        - integration_id
        - status
        - error
        - tools
    PreviewPluginRequest:
      type: object
      properties:
        org_id:
          type: string
          format: uuid
        url:
          type: string
          minLength: 1
          maxLength: 500
        commit:
          type: string
          pattern: ^[0-9a-f]{40}$
      required:
      - org_id
      - url
    PluginServerInfo:
      type: object
      properties:
        key:
          type: string
        type:
          type: string
          enum:
          - stdio
          - streamable-http
          - sse
        command:
          type:
          - string
          - 'null'
        args:
          type: array
          items:
            type: string
        url:
          type:
          - string
          - 'null'
      required:
      - key
      - type
      - command
      - args
      - url
    UpdatePluginSettingsRequest:
      type: object
      properties:
        settings:
          type: object
          additionalProperties:
            type: string
            maxLength: 500
      required:
      - settings
    PluginPreview:
      type: object
      properties:
        name:
          type: string
        version:
          type:
          - string
          - 'null'
        description:
          type: string
        repo:
          type: string
        path:
          type: string
        commit:
          type: string
        skills:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              description:
                type: string
            required:
            - name
            - description
        servers:
          type: array
          items:
            $ref: '#/components/schemas/PluginServerInfo'
        secrets:
          type: array
          items:
            $ref: '#/components/schemas/PluginSecretInfo'
        hosts:
          type: array
          items:
            type: string
        warnings:
          type: array
          items:
            type: string
        settings:
          type: array
          items:
            $ref: '#/components/schemas/PluginSettingInfo'
        pack:
          $ref: '#/components/schemas/PluginPackSummary'
      required:
      - name
      - version
      - description
      - repo
      - path
      - commit
      - skills
      - servers
      - secrets
      - hosts
      - warnings
    GalleryNeeds:
      type: object
      properties:
        apps:
          type: array
          items:
            type: string
        skills:
          type: array
          items:
            type: string
    PluginDirectory:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/DirectoryPlugin'
      required:
      - items
    PluginUpdatePreview:
      type: object
      properties:
        up_to_date:
          type: boolean
        from_commit:
          type: string
        to_commit:
          type: string
        from_version:
          type:
          - string
          - 'null'
        to_version:
          type:
          - string
          - 'null'
        skills_added:
          type: array
          items:
            type: string
        skills_removed:
          type: array
          items:
            type: string
        skills_changed:
          type: array
          items:
            type: string
        servers_added:
          type: array
          items:
            type: string
        servers_removed:
          type: array
          items:
            type: string
        servers_changed:
          type: array
          items:
            type: string
        hosts_added:
          type: array
          items:
            type: string
        secrets_added:
          type: array
          items:
            type: string
        preview:
          $ref: '#/components/schemas/PluginPreview'
      required:
      - up_to_date
      - from_commit
      - to_commit
      - from_version
      - to_version
      - skills_added
      - skills_removed
      - skills_changed
      - servers_added
      - servers_removed
      - servers_changed
      - hosts_added
      - secrets_added
      - preview
    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
    GalleryChange:
      type: object
      properties:
        version:
          type: integer
        date:
          type: string
        note:
          type: string
        breaking:
          type: boolean
      required:
      - version
      - date
      - note
    GalleryRef:
      type: object
      properties:
        type:
          type: string
        id:
          type: string
      required:
      - type
      - id
      description: Another gallery item
    Plugin:
      type: object
      properties:
        id:
          type: string
          format: uuid
        bot_id:
          type: string
          format: uuid
        name:
          type: string
        version:
          type:
          - string
          - 'null'
        description:
          type: string
        repo:
          type: string
        path:
          type: string
        commit:
          type: string
        skills:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              name:
                type: string
            required:
            - id
            - name
        servers:
          type: array
          items:
            $ref: '#/components/schemas/InstalledPluginServer'
        hosts:
          type: array
          items:
            type: string
        secrets:
          type: array
          items:
            $ref: '#/components/schemas/PluginSecretInfo'
        settings:
          type: array
          items:
            allOf:
            - $ref: '#/components/schemas/PluginSettingInfo'
            - type: object
              properties:
                value:
                  type: string
              required:
              - value
            description: A plain setting the plugin asks for (not secret)
          description: Plain settings and their current values
        pack_id:
          type:
          - string
          - 'null'
          format: uuid
          description: Came with this pack
        pack_name:
          type:
          - string
          - 'null'
        runs_on:
          type:
          - object
          - 'null'
          properties:
            device_id:
              type: string
              format: uuid
            device_name:
              type: string
            owner_user_id:
              type: string
              format: uuid
            online:
              type: boolean
          required:
          - device_id
          - device_name
          - owner_user_id
          - online
          description: 'Null: the bot''s computer'
        installed_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
      - id
      - bot_id
      - name
      - version
      - description
      - repo
      - path
      - commit
      - skills
      - servers
      - hosts
      - secrets
      - installed_at
      - updated_at
    PluginList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Plugin'
      required:
      - items
    InstallPluginRequest:
      type: object
      properties:
        org_id:
          type: string
          format: uuid
        bot_id:
          type: string
          format: uuid
        url:
          type: string
          minLength: 1
          maxLength: 500
        commit:
          type: string
          pattern: ^[0-9a-f]{40}$
        secrets:
          type: object
          additionalProperties:
            type: string
            maxLength: 10000
        settings:
          type: object
          additionalProperties:
            type: string
            maxLength: 500
        device_id:
          type: string
          format: uuid
          description: Run the plugin's stdio servers on this paired computer of yours (desktop companion with local tools on) instead of the bot's computer (D-344). Remote servers are unaffected.
      required:
      - org_id
      - bot_id
      - url
      - commit
    GalleryAccess:
      type: object
      properties:
        reads:
          type: array
          items:
            type: string
        writes:
          type: array
          items:
            type: string
        runs_code:
          type: boolean
        computer:
          type: boolean
        credits:
          type: string
          enum:
          - none
          - low
          - medium
          - high
      description: What an item can touch, in plain words
    ContentAuthor:
      type: object
      properties:
        name:
          type: string
        url:
          type: string
        handle:
          type: string
      required:
      - name
    DeletedPlugin:
      type: object
      properties:
        deleted:
          type: string
          format: uuid
      required:
      - deleted
    PluginPackSummary:
      type: object
      properties:
        summary:
          type: string
        bots:
          type: integer
        routines:
          type: integer
        apps:
          type: integer
        looks:
          type: integer
      required:
      - summary
      - bots
      - routines
      - apps
      - looks
      description: 'The plugin is a pack: open the pack preview'
    GalleryStats:
      type: object
      properties:
        installers:
          type: integer
        trending:
          type: integer
          description: New installers this week
        active:
          type: integer
          description: People who used it in 14 days
        success:
          type: number
          description: Share of runs that finished, 0 to 1 (last 30 days)
      description: Aggregate use. Numbers are left out under 10 installers; success under 20 runs (D-315).
    DirectoryPlugin:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        url:
          type: string
          description: The plugin's GitHub folder
        commit:
          type: string
          description: The reviewed commit; installing pins it
        icon:
          type: string
        adds:
          type: array
          items:
            type: string
        author:
          $ref: '#/components/schemas/ContentAuthor'
        added:
          type: string
          description: YYYY-MM-DD the item was added
        updated:
          type: string
        changelog:
          type: array
          items:
            $ref: '#/components/schemas/GalleryChange'
        pick:
          type: string
          description: Why a featured item is a pick
        examples:
          type: array
          items:
            type: string
        access:
          $ref: '#/components/schemas/GalleryAccess'
        needs:
          $ref: '#/components/schemas/GalleryNeeds'
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/GalleryInput'
        remix_of:
          $ref: '#/components/schemas/GalleryRef'
        replaced_by:
          $ref: '#/components/schemas/GalleryRef'
        min_app:
          type: string
        min_server:
          type: string
        season:
          type: object
          properties:
            from:
              type: string
            to:
              type: string
          required:
          - from
          - to
        tested:
          type: object
          properties:
            version:
              type: integer
            date:
              type: string
          required:
          - version
          - date
        source:
          type: string
          description: The extra catalog it came from (GALLERY_SOURCES); ids are source:id
        stats:
          $ref: '#/components/schemas/GalleryStats'
        cover:
          type: string
          description: Absolute URL of the item's painted cover picture (cover.webp), when it has one
        template:
          type: object
          additionalProperties: {}
          description: 'Routines and bots with install questions: the raw fields with {{key}} placeholders (document has the defaults filled)'
        version:
          type: integer
        tags:
          type: array
          items:
            type: string
      required:
      - id
      - name
      - description
      - url
      - commit
      - adds
      - author
    PluginSettingInfo:
      type: object
      properties:
        name:
          type: string
        label:
          type: string
        description:
          type: string
        server:
          type: string
        default:
          type:
          - string
          - 'null'
      required:
      - name
      - label
      - description
      - server
      - default
      description: A plain setting the plugin asks for (not secret)
    GalleryInput:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        type:
          type: string
          enum:
          - text
          - choice
          - time
          - timezone
        default:
          type: string
        options:
          type: array
          items:
            type: string
        help:
          type: string
      required:
      - key
      - label
      - type
      description: A question asked when a routine or bot is added
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token