Casama AI Memory API

The memory API from Casama AI, for memory.

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 6

PATCH /v1/bots/{id}/memories/{memoryId} Update memory #
DELETE /v1/bots/{id}/memories/{memoryId} Delete memory #
GET /v1/orgs/{id}/memory-backend Get memory backend #
PUT /v1/orgs/{id}/memory-backend Keep bot memory in Honcho or Supermemory with the workspace's own key (admins) #
DELETE /v1/orgs/{id}/memory-backend Go back to the built-in memory (memories in the provider stay there) #
GET /v1/bots/{id}/memories List memories #

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-memory-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-memory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama Memory 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: Memory
paths:
  /v1/bots/{id}/memories/{memoryId}:
    patch:
      operationId: updateMemory
      tags:
      - Memory
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      - schema:
          type: string
          minLength: 1
          maxLength: 200
        required: true
        name: memoryId
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMemoryRequest'
      responses:
        '200':
          description: Memory
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Memory'
        '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'
      summary: Update memory
      x-summary-source: derived
    delete:
      operationId: deleteMemory
      tags:
      - Memory
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      - schema:
          type: string
          minLength: 1
          maxLength: 200
        required: true
        name: memoryId
        in: path
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletedMemory'
        '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'
      summary: Delete memory
      x-summary-source: derived
  /v1/orgs/{id}/memory-backend:
    get:
      operationId: getMemoryBackend
      tags:
      - Memory
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Backend
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryBackend'
        '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'
      summary: Get memory backend
      x-summary-source: derived
    put:
      operationId: setMemoryBackend
      tags:
      - Memory
      security:
      - bearerAuth: []
      summary: Keep bot memory in Honcho or Supermemory with the workspace's own key (admins)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetMemoryBackendRequest'
      responses:
        '200':
          description: Backend
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryBackend'
        '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: deleteMemoryBackend
      tags:
      - Memory
      security:
      - bearerAuth: []
      summary: Go back to the built-in memory (memories in the provider stay there)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Backend
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryBackend'
        '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/bots/{id}/memories:
    get:
      operationId: listMemories
      tags:
      - Memory
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      - schema:
          type: string
          maxLength: 500
        required: false
        name: q
        in: query
      responses:
        '200':
          description: Memories, pinned first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryList'
        '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'
      summary: List memories
      x-summary-source: derived
components:
  schemas:
    MemoryList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Memory'
      required:
      - items
    Memory:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
          - fact
          - episode
          - summary
          - preference
        content:
          type: string
        importance:
          type: number
        pinned:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
      - id
      - kind
      - content
      - importance
      - pinned
      - created_at
      - updated_at
    UpdateMemoryRequest:
      type: object
      properties:
        content:
          type: string
          minLength: 1
          maxLength: 8000
        pinned:
          type: boolean
    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
    MemoryBackend:
      type: object
      properties:
        provider:
          type: string
          enum:
          - postgres
          - honcho
          - supermemory
        base_url:
          type:
          - string
          - 'null'
        workspace:
          type:
          - string
          - 'null'
        updated_at:
          type:
          - string
          - 'null'
          format: date-time
      required:
      - provider
      - base_url
      - workspace
      - updated_at
    DeletedMemory:
      type: object
      properties:
        deleted:
          type: string
      required:
      - deleted
    SetMemoryBackendRequest:
      type: object
      properties:
        provider:
          type: string
          enum:
          - honcho
          - supermemory
        api_key:
          type: string
          minLength: 8
          maxLength: 500
        base_url:
          type: string
          format: uri
        workspace:
          type: string
          minLength: 1
          maxLength: 100
        copy_existing:
          type: boolean
      required:
      - provider
      - api_key
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token