Properties
| Name | Type | Description |
|---|---|---|
| bot_id | string | |
| name | string | |
| instructions | string | |
| trigger | object | |
| schedule_cron | string | 5-field cron, required for schedule triggers |
| run_at | string | When a once routine runs (it switches itself off afterwards) |
| timezone | string | IANA timezone; defaults to your profile's |
| notify | boolean | |
| events | array | GitHub event names to accept |
| calendar | object | |
| message | object | |
| device | object | |
| ends_at | string | Repeating and event routines: switch off for good at this time |
| max_runs | integer | Repeating and event routines: switch off for good after this many runs |
| gallery_id | string | The gallery routine idea this came from, so the workspace sees its updates (D-315) |
| browser | string | Where its browser work happens (D-323 C13): "computer" (the bot's own), "mine" (your Chrome; waits until it's online) or "mine_or_computer" |
| computer | string | Where its computer work happens (computer places): "bot_computer" (the bot's own, the default) or "my_computer" (your own computer, when it is on and lets the bot in) |
| uses_computer | boolean | Whether its runs may use a computer at all (D-627). Off: no files, shell or computer browser, and no computer is started. Defaults to off for briefs and check-ins, on otherwise |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/casama-ai/json-schema/casama-ai-create-routine-request-schema.json",
"title": "CreateRoutineRequest",
"x-generated": "2026-11-29",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/casama-ai-openapi.json#/components/schemas/CreateRoutineRequest",
"type": "object",
"properties": {
"bot_id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"instructions": {
"type": "string",
"minLength": 1,
"maxLength": 20000
},
"trigger": {
"$ref": "#/$defs/RoutineTrigger"
},
"schedule_cron": {
"type": "string",
"maxLength": 100,
"description": "5-field cron, required for schedule triggers"
},
"run_at": {
"type": "string",
"format": "date-time",
"description": "When a once routine runs (it switches itself off afterwards)"
},
"timezone": {
"type": "string",
"maxLength": 64,
"description": "IANA timezone; defaults to your profile's"
},
"notify": {
"type": "boolean"
},
"events": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64
},
"maxItems": 20,
"description": "GitHub event names to accept"
},
"calendar": {
"allOf": [
{
"$ref": "#/$defs/CalendarTriggerConfig"
},
{
"description": "Required for calendar_event triggers"
}
]
},
"message": {
"allOf": [
{
"$ref": "#/$defs/MessageTriggerConfig"
},
{
"description": "Filters for message triggers: an email or chat message that matches starts the routine"
}
]
},
"device": {
"allOf": [
{
"$ref": "#/$defs/DeviceTriggerConfig"
},
{
"description": "Required for device triggers: the event on your own phone or computer"
}
]
},
"ends_at": {
"type": "string",
"format": "date-time",
"description": "Repeating and event routines: switch off for good at this time"
},
"max_runs": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"description": "Repeating and event routines: switch off for good after this many runs"
},
"gallery_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "The gallery routine idea this came from, so the workspace sees its updates (D-315)"
},
"browser": {
"type": "string",
"enum": [
"computer",
"mine",
"mine_or_computer"
],
"description": "Where its browser work happens (D-323 C13): \"computer\" (the bot's own), \"mine\" (your Chrome; waits until it's online) or \"mine_or_computer\""
},
"computer": {
"type": "string",
"enum": [
"bot_computer",
"my_computer"
],
"description": "Where its computer work happens (computer places): \"bot_computer\" (the bot's own, the default) or \"my_computer\" (your own computer, when it is on and lets the bot in)"
},
"uses_computer": {
"type": "boolean",
"description": "Whether its runs may use a computer at all (D-627). Off: no files, shell or computer browser, and no computer is started. Defaults to off for briefs and check-ins, on otherwise"
}
},
"required": [
"bot_id",
"name",
"instructions"
],
"$defs": {
"CalendarTriggerConfig": {
"type": [
"object",
"null"
],
"properties": {
"integration_id": {
"type": "string",
"format": "uuid",
"description": "A connected Google or Outlook calendar"
},
"offset_minutes": {
"type": "integer",
"minimum": -1440,
"maximum": 1440,
"description": "Relative to the event's start (or end, with anchor end); -15 is 15 minutes before"
},
"anchor": {
"type": "string",
"enum": [
"start",
"end"
],
"description": "What the offset counts from; end is for after a meeting (D-287)"
},
"calendar": {
"type": "string",
"maxLength": 200
},
"outside_guests": {
"type": "boolean"
},
"title_match": {
"type": "string",
"maxLength": 200
},
"has_video_link": {
"type": "boolean"
}
},
"required": [
"integration_id",
"offset_minutes"
]
},
"DeviceTriggerConfig": {
"type": [
"object",
"null"
],
"properties": {
"event": {
"type": "string",
"enum": [
"wake",
"arrive",
"leave",
"leave_now",
"workout_ended",
"notification",
"focus_on",
"focus_off",
"file_added",
"site_opened",
"download_done",
"bookmark_added"
]
},
"site": {
"type": "string",
"minLength": 1,
"maxLength": 253,
"description": "site_opened: a site the person names (wiki.example.com); its subdomains count. Banking, health, password manager and government ID sites are refused"
},
"place": {
"type": "string",
"minLength": 1,
"maxLength": 60,
"description": "arrive and leave: a named place (Home, Work, Gym)"
},
"app": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "notification: the watched app (its name or package id)"
},
"minutes_before": {
"type": "integer",
"minimum": 0,
"maximum": 120,
"description": "leave_now: extra minutes on top of the travel time (default 5)"
},
"folder": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "file_added: a folder the desktop app watches (Downloads)"
},
"pattern": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "file_added and download_done: a file name pattern like *.pdf"
}
},
"required": [
"event"
]
},
"MessageTriggerConfig": {
"type": [
"object",
"null"
],
"properties": {
"channel_id": {
"type": "string",
"format": "uuid"
},
"channel_kind": {
"type": "string",
"enum": [
"telegram",
"email",
"sms",
"slack",
"whatsapp",
"messenger",
"feishu",
"imessage",
"teams",
"discord",
"linear",
"jira"
]
},
"sender": {
"type": "string",
"maxLength": 300,
"description": "An address or id; *@domain for email"
},
"subject_match": {
"type": "string",
"maxLength": 200
},
"text_match": {
"type": "string",
"maxLength": 200
},
"to_tag": {
"type": "string",
"maxLength": 100,
"description": "Hosted mail only: the plus tag it arrived on (ada+shop@)"
},
"allow_unconfirmed": {
"type": "boolean",
"description": "Hosted mail: also hear senders whose domain didn't confirm them"
},
"include_automatic": {
"type": "boolean",
"description": "Also hear automatic mail (bounces, out-of-office, lists)"
}
}
},
"RoutineTrigger": {
"type": "string",
"enum": [
"schedule",
"once",
"github",
"webhook",
"calendar_event",
"message",
"device"
],
"description": "schedule repeats on a cron; once runs a single time at run_at"
}
}
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/casama-ai-create-routine-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.