Casama AI Privacy API
The privacy API from Casama AI, for privacy.
The privacy API from Casama AI, for privacy.
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-privacy-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 Privacy 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: privacy
paths:
/v1/me:
delete:
operationId: deleteMyAccount
tags:
- privacy
security:
- bearerAuth: []
summary: 'Delete your account: you are signed out now, web plans you pay for are…'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteAccountRequest'
responses:
'200':
description: Scheduled
content:
application/json:
schema:
$ref: '#/components/schemas/AccountDeletion'
'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'
/v1/me/export:
get:
operationId: exportMyData
tags:
- privacy
security:
- bearerAuth: []
summary: Download everything you can see as a ZIP of JSON files
responses:
'200':
description: ZIP archive
content:
application/zip:
schema:
type: string
format: binary
'401':
description: Not authenticated
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/me/two-step/{id}:
patch:
operationId: renameTwoStepFactor
tags:
- privacy
security:
- bearerAuth: []
summary: Rename one of your authenticator apps (two-step sign-in)
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 60
required:
- name
responses:
'204':
description: Renamed
'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'
/v1/me/apple-sign-in:
post:
operationId: saveAppleSignInToken
tags:
- privacy
security:
- bearerAuth: []
summary: Hand over what Sign in with Apple returned, so deleting the account can revoke…
description: 'App Store 5.1.1(v) (D-420): deleting an account revokes its Sign in with Apple tokens. The app sends the system sheet''s authorization code, or the browser sign-in''s refresh token, right after signing in with Apple. The server checks it with Apple against the person''s Apple identity and keeps the refresh token in Vault until the account is deleted.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AppleSignInTokenRequest'
responses:
'200':
description: Saved
content:
application/json:
schema:
$ref: '#/components/schemas/AppleSignInTokenResult'
'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'
/v1/orgs/{id}/settings:
get:
operationId: getOrgSettings
tags:
- privacy
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/OrgSettings'
'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 org settings
x-summary-source: derived
patch:
operationId: updateOrgSettings
tags:
- privacy
security:
- bearerAuth: []
summary: Change workspace settings such as run event retention (admins)
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateOrgSettingsRequest'
responses:
'200':
description: Settings
content:
application/json:
schema:
$ref: '#/components/schemas/OrgSettings'
'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'
/v1/me/analytics-opt-out:
post:
operationId: setAnalyticsOptOut
tags:
- privacy
security:
- bearerAuth: []
summary: Update the user's analytics opt-out preference
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
opt_out:
type: boolean
required:
- opt_out
responses:
'204':
description: Updated
'401':
description: Not authenticated
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/me/attribution:
post:
operationId: setAttribution
tags:
- privacy
security:
- bearerAuth: []
summary: Record first-touch signup platform and acquisition source once per account
description: Written once per account (COALESCE when null) right after sign-in, respecting analytics_opt_out (D-533). Never stores personal details or query strings beyond utm_source, utm_medium, utm_campaign and path.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SetAttributionRequest'
responses:
'204':
description: Recorded or already set
'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'
/v1/analytics/events:
post:
operationId: relayAnalytics
tags:
- privacy
security:
- bearerAuth: []
summary: Relay desktop or extension product events to Google Analytics 4
description: Windows, Linux and the browser extension have no Firebase Analytics, and the Measurement Protocol secret can't ship in the client, so they send catalog events here and the server forwards them to GA4 (D-399, D-533). Only Casama Cloud with GA4 configured forwards anything; opted-out people and unknown events are dropped. Always 204.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RelayAnalyticsRequest'
responses:
'204':
description: Accepted (forwarded or dropped)
'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'
/v1/me/funnel:
post:
operationId: recordFunnelEvent
tags:
- privacy
security:
- bearerAuth: []
summary: Record a first-party paywall or checkout funnel step
description: Writes a paywall_view, paywall_plan_select, or purchase_started step to first-party Admin -> Growth reporting (docs/CONVERSION-FUNNEL-PLAN.md §2.1). Respects analytics_opt_out. Always 204.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RecordFunnelEventRequest'
responses:
'204':
description: Recorded or skipped
'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'
/v1/me/age-band:
put:
operationId: setMyAgeBand
tags:
- privacy
security:
- bearerAuth: []
summary: Save the account's declared age band (no birth date…
description: Only this route changes the band. A lower (more restrictive) band always applies, and a first band applies after none or declined. Declining keeps a band already known. A higher band applies only one step at a time (under13, 13to15, 16to17, 18plus) and only once the current band has stood for 30 days; otherwise the current band stays and `accepted` is false. The response is the band that applies now.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SetAgeBandRequest'
responses:
'200':
description: Saved
content:
application/json:
schema:
$ref: '#/components/schemas/AgeBandResult'
'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'
components:
schemas:
RelayAnalyticsRequest:
type: object
properties:
platform:
type: string
enum:
- windows
- linux
- extension
events:
type: array
items:
$ref: '#/components/schemas/RelayedAnalyticsEvent'
minItems: 1
maxItems: 25
required:
- platform
- events
DeleteAccountRequest:
type: object
properties:
confirm_email:
type: string
format: email
description: The account's email, to confirm
required:
- confirm_email
SetAgeBandRequest:
type: object
properties:
age_band:
$ref: '#/components/schemas/AccountAgeBand'
required:
- age_band
AccountAgeBand:
type:
- string
- 'null'
enum:
- under13
- 13to15
- 16to17
- 18plus
- declined
- null
AppleSignInTokenRequest:
type: object
properties:
authorization_code:
type: string
minLength: 1
maxLength: 2000
description: The one-time authorization code from Apple's system sheet (iOS and macOS); the server swaps it for a refresh token
refresh_token:
type: string
minLength: 1
maxLength: 2000
description: Apple's refresh token from the browser sign-in (Supabase Auth's provider_refresh_token)
AccountDeletion:
type: object
properties:
purge_after:
type: string
format: date-time
workspaces_deleted:
type: array
items:
type: string
description: Workspaces you are the only owner of; they are deleted with you
store_subscriptions:
type: array
items:
$ref: '#/components/schemas/StoreSubscriptionNotice'
description: 'App Store and Google Play subscriptions of those workspaces that still renew. Deleting the account doesn''t cancel them: only the buyer can, in the store'
required:
- purge_after
- workspaces_deleted
AgeBandResult:
type: object
properties:
account_age_band:
$ref: '#/components/schemas/AccountAgeBand'
account_age_band_updated_at:
type: string
format: date-time
accepted:
type: boolean
description: Whether the band sent was saved; account_age_band is the band in force either way. A higher band is saved only one step at a time and only once the current band is 30 days old; declining keeps a band already known. Always sent; missing only from servers before this rule, which saved every band.
required:
- account_age_band
- account_age_band_updated_at
RecordFunnelEventRequest:
type: object
properties:
event:
type: string
enum:
- paywall_view
- paywall_plan_select
- purchase_started
- connection_failed
org_id:
type: string
format: uuid
source:
type: string
maxLength: 64
detail:
type: string
maxLength: 120
required:
- event
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
OrgSettings:
type: object
properties:
run_event_retention_days:
type: integer
minimum: 7
maximum: 3650
require_mfa:
type: boolean
description: Owners and admins must use two-step sign-in (turning it on needs an aal2 session)
require_app_lock:
type: boolean
description: Members must turn on the app lock (Face ID, fingerprint, the device passcode, Windows Hello, a PIN or a passkey) before the app shows the workspace
mcp_decide_approvals:
type: boolean
description: Allow approving or denying actions from AI apps connected over MCP
full_access:
type: boolean
description: 'Full access (D-394): every bot acts without asking first. Payments, password and two-step changes and the workspace''s own ask and hand-off rules still apply'
allow_bot_to_bot:
type: boolean
description: Bots may @mention, message and delegate to each other; subagents always work
a2a_enabled:
type: boolean
description: Bots the workspace chooses can be published as A2A agents, reachable with workspace API keys
llm_tracing:
type: boolean
description: Send model calls to the server's Langfuse, secrets redacted; no effect without Langfuse
analytics_opt_out:
type: boolean
description: Disable usage analytics collection and rollups for this workspace
chrome_extension:
type: boolean
description: Members may use Casama for Chrome with this workspace (D-323 G9)
chrome_act:
type: boolean
description: Bots may work in members' own browsers (Act, D-323 G9)
app_browser:
type: boolean
description: Bots may use the browser inside members' phone apps
chrome_blocked_sites:
type: array
items:
type: string
minLength: 1
maxLength: 253
maxItems: 500
description: Sites bots may never act on in members' browsers
required:
- run_event_retention_days
- require_mfa
- mcp_decide_approvals
- allow_bot_to_bot
- a2a_enabled
- llm_tracing
SetAttributionRequest:
type: object
properties:
platform:
type: string
enum:
- ios
- android
- macos
- windows
- linux
- web
- extension
source:
type: string
maxLength: 80
medium:
type: string
maxLength: 60
campaign:
type: string
maxLength: 100
landing:
type: string
maxLength: 120
install_id:
type: string
pattern: ^[A-Za-z0-9_-]{8,64}$
UpdateOrgSettingsRequest:
type: object
properties:
run_event_retention_days:
type: integer
minimum: 7
maximum: 3650
require_mfa:
type: boolean
description: Owners and admins must use two-step sign-in (turning it on needs an aal2 session)
require_app_lock:
type: boolean
description: Members must turn on the app lock (Face ID, fingerprint, the device passcode, Windows Hello, a PIN or a passkey) before the app shows the workspace
mcp_decide_approvals:
type: boolean
description: Allow approving or denying actions from AI apps connected over MCP
full_access:
type: boolean
description: 'Full access (D-394): every bot acts without asking first. Payments, password and two-step changes and the workspace''s own ask and hand-off rules still apply'
allow_bot_to_bot:
type: boolean
description: Bots may @mention, message and delegate to each other; subagents always work
a2a_enabled:
type: boolean
description: Bots the workspace chooses can be published as A2A agents, reachable with workspace API keys
llm_tracing:
type: boolean
description: Send model calls to the server's Langfuse, secrets redacted; no effect without Langfuse
analytics_opt_out:
type: boolean
description: Disable usage analytics collection and rollups for this workspace
chrome_extension:
type: boolean
description: Members may use Casama for Chrome with this workspace (D-323 G9)
chrome_act:
type: boolean
description: Bots may work in members' own browsers (Act, D-323 G9)
app_browser:
type: boolean
description: Bots may use the browser inside members' phone apps
chrome_blocked_sites:
type: array
items:
type: string
minLength: 1
maxLength: 253
maxItems: 500
description: Sites bots may never act on in members' browsers
StoreSubscriptionNotice:
type: object
properties:
source:
type: string
enum:
- app_store
- google_play
plan_name:
type: string
manage_url:
type: string
description: The store's page to cancel it
notice:
type: string
description: 'In the person''s language: this must be cancelled in the store, with the link'
required:
- source
- plan_name
- manage_url
- notice
AppleSignInTokenResult:
type: object
properties:
stored:
type: boolean
description: False when this server doesn't revoke Apple tokens (no Sign in with Apple key)
required:
- stored
RelayedAnalyticsEvent:
type: object
properties:
name:
type: string
pattern: ^[a-z][a-z0-9_]{0,39}$
description: A catalog event the app may send, or screen_view
properties:
type: object
additionalProperties: {}
description: 'Catalog properties: strings, numbers or booleans; anything else is dropped'
required:
- name
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token