Casama AI Creations API

The creations API from Casama AI, for creations.

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

GET /v1/creations The Library: things bots made that you can open, newest first (D-274) #
GET /v1/creations/{id} Get creation #
PATCH /v1/creations/{id} Rename, relabel, pin or mark opened #
DELETE /v1/creations/{id} Hides it now; the bytes go after 30 days unless it's restored #
POST /v1/creations/{id}/restore Restore creation #
GET /v1/creations/{id}/content The bytes (pictures, videos, sound; one byte range honoured). #
GET /v1/creations/{id}/cover The picture for its card, when it has one (has_cover). #
GET /v1/creations/{id}/preview A PDF of a document, made when it was kept, so it opens without its computer… #
POST /v1/creations/{id}/duplicate A private copy to change while the original stays as it is (D-291) #

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-creations-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-creations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama Creations 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: creations
paths:
  /v1/creations:
    get:
      operationId: listCreations
      tags:
      - creations
      security:
      - bearerAuth: []
      summary: 'The Library: things bots made that you can open, newest first (D-274)'
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: org_id
        in: query
      - schema:
          $ref: '#/components/schemas/CreationKind'
        required: false
        name: kind
        in: query
      - schema:
          type: string
          format: uuid
        required: false
        name: bot_id
        in: query
      - schema:
          type: string
          format: uuid
        required: false
        name: conversation_id
        in: query
      - schema:
          type: string
          format: uuid
        required: false
        name: project_id
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
        required: false
        name: pinned
        in: query
      - schema:
          type: string
          enum:
          - new
          - opened
          - name
          description: new (default), recently opened, or name (A to Z)
        required: false
        description: new (default), recently opened, or name (A to Z)
        name: sort
        in: query
      - schema:
          type: string
          enum:
          - mine
          - workspace
          description: 'mine: only what was made for the person asking; workspace (default): everything they can see'
        required: false
        description: 'mine: only what was made for the person asking; workspace (default): everything they can see'
        name: scope
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
          description: true lists what was deleted in the last 30 days (for Undo)
        required: false
        description: true lists what was deleted in the last 30 days (for Undo)
        name: deleted
        in: query
      - schema:
          type: string
          maxLength: 200
        required: false
        name: q
        in: query
      - schema:
          type: string
          maxLength: 1200
          description: next_cursor from the page before, with the same sort
        required: false
        description: next_cursor from the page before, with the same sort
        name: cursor
        in: query
      - schema:
          type: integer
          minimum: 1
          maximum: 100
        required: false
        name: limit
        in: query
      responses:
        '200':
          description: Creations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreationList'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/creations/{id}:
    get:
      operationId: getCreation
      tags:
      - creations
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Creation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreationDetail'
        '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 creation
      x-summary-source: derived
    patch:
      operationId: updateCreation
      tags:
      - creations
      security:
      - bearerAuth: []
      summary: Rename, relabel, pin or mark opened
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCreationRequest'
      responses:
        '200':
          description: Creation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Creation'
        '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: deleteCreation
      tags:
      - creations
      security:
      - bearerAuth: []
      summary: Hides it now; the bytes go after 30 days unless it's restored
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Creation'
        '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/creations/{id}/restore:
    post:
      operationId: restoreCreation
      tags:
      - creations
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Restored
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Creation'
        '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: Restore creation
      x-summary-source: derived
  /v1/creations/{id}/content:
    get:
      operationId: getCreationContent
      tags:
      - creations
      security:
      - bearerAuth: []
      summary: The bytes (pictures, videos, sound; one byte range honoured).
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Contents
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '206':
          description: A byte range
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '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/creations/{id}/cover:
    get:
      operationId: getCreationCover
      tags:
      - creations
      security:
      - bearerAuth: []
      summary: The picture for its card, when it has one (has_cover).
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Cover
          content:
            image/jpeg:
              schema:
                type: string
                format: binary
            image/png:
              schema:
                type: string
                format: binary
            image/webp:
              schema:
                type: string
                format: binary
        '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/creations/{id}/preview:
    get:
      operationId: getCreationPreview
      tags:
      - creations
      security:
      - bearerAuth: []
      summary: A PDF of a document, made when it was kept, so it opens without its computer…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: PDF
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '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/creations/{id}/duplicate:
    post:
      operationId: duplicateCreation
      tags:
      - creations
      security:
      - bearerAuth: []
      summary: A private copy to change while the original stays as it is (D-291)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '201':
          description: The copy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Creation'
        '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:
    UpdateCreationRequest:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 200
        label:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 24
        pinned:
          type: boolean
        opened:
          type: boolean
          enum:
          - true
          description: Marks it opened now (Recently opened)
        visibility:
          type: string
          enum:
          - private
          - workspace
          - public
          description: Making it public returns public_url once; public again gives a new link
        expires_in_days:
          type: integer
          minimum: 1
          maximum: 365
        project_id:
          type:
          - string
          - 'null'
          format: uuid
          description: File it under a project, or null to take it out of one
    CreationDetail:
      allOf:
      - $ref: '#/components/schemas/Creation'
      - type: object
        properties:
          siblings:
            type: array
            items:
              $ref: '#/components/schemas/Creation'
            description: Other things the same run made, newest first
        required:
        - siblings
    Creation:
      type: object
      properties:
        id:
          type: string
          format: uuid
        org_id:
          type: string
          format: uuid
        bot_id:
          type:
          - string
          - 'null'
          format: uuid
        bot_name:
          type:
          - string
          - 'null'
        made_for:
          type:
          - string
          - 'null'
          format: uuid
        conversation_id:
          type:
          - string
          - 'null'
          format: uuid
        run_id:
          type:
          - string
          - 'null'
          format: uuid
        project_id:
          type:
          - string
          - 'null'
          format: uuid
          description: The project it's filed under (D-295), when you can see that project
        project_title:
          type:
          - string
          - 'null'
        kind:
          $ref: '#/components/schemas/CreationKind'
        label:
          type:
          - string
          - 'null'
          description: 'The bot''s word for it: Site, Game, Report…'
        title:
          type: string
        page_id:
          type:
          - string
          - 'null'
          format: uuid
        media_id:
          type:
          - string
          - 'null'
          format: uuid
        mime:
          type:
          - string
          - 'null'
        size:
          type: integer
        width:
          type:
          - integer
          - 'null'
        height:
          type:
          - integer
          - 'null'
        duration_s:
          type:
          - number
          - 'null'
        has_cover:
          type: boolean
          description: GET /v1/creations/{id}/cover returns a picture; otherwise the app draws one
        has_preview:
          type: boolean
          description: GET /v1/creations/{id}/preview returns a PDF of it (documents; D-280)
        version:
          type: integer
        visibility:
          type: string
          enum:
          - private
          - workspace
          - public
          description: Who can open it (D-281); a page's follows the page
        pinned:
          type: boolean
          description: Pinned by the person asking
        last_opened_at:
          type:
          - string
          - 'null'
          format: date-time
        can_change:
          type: boolean
        public_url:
          type:
          - string
          - 'null'
          description: The public link, only in the answer that made it public (D-281)
        deleted_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
      - id
      - org_id
      - bot_id
      - bot_name
      - made_for
      - conversation_id
      - run_id
      - kind
      - label
      - title
      - page_id
      - media_id
      - mime
      - size
      - width
      - height
      - duration_s
      - has_cover
      - has_preview
      - version
      - visibility
      - pinned
      - last_opened_at
      - can_change
      - deleted_at
      - created_at
      - updated_at
    CreationList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Creation'
        next_cursor:
          type:
          - string
          - 'null'
          description: Pass back as cursor for more
        kinds:
          type: array
          items:
            $ref: '#/components/schemas/CreationKind'
          description: The kinds this workspace has, for filter chips
      required:
      - items
      - next_cursor
      - kinds
    CreationKind:
      type: string
      enum:
      - page
      - image
      - video
      - audio
      - document
      - file
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token