Casama AI Approvals API
The approvals API from Casama AI, for approvals.
The approvals API from Casama AI, for approvals.
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-approvals-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 Approvals 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: Approvals
paths:
/v1/approvals:
get:
operationId: listApprovals
tags:
- Approvals
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: org_id
in: query
- schema:
type: string
enum:
- pending
- approved
- denied
- expired
required: false
name: status
in: query
responses:
'200':
description: Newest first
content:
application/json:
schema:
$ref: '#/components/schemas/ApprovalList'
'401':
description: Not authenticated
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
summary: List approvals
x-summary-source: derived
/v1/approvals/{id}/decision:
post:
operationId: decideApproval
tags:
- Approvals
security:
- bearerAuth: []
summary: Approve or deny; denying cancels that step only.
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ApprovalDecisionRequest'
responses:
'200':
description: Decided
content:
application/json:
schema:
$ref: '#/components/schemas/Approval'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
components:
schemas:
Risk:
type: string
enum:
- low
- medium
- high
PermissionBundleItemDecision:
type: object
properties:
match_kind:
type: string
enum:
- tool
- group
- category
match_value:
type: string
minLength: 1
maxLength: 200
target:
$ref: '#/components/schemas/ActionRuleTarget'
required:
- match_kind
- match_value
Approval:
type: object
properties:
id:
type: string
format: uuid
bot_id:
type: string
format: uuid
run_id:
type: string
format: uuid
tool_name:
type: string
args_redacted:
type: object
additionalProperties: {}
summary:
type: string
risk:
$ref: '#/components/schemas/Risk'
status:
type: string
enum:
- pending
- approved
- denied
- expired
decided_at:
type:
- string
- 'null'
format: date-time
expires_at:
type: string
format: date-time
created_at:
type: string
format: date-time
required:
- id
- bot_id
- run_id
- tool_name
- args_redacted
- summary
- risk
- status
- decided_at
- expires_at
- created_at
ActionRuleTarget:
type:
- object
- 'null'
properties:
domains:
type: array
items:
type: string
minLength: 3
maxLength: 253
maxItems: 20
recipients:
type: array
items:
type: string
format: email
maxItems: 50
max_amount:
type: number
minimum: 0
paths:
type: array
items:
type: string
minLength: 1
maxLength: 300
maxItems: 20
ApprovalList:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/Approval'
required:
- items
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
ApprovalDecisionRequest:
type: object
properties:
decision:
type: string
enum:
- approved
- denied
always_allow:
type: boolean
description: Always allow this tool for this bot
bundle:
type: object
properties:
until:
type: string
format: date-time
items:
type: array
items:
$ref: '#/components/schemas/PermissionBundleItemDecision'
maxItems: 30
description: Edited items and end time when approving a permissions.request bundle
surface:
type: string
enum:
- card
- plain_card
- inbox
description: Where the person answered (analytics)
required:
- decision
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token