Casama AI Telephony API
The telephony API from Casama AI, for telephony.
Operations 6
POST
/v1/outbound-calls/{id}/take-over
Move the call to your own phone (saves the number to your profile)
#
The telephony API from Casama AI, for telephony.
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-telephony-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 Telephony 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: telephony
paths:
/v1/orgs/{id}/telephony:
get:
operationId: getTelephony
tags:
- telephony
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Settings
content:
application/json:
schema:
$ref: '#/components/schemas/TelephonySettings'
'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: Get telephony
x-summary-source: derived
put:
operationId: setTelephony
tags:
- telephony
security:
- bearerAuth: []
summary: Connect the workspace's Twilio account for calls bots place
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SetTelephonyRequest'
responses:
'200':
description: Settings
content:
application/json:
schema:
$ref: '#/components/schemas/TelephonySettings'
'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'
delete:
operationId: deleteTelephony
tags:
- telephony
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Settings
content:
application/json:
schema:
$ref: '#/components/schemas/TelephonySettings'
'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 telephony
x-summary-source: derived
/v1/outbound-calls/{id}:
get:
operationId: getOutboundCall
tags:
- telephony
security:
- bearerAuth: []
summary: A call a bot placed, with its live transcript
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Call
content:
application/json:
schema:
$ref: '#/components/schemas/OutboundCall'
'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/outbound-calls/{id}/end:
post:
operationId: endOutboundCall
tags:
- telephony
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
responses:
'200':
description: Call
content:
application/json:
schema:
$ref: '#/components/schemas/OutboundCall'
'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: End outbound call
x-summary-source: derived
/v1/outbound-calls/{id}/take-over:
post:
operationId: takeOverOutboundCall
tags:
- telephony
security:
- bearerAuth: []
summary: Move the call to your own phone (saves the number to your profile)
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TakeOverCallRequest'
responses:
'200':
description: Call
content:
application/json:
schema:
$ref: '#/components/schemas/OutboundCall'
'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'
'409':
description: Conflict
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
components:
schemas:
TakeOverCallRequest:
type: object
properties:
phone:
type: string
pattern: ^\+[1-9][0-9]{7,14}$
OutboundCall:
type: object
properties:
id:
type: string
format: uuid
bot_id:
type: string
format: uuid
number:
type: string
purpose:
type: string
status:
type: string
enum:
- queued
- ringing
- in_progress
- completed
- failed
- busy
- no_answer
- ended_by_user
- taken_over
transcript:
type: array
items:
type: object
properties:
role:
type: string
enum:
- bot
- callee
text:
type: string
required:
- role
- text
seconds:
type:
- integer
- 'null'
started_at:
type:
- string
- 'null'
format: date-time
ended_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
required:
- id
- bot_id
- number
- purpose
- status
- transcript
- seconds
- started_at
- ended_at
- created_at
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
SetTelephonyRequest:
type: object
properties:
account_sid:
type: string
pattern: ^AC[0-9a-fA-F]{32}$
auth_token:
type: string
minLength: 16
maxLength: 200
from_number:
type: string
pattern: ^\+[1-9][0-9]{7,14}$
allow_personal_numbers:
type: boolean
daily_cap:
type: integer
minimum: 0
maximum: 500
required:
- account_sid
- from_number
TelephonySettings:
type: object
properties:
connected:
type: boolean
account_sid:
type:
- string
- 'null'
from_number:
type:
- string
- 'null'
allow_personal_numbers:
type: boolean
daily_cap:
type: integer
required:
- connected
- account_sid
- from_number
- allow_personal_numbers
- daily_cap
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token