Casama AI Moves API

The moves API from Casama AI, for moves.

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 9

POST /v1/moves Get a one-time move token for receiving a workspace into this one (admin) #
GET /v1/moves/{id}/fit Whether a workspace of this size fits the receiving workspace's plan (move… #
PUT /v1/moves/{id}/parts/{n} One part of the move bundle, with its sha256 in X-Move-Sha256 (move token) #
POST /v1/moves/{id}/finish Check the bundle and bring it in; progress at GET /v1/moves/{id} (move token) #
POST /v1/moves/{id}/abort Give up a move: the parts and anything half brought in are removed (move token) #
GET /v1/moves/{id} A move's progress (move token, or an admin of the receiving workspace) #
POST /v1/orgs/{id}/move/check Check a move before it starts: size, time, what fits, what needs you after… #
POST /v1/orgs/{id}/move/start Start (or resume) moving this workspace to the server that gave the token… #
GET /v1/orgs/{id}/move The workspace's latest move: progress, step and error, or where it moved… #

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-moves-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-moves-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama Moves 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: moves
paths:
  /v1/moves:
    post:
      operationId: createMove
      tags:
      - moves
      security:
      - bearerAuth: []
      summary: Get a one-time move token for receiving a workspace into this one (admin)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMoveRequest'
      responses:
        '201':
          description: The token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveToken'
        '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'
  /v1/moves/{id}/fit:
    get:
      operationId: getMoveFit
      tags:
      - moves
      summary: Whether a workspace of this size fits the receiving workspace's plan (move…
      description: 'Errors: 409 already_moved when that source workspace moved here before.'
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      - schema:
          type: string
          format: uuid
        required: true
        name: source_org_id
        in: query
      - schema:
          type:
          - integer
          - 'null'
          minimum: 0
          maximum: 1000000
          default: 0
        required: false
        name: members
        in: query
      - schema:
          type:
          - integer
          - 'null'
          minimum: 0
          maximum: 1000000
          default: 0
        required: false
        name: bots
        in: query
      - schema:
          type:
          - integer
          - 'null'
          minimum: 0
          maximum: 1000000
          default: 0
        required: false
        name: computers
        in: query
      - schema:
          type:
          - integer
          - 'null'
          minimum: 0
          default: 0
        required: false
        name: storage_bytes
        in: query
      - schema:
          type: integer
          minimum: 1
          maximum: 1000
          default: 1
        required: false
        name: bundle_version
        in: query
      - schema:
          type: string
          maxLength: 64
        required: false
        name: engine_version
        in: query
      responses:
        '200':
          description: Fit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveFit'
        '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'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/moves/{id}/parts/{n}:
    put:
      operationId: putMovePart
      tags:
      - moves
      summary: One part of the move bundle, with its sha256 in X-Move-Sha256 (move token)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      - schema:
          type: string
          pattern: ^\d{1,8}$
          description: Part number, from 0
        required: true
        description: Part number, from 0
        name: n
        in: path
      requestBody:
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Received
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MovePartReceived'
        '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'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/moves/{id}/finish:
    post:
      operationId: finishMove
      tags:
      - moves
      summary: Check the bundle and bring it in; progress at GET /v1/moves/{id} (move token)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MoveFinishRequest'
      responses:
        '202':
          description: Bringing it in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveProgress'
        '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'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/moves/{id}/abort:
    post:
      operationId: abortMove
      tags:
      - moves
      summary: 'Give up a move: the parts and anything half brought in are removed (move token)'
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Removed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveProgress'
        '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/moves/{id}:
    get:
      operationId: getMove
      tags:
      - moves
      security:
      - bearerAuth: []
      summary: A move's progress (move token, or an admin of the receiving workspace)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Progress
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveProgress'
        '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/orgs/{id}/move/check:
    post:
      operationId: checkOrgMove
      tags:
      - moves
      security:
      - bearerAuth: []
      summary: 'Check a move before it starts: size, time, what fits, what needs you after…'
      description: 'Changes nothing. Errors: 409 already_moved.'
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MoveCheckRequest'
      responses:
        '200':
          description: The check
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveCheck'
        '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/orgs/{id}/move/start:
    post:
      operationId: startOrgMove
      tags:
      - moves
      security:
      - bearerAuth: []
      summary: Start (or resume) moving this workspace to the server that gave the token…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MoveStartRequest'
      responses:
        '202':
          description: Started
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveProgress'
        '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/orgs/{id}/move:
    get:
      operationId: getOrgMove
      tags:
      - moves
      security:
      - bearerAuth: []
      summary: 'The workspace''s latest move: progress, step and error, or where it moved…'
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Progress
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoveProgress'
        '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'
components:
  schemas:
    MoveFit:
      type: object
      properties:
        fits:
          type: boolean
        plan:
          type:
          - object
          - 'null'
          properties:
            code:
              type: string
            name:
              type: string
          required:
          - code
          - name
        over:
          type: array
          items:
            $ref: '#/components/schemas/MoveOver'
        needs_plan:
          type:
          - object
          - 'null'
          properties:
            code:
              type: string
            name:
              type: string
          required:
          - code
          - name
        accepts:
          type: array
          items:
            type: integer
        engine_version:
          type: string
        move_key:
          type: string
        target:
          type: object
          properties:
            org_id:
              type: string
              format: uuid
            name:
              type: string
            empty:
              type: boolean
          required:
          - org_id
          - name
          - empty
      required:
      - fits
      - plan
      - over
      - needs_plan
      - accepts
      - engine_version
      - move_key
      - target
    MoveToken:
      type: object
      properties:
        move_id:
          type: string
          format: uuid
        token:
          type: string
        expires_at:
          type: string
          format: date-time
      required:
      - move_id
      - token
      - expires_at
    MoveFinishRequest:
      type: object
      properties:
        manifest:
          type: object
          additionalProperties: {}
        signature:
          type: string
      required:
      - manifest
      - signature
    MoveOver:
      type: object
      properties:
        what:
          type: string
          enum:
          - people
          - bots
          - computers
          - storage
        have:
          type: number
        limit:
          type: number
      required:
      - what
      - have
      - limit
    MovedTo:
      type: object
      properties:
        url:
          type: string
        at:
          type: string
          format: date-time
        move_id:
          type: string
          format: uuid
        target:
          type: string
          enum:
          - cloud
          - server
        message:
          type: string
      required:
      - url
      - at
      - move_id
      - target
      - message
    MovePartReceived:
      type: object
      properties:
        n:
          type: integer
        size:
          type: integer
        sha256:
          type: string
      required:
      - n
      - size
      - sha256
    MoveCheck:
      type: object
      properties:
        size_bytes:
          type: number
        estimate_seconds:
          type: number
        pause_seconds:
          type: number
        long_pause:
          type: boolean
        counts:
          type: object
          additionalProperties:
            type: number
        fit:
          $ref: '#/components/schemas/MoveFit'
        update_first:
          type:
          - string
          - 'null'
          enum:
          - source
          - target
          - null
        comes:
          type: array
          items:
            type: string
        after:
          type: object
          properties:
            reconnect:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  kind:
                    type: string
                required:
                - id
                - name
                - kind
            invites:
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                  email:
                    type: string
                required:
                - name
                - email
            keys:
              type: object
              properties:
                models:
                  type: number
                chat_apps:
                  type: number
                secrets:
                  type: number
              required:
              - models
              - chat_apps
              - secrets
            computers:
              type: number
            chatgpt_plans:
              type: number
          required:
          - reconnect
          - invites
          - keys
          - computers
          - chatgpt_plans
        target:
          type: string
          enum:
          - cloud
          - server
        already_moved:
          allOf:
          - $ref: '#/components/schemas/MovedTo'
          - type:
            - object
            - 'null'
      required:
      - size_bytes
      - estimate_seconds
      - pause_seconds
      - long_pause
      - counts
      - fit
      - update_first
      - comes
      - after
      - target
      - already_moved
    MoveState:
      type: string
      enum:
      - created
      - copying
      - pausing
      - finishing
      - importing
      - done
      - failed
      - cancelled
    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
    MoveCheckRequest:
      type: object
      properties:
        target_url:
          type: string
          maxLength: 500
          format: uri
        token:
          type: string
          minLength: 20
          maxLength: 500
      required:
      - target_url
      - token
    MoveProgress:
      type: object
      properties:
        move_id:
          type: string
          format: uuid
        role:
          type: string
          enum:
          - source
          - target
        state:
          $ref: '#/components/schemas/MoveState'
        step:
          type:
          - string
          - 'null'
        org_id:
          type:
          - string
          - 'null'
          format: uuid
        remote_url:
          type:
          - string
          - 'null'
        bring_keys:
          type: boolean
        counts:
          type: object
          additionalProperties: {}
        progress:
          type: object
          properties:
            done_bytes:
              type: number
            total_bytes:
              type: number
          required:
          - done_bytes
          - total_bytes
        parts:
          type: array
          items:
            type: integer
        report:
          type: object
          additionalProperties: {}
        error:
          $ref: '#/components/schemas/MoveError'
        moved_to:
          allOf:
          - $ref: '#/components/schemas/MovedTo'
          - type:
            - object
            - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        finished_at:
          type:
          - string
          - 'null'
          format: date-time
      required:
      - move_id
      - role
      - state
      - step
      - org_id
      - remote_url
      - bring_keys
      - counts
      - progress
      - report
      - error
      - created_at
      - updated_at
      - finished_at
    MoveStartRequest:
      type: object
      properties:
        target_url:
          type: string
          maxLength: 500
          format: uri
        token:
          type: string
          minLength: 20
          maxLength: 500
        bring_keys:
          type: boolean
          default: true
      required:
      - target_url
      - token
    MoveError:
      type:
      - object
      - 'null'
      properties:
        code:
          type: string
        message:
          type: string
        step:
          type:
          - string
          - 'null'
      required:
      - code
      - message
    CreateMoveRequest:
      type: object
      properties:
        org_id:
          type: string
          format: uuid
      required:
      - org_id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token