Casama AI Import API

The import API from Casama AI, for import.

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 7

POST /v1/agent-imports Read an OpenClaw or Hermes Agent folder into a bot template for review #
POST /v1/agent-imports/{id}/files Copy the files nothing mapped to into ~/imported/ on the bot's computer #
GET /v1/memory-import/prompt The prompt to paste into ChatGPT or Claude to get your saved memories #
POST /v1/memory-import/parse Parse memory import #
GET /v1/bot-imports/paste/prompt The prompt to send a Grok Bot, Muse, Dots, Duet, Hark or Instinct so it… #
POST /v1/bot-imports/paste Read a pasted bot setup into a bot template for review #
POST /v1/bots/{id}/memories/import Add the memories the person kept #

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-import-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-import-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama Import 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: Import
paths:
  /v1/agent-imports:
    post:
      operationId: startAgentImport
      tags:
      - Import
      security:
      - bearerAuth: []
      summary: Read an OpenClaw or Hermes Agent folder into a bot template for review
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartAgentImportRequest'
      responses:
        '201':
          description: The mapping
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentImportPlan'
        '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'
  /v1/agent-imports/{id}/files:
    post:
      operationId: writeAgentImportFiles
      tags:
      - Import
      security:
      - bearerAuth: []
      summary: Copy the files nothing mapped to into ~/imported/ on the bot's computer
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WriteAgentImportFilesRequest'
      responses:
        '200':
          description: Written
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WriteAgentImportFilesResponse'
        '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/memory-import/prompt:
    get:
      operationId: getMemoryImportPrompt
      tags:
      - Import
      security:
      - bearerAuth: []
      summary: The prompt to paste into ChatGPT or Claude to get your saved memories
      responses:
        '200':
          description: Prompt
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryImportPrompt'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/memory-import/parse:
    post:
      operationId: parseMemoryImport
      tags:
      - Import
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ParseMemoryImportRequest'
      responses:
        '200':
          description: Memories
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParsedMemoryImport'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      summary: Parse memory import
      x-summary-source: derived
  /v1/bot-imports/paste/prompt:
    get:
      operationId: getPasteImportPrompt
      tags:
      - Import
      security:
      - bearerAuth: []
      summary: The prompt to send a Grok Bot, Muse, Dots, Duet, Hark or Instinct so it…
      parameters:
      - schema:
          $ref: '#/components/schemas/PasteImportSource'
        required: true
        name: source
        in: query
      responses:
        '200':
          description: Prompt
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PasteImportPrompt'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/bot-imports/paste:
    post:
      operationId: pasteBotImport
      tags:
      - Import
      security:
      - bearerAuth: []
      summary: Read a pasted bot setup into a bot template for review
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasteBotImportRequest'
      responses:
        '200':
          description: The mapping
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentImportPlan'
        '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/bots/{id}/memories/import:
    post:
      operationId: saveImportedMemories
      tags:
      - Import
      security:
      - bearerAuth: []
      summary: Add the memories the person kept
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveImportedMemoriesRequest'
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SavedImportedMemories'
        '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:
    SavedImportedMemories:
      type: object
      properties:
        saved:
          type: integer
      required:
      - saved
    ParseMemoryImportRequest:
      type: object
      properties:
        text:
          type: string
          minLength: 1
          maxLength: 200000
      required:
      - text
    StartAgentImportRequest:
      type: object
      properties:
        org_id:
          type: string
          format: uuid
        zip_base64:
          type: string
          maxLength: 70000000
        files:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                minLength: 1
                maxLength: 1000
              content_base64:
                type: string
                maxLength: 14000000
            required:
            - path
            - content_base64
          maxItems: 3000
      required:
      - org_id
    ImportedMemoryItem:
      type: object
      properties:
        kind:
          type: string
          enum:
          - fact
          - preference
        content:
          type: string
          minLength: 1
          maxLength: 8000
      required:
      - kind
      - content
    PasteImportSource:
      type: string
      enum:
      - grok_bot
      - muse
      - dots
      - duet
      - hark
      - instinct
      - other
    PasteBotImportRequest:
      type: object
      properties:
        org_id:
          type: string
          format: uuid
        source:
          $ref: '#/components/schemas/PasteImportSource'
        text:
          type: string
          minLength: 1
          maxLength: 100000
      required:
      - org_id
      - source
      - text
    WriteAgentImportFilesRequest:
      type: object
      properties:
        bot_id:
          type: string
          format: uuid
      required:
      - bot_id
    AgentImportPlan:
      type: object
      properties:
        id:
          type: string
          format: uuid
        kind:
          type: string
          enum:
          - openclaw
          - hermes
          - grok_bot
          - muse
          - dots
          - duet
          - hark
          - instinct
          - other
        template:
          $ref: '#/components/schemas/BotTemplateFile'
        sources:
          type: object
          properties:
            skills:
              type: array
              items:
                type: string
            routines:
              type: array
              items:
                type: string
            memories:
              type: array
              items:
                type: string
          required:
          - skills
          - routines
          - memories
        leftovers:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              size:
                type: integer
            required:
            - path
            - size
        skipped:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              reason:
                type: string
            required:
            - path
            - reason
        notes:
          type: array
          items:
            type: string
      required:
      - id
      - kind
      - template
      - sources
      - leftovers
      - skipped
      - notes
    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
    SaveImportedMemoriesRequest:
      type: object
      properties:
        memories:
          type: array
          items:
            $ref: '#/components/schemas/ImportedMemoryItem'
          minItems: 1
          maxItems: 500
      required:
      - memories
    PasteImportPrompt:
      type: object
      properties:
        prompt:
          type: string
        version:
          type: integer
      required:
      - prompt
      - version
    WriteAgentImportFilesResponse:
      type: object
      properties:
        written:
          type: integer
        folder:
          type: string
      required:
      - written
      - folder
    BotTemplateFile:
      type: object
      properties:
        format:
          type: string
          enum:
          - casama.bot
        version:
          type: integer
          minimum: 1
          maximum: 1
          description: Format version (1)
        name:
          type: string
          minLength: 1
          maxLength: 80
        description:
          type: string
          maxLength: 300
        persona_md:
          type: string
          maxLength: 20000
        autonomy:
          type: string
          enum:
          - ask_always
          - ask_risky
          - autonomous
        avatar:
          type:
          - string
          - 'null'
          maxLength: 200
        skills:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                pattern: ^[a-z0-9][a-z0-9_-]{0,62}$
              description:
                type: string
                minLength: 1
                maxLength: 300
              body_md:
                type: string
                maxLength: 50000
              files:
                type: array
                items:
                  type: object
                  properties:
                    path:
                      type: string
                      maxLength: 300
                    content_base64:
                      type: string
                      maxLength: 1500000
                    executable:
                      type: boolean
                  required:
                  - path
                  - content_base64
                maxItems: 60
            required:
            - name
            - description
            - body_md
          maxItems: 30
        routines:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                minLength: 1
                maxLength: 120
              instructions_md:
                type: string
                minLength: 1
                maxLength: 20000
              schedule_cron:
                type: string
                maxLength: 100
            required:
            - name
            - instructions_md
            - schedule_cron
          maxItems: 20
        connections:
          type: array
          items:
            type: object
            properties:
              kind:
                type: string
                maxLength: 40
              name:
                type: string
                maxLength: 120
            required:
            - kind
            - name
          maxItems: 30
          description: Services to connect after importing (names only, no credentials)
        memories:
          type: array
          items:
            type: object
            properties:
              kind:
                type: string
                enum:
                - fact
                - episode
                - summary
                - preference
              content:
                type: string
                minLength: 1
                maxLength: 8000
            required:
            - kind
            - content
          maxItems: 200
      required:
      - format
      - version
      - name
      - persona_md
      - autonomy
    ParsedMemoryImport:
      type: object
      properties:
        memories:
          type: array
          items:
            $ref: '#/components/schemas/ImportedMemoryItem'
      required:
      - memories
    MemoryImportPrompt:
      type: object
      properties:
        prompt:
          type: string
      required:
      - prompt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token