Casama AI Pages API
The pages API from Casama AI, for pages.
The pages API from Casama AI, for pages.
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-pages-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 Pages 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: Pages
paths:
/v1/pages:
get:
operationId: listPages
tags:
- Pages
security:
- bearerAuth: []
summary: Pages you can open in a workspace
parameters:
- schema:
type: string
format: uuid
required: true
name: org_id
in: query
- schema:
type: string
format: uuid
required: false
name: bot_id
in: query
responses:
'200':
description: Pages
content:
application/json:
schema:
$ref: '#/components/schemas/PageList'
'401':
description: Not authenticated
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/pages/{id}:
get:
operationId: getPage
tags:
- Pages
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Page
content:
application/json:
schema:
$ref: '#/components/schemas/BotPageDetail'
'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 page
x-summary-source: derived
patch:
operationId: updatePage
tags:
- Pages
security:
- bearerAuth: []
summary: Change who can open a page; making it public returns a new link
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdatePageRequest'
responses:
'200':
description: Page
content:
application/json:
schema:
$ref: '#/components/schemas/UpdatePageResponse'
'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: deletePage
tags:
- Pages
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/DeletedPage'
'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: Delete page
x-summary-source: derived
/v1/pages/{id}/view-link:
post:
operationId: createPageViewLink
tags:
- Pages
security:
- bearerAuth: []
summary: A single-use link (60 s) that opens the page in a browser
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PageViewLinkRequest'
responses:
'200':
description: View link
content:
application/json:
schema:
$ref: '#/components/schemas/PageViewLink'
'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/pages/{id}/revert:
post:
operationId: revertPage
tags:
- Pages
security:
- bearerAuth: []
summary: Bring back an earlier version (as a new version)
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RevertPageRequest'
responses:
'200':
description: Page
content:
application/json:
schema:
$ref: '#/components/schemas/BotPage'
'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:
PageVersion:
type: object
properties:
version:
type: integer
created_at:
type: string
format: date-time
required:
- version
- created_at
DeletedPage:
type: object
properties:
deleted:
type: string
format: uuid
required:
- deleted
PageViewLink:
type: object
properties:
url:
type: string
format: uri
expires_at:
type: string
format: date-time
required:
- url
- expires_at
UpdatePageResponse:
type: object
properties:
page:
$ref: '#/components/schemas/BotPage'
public_url:
type:
- string
- 'null'
format: uri
required:
- page
- public_url
UpdatePageRequest:
type: object
properties:
visibility:
type: string
enum:
- private
- workspace
- public
expires_in_days:
type: integer
minimum: 1
maximum: 365
required:
- visibility
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
BotPageDetail:
allOf:
- $ref: '#/components/schemas/BotPage'
- type: object
properties:
versions:
type: array
items:
$ref: '#/components/schemas/PageVersion'
required:
- versions
PageViewLinkRequest:
type: object
properties:
format:
type: string
enum:
- html
- pdf
BotPage:
type: object
properties:
id:
type: string
format: uuid
bot_id:
type: string
format: uuid
title:
type: string
visibility:
type: string
enum:
- private
- workspace
- public
version:
type: integer
expires_at:
type:
- string
- 'null'
format: date-time
refresh_routine_id:
type:
- string
- 'null'
format: uuid
conversation_id:
type:
- string
- 'null'
format: uuid
can_manage:
type: boolean
updated_at:
type: string
format: date-time
created_at:
type: string
format: date-time
required:
- id
- bot_id
- title
- visibility
- version
- expires_at
- refresh_routine_id
- conversation_id
- can_manage
- updated_at
- created_at
RevertPageRequest:
type: object
properties:
version:
type: integer
minimum: 1
required:
- version
PageList:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/BotPage'
required:
- items
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token