Casama AI Teach API
The teach API from Casama AI, for teach.
The teach API from Casama AI, for teach.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/casama-ai:casama-ai-teach-api"
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.
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: 3.2.0
info:
title: Casama Teach 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: teach
paths:
/v1/teach:
post:
operationId: startTeach
tags:
- teach
security:
- bearerAuth: []
summary: Start recording a task while you have control of a computer
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/StartTeachRequest'
responses:
'201':
description: Recording
content:
application/json:
schema:
$ref: '#/components/schemas/TeachSession'
'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/teach/{id}:
get:
operationId: getTeach
tags:
- teach
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Recording
content:
application/json:
schema:
$ref: '#/components/schemas/TeachSession'
'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 teach
x-summary-source: derived
delete:
operationId: cancelTeach
tags:
- teach
security:
- bearerAuth: []
summary: Discard a recording and everything it captured
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Deleted
content:
application/json:
schema:
$ref: '#/components/schemas/DeletedTeach'
'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/teach/{id}/steps:
post:
operationId: addTeachStep
tags:
- teach
security:
- bearerAuth: []
summary: Record a step; the server captures the screen's state after it
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AddTeachStepRequest'
responses:
'201':
description: Step
content:
application/json:
schema:
$ref: '#/components/schemas/TeachStep'
'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/teach/{id}/steps/{seq}/secret:
post:
operationId: markTeachSecret
tags:
- teach
security:
- bearerAuth: []
summary: 'Mark a typed value as a secret: its text is deleted and it becomes a…'
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
- schema:
type: integer
minimum: 1
required: true
name: seq
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MarkTeachSecretRequest'
responses:
'200':
description: Step
content:
application/json:
schema:
$ref: '#/components/schemas/TeachStep'
'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/teach/{id}/stop:
post:
operationId: stopTeach
tags:
- teach
security:
- bearerAuth: []
summary: Stop recording; the bot drafts a skill from it
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Recording
content:
application/json:
schema:
$ref: '#/components/schemas/TeachSession'
'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/teach/{id}/save:
post:
operationId: saveTeach
tags:
- teach
security:
- bearerAuth: []
summary: Save the (edited) draft as one of the bot's skills, and optionally try it now
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SaveTeachRequest'
responses:
'200':
description: Saved
content:
application/json:
schema:
$ref: '#/components/schemas/SaveTeachResponse'
'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'
components:
schemas:
MarkTeachSecretRequest:
type: object
properties:
secret_name:
type: string
pattern: ^[A-Z][A-Z0-9_]{0,63}$
required:
- secret_name
TeachStep:
type: object
properties:
seq:
type: integer
kind:
type: string
enum:
- click
- type
- key
- scroll
- open
x:
type:
- integer
- 'null'
y:
type:
- integer
- 'null'
button:
type:
- integer
- 'null'
text:
type:
- string
- 'null'
key:
type:
- string
- 'null'
dx:
type:
- integer
- 'null'
dy:
type:
- integer
- 'null'
secret_name:
type:
- string
- 'null'
password:
type: boolean
url:
type:
- string
- 'null'
target:
$ref: '#/components/schemas/TeachTarget'
has_screenshot:
type: boolean
created_at:
type: string
format: date-time
required:
- seq
- kind
- x
- y
- button
- text
- key
- dx
- dy
- secret_name
- password
- url
- has_screenshot
- created_at
SaveTeachRequest:
type: object
properties:
name:
type: string
pattern: ^[a-z0-9][a-z0-9_-]{0,62}$
description:
type: string
minLength: 1
maxLength: 300
body:
type: string
minLength: 1
maxLength: 50000
try_now:
type: boolean
required:
- name
- description
- body
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
TeachDraft:
type:
- object
- 'null'
properties:
name:
type: string
description:
type: string
body:
type: string
inputs:
type: array
items:
type: object
properties:
name:
type: string
description:
type: string
secret:
type: boolean
required:
- name
checks:
type: array
items:
type: string
required:
- name
- description
- body
- inputs
- checks
AddTeachStepRequest:
type: object
properties:
kind:
type: string
enum:
- click
- type
- key
- scroll
- open
x:
type: integer
minimum: 0
maximum: 20000
y:
type: integer
minimum: 0
maximum: 20000
button:
type: integer
minimum: 1
maximum: 3
text:
type: string
maxLength: 2000
key:
type: string
maxLength: 40
dx:
type: integer
minimum: -10000
maximum: 10000
dy:
type: integer
minimum: -10000
maximum: 10000
target:
$ref: '#/components/schemas/TeachTarget'
url:
type: string
maxLength: 2000
password:
type: boolean
description: 'Typed into a password field: the text is dropped and becomes a secret input'
snapshot:
type: string
maxLength: 20000
required:
- kind
SaveTeachResponse:
type: object
properties:
skill_id:
type: string
format: uuid
conversation_id:
type:
- string
- 'null'
format: uuid
run_id:
type:
- string
- 'null'
format: uuid
required:
- skill_id
- conversation_id
- run_id
DeletedTeach:
type: object
properties:
deleted:
type: string
format: uuid
required:
- deleted
TeachTarget:
type:
- object
- 'null'
properties:
role:
type: string
maxLength: 50
name:
type: string
minLength: 1
maxLength: 200
required:
- name
StartTeachRequest:
type: object
properties:
computer_id:
type: string
format: uuid
device_id:
type: string
format: uuid
description: Record in this browser (a paired Casama for Chrome) instead of a computer
bot_id:
type: string
format: uuid
required:
- bot_id
TeachSession:
type: object
properties:
id:
type: string
format: uuid
bot_id:
type: string
format: uuid
computer_id:
type:
- string
- 'null'
format: uuid
device_id:
type:
- string
- 'null'
format: uuid
description: A recording made in a browser tab (Casama for Chrome) belongs to the browser
status:
type: string
enum:
- recording
- drafting
- drafted
- saved
- cancelled
- failed
conversation_id:
type:
- string
- 'null'
format: uuid
draft:
$ref: '#/components/schemas/TeachDraft'
skill_id:
type:
- string
- 'null'
format: uuid
steps:
type: array
items:
$ref: '#/components/schemas/TeachStep'
started_at:
type: string
format: date-time
stopped_at:
type:
- string
- 'null'
format: date-time
error_code:
type:
- string
- 'null'
description: 'Why the draft couldn''t be written, when status is failed: the drafting run''s error code (out_of_credits, plan_limit, …)'
error_message:
type:
- string
- 'null'
description: The same, as a sentence to show the person
required:
- id
- bot_id
- computer_id
- status
- conversation_id
- draft
- skill_id
- steps
- started_at
- stopped_at
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token