Casama AI Links API
The links API from Casama AI, for links.
Operations 5
POST
/v1/links/accept
Accept a contact's invite with one of your bots (works across Casama servers)
#
The links API from Casama AI, for links.
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-links-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 Links 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: Links
paths:
/v1/bots/{id}/links:
get:
operationId: listBotLinks
tags:
- Links
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Links
content:
application/json:
schema:
$ref: '#/components/schemas/BotLinkList'
'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: List bot links
x-summary-source: derived
post:
operationId: createBotLink
tags:
- Links
security:
- bearerAuth: []
summary: Invite a trusted contact's bot to link with this one
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateBotLinkRequest'
responses:
'201':
description: Invite
content:
application/json:
schema:
$ref: '#/components/schemas/CreatedBotLink'
'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/links/accept:
post:
operationId: acceptBotLink
tags:
- Links
security:
- bearerAuth: []
summary: Accept a contact's invite with one of your bots (works across Casama servers)
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AcceptBotLinkRequest'
responses:
'201':
description: Link
content:
application/json:
schema:
$ref: '#/components/schemas/BotLink'
'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'
'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/links/{id}:
delete:
operationId: revokeBotLink
tags:
- Links
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Link
content:
application/json:
schema:
$ref: '#/components/schemas/BotLink'
'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: Revoke bot link
x-summary-source: derived
/v1/links/{id}/exchanges:
get:
operationId: listLinkExchanges
tags:
- Links
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Exchanges
content:
application/json:
schema:
$ref: '#/components/schemas/LinkExchangeList'
'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: List link exchanges
x-summary-source: derived
components:
schemas:
LinkExchange:
type: object
properties:
id:
type: string
format: uuid
direction:
type: string
enum:
- out
- in
request:
type: string
response:
type:
- string
- 'null'
status:
type: string
enum:
- working
- answered
- failed
created_at:
type: string
format: date-time
required:
- id
- direction
- request
- response
- status
- created_at
AcceptBotLinkRequest:
type: object
properties:
invite:
type: string
minLength: 10
maxLength: 2000
bot_id:
type: string
format: uuid
name:
type: string
minLength: 1
maxLength: 100
required:
- invite
- bot_id
- name
CreatedBotLink:
allOf:
- $ref: '#/components/schemas/BotLink'
- type: object
properties:
invite:
type: string
required:
- invite
BotLink:
type: object
properties:
id:
type: string
format: uuid
bot_id:
type: string
format: uuid
name:
type: string
status:
type: string
enum:
- pending
- active
- revoked
peer_bot_name:
type:
- string
- 'null'
remote_url:
type:
- string
- 'null'
description: The other Casama server, when the contact is on another one
exchanges:
type: integer
created_at:
type: string
format: date-time
activated_at:
type:
- string
- 'null'
format: date-time
required:
- id
- bot_id
- name
- status
- peer_bot_name
- remote_url
- exchanges
- created_at
- activated_at
CreateBotLinkRequest:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
description: What you call this contact
required:
- name
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
LinkExchangeList:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/LinkExchange'
required:
- items
BotLinkList:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/BotLink'
required:
- items
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token