Casama AI Watchers API
The watchers API from Casama AI, for watchers.
The watchers API from Casama AI, for watchers.
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-watchers-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 Watchers 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: Watchers
paths:
/v1/watchers:
post:
operationId: createPageWatcher
tags:
- Watchers
security:
- bearerAuth: []
summary: Watch part of a public page; the bot is woken when it changes
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePageWatcherRequest'
responses:
'201':
description: Watcher
content:
application/json:
schema:
$ref: '#/components/schemas/Watcher'
'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'
get:
operationId: listWatchers
tags:
- Watchers
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: bot_id
in: query
responses:
'200':
description: Watchers
content:
application/json:
schema:
$ref: '#/components/schemas/WatcherList'
'401':
description: Not authenticated
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
summary: List watchers
x-summary-source: derived
/v1/watchers/{id}:
patch:
operationId: updateWatcher
tags:
- Watchers
security:
- bearerAuth: []
summary: Pause or resume a watcher
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateWatcherRequest'
responses:
'200':
description: Watcher
content:
application/json:
schema:
$ref: '#/components/schemas/Watcher'
'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'
delete:
operationId: deleteWatcher
tags:
- Watchers
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Deleted
content:
application/json:
schema:
$ref: '#/components/schemas/DeletedWatcher'
'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: Delete watcher
x-summary-source: derived
components:
schemas:
CreatePageWatcherRequest:
type: object
properties:
bot_id:
type: string
format: uuid
description: The bot woken when the page changes
name:
type: string
minLength: 1
maxLength: 120
url:
type: string
maxLength: 2000
format: uri
description: The page; the server reads public pages, your browser signed-in ones
anchor:
type: string
maxLength: 200
description: Compare from this text on (a label just before the part that matters)
chars:
type: integer
minimum: 20
maximum: 2000
description: How much after the anchor to compare (default 2,000 characters)
condition:
type: string
maxLength: 2000
description: What counts as a match, in words ("the price drops below $40")
check_every_minutes:
type: integer
minimum: 15
maximum: 10080
where:
type: string
enum:
- server
- mine
description: '"mine": a signed-in page, read in your own browser whenever it''s online (Phase 3); default "server" (public pages)'
required:
- bot_id
- name
- url
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
WatcherList:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/Watcher'
required:
- items
UpdateWatcherRequest:
type: object
properties:
status:
type: string
enum:
- active
- paused
required:
- status
Watcher:
type: object
properties:
id:
type: string
format: uuid
bot_id:
type: string
format: uuid
name:
type: string
kind:
type: string
enum:
- page_change
- reply
- query
- time
target:
type: object
additionalProperties: {}
condition_md:
type: string
status:
type: string
enum:
- active
- paused
- done
- expired
check_every_seconds:
type: integer
fired_count:
type: integer
last_checked_at:
type:
- string
- 'null'
format: date-time
last_error:
type:
- string
- 'null'
expires_at:
type:
- string
- 'null'
format: date-time
conversation_id:
type:
- string
- 'null'
format: uuid
created_at:
type: string
format: date-time
required:
- id
- bot_id
- name
- kind
- target
- condition_md
- status
- check_every_seconds
- fired_count
- last_checked_at
- last_error
- expires_at
- conversation_id
- created_at
DeletedWatcher:
type: object
properties:
deleted:
type: string
format: uuid
required:
- deleted
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token