Casama AI Partners API
The partners API from Casama AI, for partners.
The partners API from Casama AI, for partners.
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-partners-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 Partners 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: Partners
paths:
/v1/me/partner:
get:
operationId: getPartnerMe
tags:
- Partners
security:
- bearerAuth: []
summary: The creator who sent you, whether you can still enter a code, and your own…
responses:
'200':
description: Partner
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerMe'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/me/partner/claim:
post:
operationId: claimPartner
tags:
- Partners
security:
- bearerAuth: []
summary: Enter a creator's code (new accounts, before the first payment)
description: 'Errors: 404 partner_not_found, 400 partner_own_code, 400 partner_window_closed, 400 partner_already_paying, 409 partner_already, 409 partner_referred, 404 partners_off, 429 too_many_attempts.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ClaimPartnerRequest'
responses:
'200':
description: Partner
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerMe'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/partner/preview:
get:
operationId: previewPartner
tags:
- Partners
summary: Who a creator code belongs to (no sign-in)
parameters:
- schema:
type: string
minLength: 1
maxLength: 200
required: true
name: code
in: query
responses:
'200':
description: Creator
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerPreview'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/admin/partners:
get:
operationId: listAdminPartners
tags:
- Partners
security:
- bearerAuth: []
summary: Partners, their codes and earnings (instance owner)
responses:
'200':
description: Partners
content:
application/json:
schema:
$ref: '#/components/schemas/AdminPartners'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
post:
operationId: createAdminPartner
tags:
- Partners
security:
- bearerAuth: []
summary: Add a partner by hand (instance owner)
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAdminPartnerRequest'
responses:
'200':
description: Partner
content:
application/json:
schema:
$ref: '#/components/schemas/AdminPartner'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/admin/partners/{id}:
patch:
operationId: updateAdminPartner
tags:
- Partners
security:
- bearerAuth: []
summary: Approve, pause, ban or change a partner (instance owner)
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAdminPartnerRequest'
responses:
'200':
description: Partner
content:
application/json:
schema:
$ref: '#/components/schemas/AdminPartner'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/admin/partners/{id}/codes:
post:
operationId: createAdminPartnerCode
tags:
- Partners
security:
- bearerAuth: []
summary: Give a partner a code (instance owner)
description: 'Errors: 409 partner_code_taken.'
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAdminPartnerCodeRequest'
responses:
'200':
description: Code
content:
application/json:
schema:
$ref: '#/components/schemas/AdminPartnerCode'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/admin/partner-codes/{code}:
patch:
operationId: updateAdminPartnerCode
tags:
- Partners
security:
- bearerAuth: []
summary: Pause, retire or change a partner code (instance owner)
parameters:
- schema:
type: string
minLength: 3
maxLength: 20
required: true
name: code
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAdminPartnerCodeRequest'
responses:
'200':
description: Code
content:
application/json:
schema:
$ref: '#/components/schemas/AdminPartnerCode'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/admin/partner-commissions:
get:
operationId: listAdminPartnerCommissions
tags:
- Partners
security:
- bearerAuth: []
summary: Commissions, newest first (instance owner)
parameters:
- schema:
type: string
format: uuid
required: false
name: partner_id
in: query
- schema:
type: string
enum:
- pending
- payable
- paid
- held_for_review
- void
required: false
name: status
in: query
- schema:
type: integer
minimum: 1
maximum: 500
required: false
name: limit
in: query
responses:
'200':
description: Commissions
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AdminPartnerCommission'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/admin/partner-commissions/{id}:
patch:
operationId: updateAdminPartnerCommission
tags:
- Partners
security:
- bearerAuth: []
summary: Hold, release or void a commission (instance owner)
parameters:
- schema:
type: string
format: uuid
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAdminPartnerCommissionRequest'
responses:
'200':
description: Commission
content:
application/json:
schema:
$ref: '#/components/schemas/AdminPartnerCommission'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/admin/partners/sync:
post:
operationId: syncAdminPartners
tags:
- Partners
security:
- bearerAuth: []
summary: Sync with the partner portal now (instance owner)
responses:
'200':
description: Sync
content:
application/json:
schema:
$ref: '#/components/schemas/AdminPartnerSync'
'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'
'429':
description: Rate limited
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
components:
schemas:
UpdateAdminPartnerCodeRequest:
type: object
properties:
status:
type: string
enum:
- active
- paused
- retired
dodo_discount_code:
type:
- string
- 'null'
maxLength: 64
apple_offer_code:
type:
- string
- 'null'
maxLength: 64
play_promo_code:
type:
- string
- 'null'
maxLength: 64
UpdateAdminPartnerRequest:
type: object
properties:
display_name:
type: string
minLength: 1
maxLength: 80
picture_url:
type:
- string
- 'null'
maxLength: 500
channel_url:
type:
- string
- 'null'
maxLength: 500
status:
type: string
enum:
- applied
- active
- paused
- banned
- left
rate:
type:
- number
- 'null'
minimum: 0
maximum: 1
notes:
type:
- string
- 'null'
maxLength: 2000
user_email:
type:
- string
- 'null'
format: email
PartnerPreview:
type: object
properties:
code:
type: string
name:
type: string
picture:
type:
- string
- 'null'
required:
- code
- name
- picture
AdminPartners:
type: object
properties:
enabled:
type: boolean
platform:
type:
- string
- 'null'
rate:
type: number
hold_days:
type: integer
totals:
type: object
properties:
pending_usd:
type: number
payable_usd:
type: number
paid_usd:
type: number
unread_charges:
type: integer
sync_failed:
type: integer
required:
- pending_usd
- payable_usd
- paid_usd
- unread_charges
- sync_failed
partners:
type: array
items:
$ref: '#/components/schemas/AdminPartner'
required:
- enabled
- platform
- rate
- hold_days
- totals
- partners
AdminPartnerCommission:
type: object
properties:
id:
type: string
format: uuid
partner_id:
type: string
format: uuid
partner_name:
type: string
kind:
type: string
enum:
- sale
- reversal
- manual
source:
type:
- string
- 'null'
base_usd:
type: number
rate:
type: number
amount_usd:
type: number
status:
type: string
enum:
- pending
- payable
- paid
- held_for_review
- void
hold_until:
type: string
format: date-time
note:
type:
- string
- 'null'
sync_state:
type: string
sync_error:
type:
- string
- 'null'
paid_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
required:
- id
- partner_id
- partner_name
- kind
- source
- base_usd
- rate
- amount_usd
- status
- hold_until
- note
- sync_state
- sync_error
- paid_at
- created_at
PartnerMe:
type: object
properties:
enabled:
type: boolean
sent_by:
type:
- object
- 'null'
properties:
code:
type: string
name:
type: string
picture:
type:
- string
- 'null'
claimed_at:
type: string
format: date-time
required:
- code
- name
- picture
- claimed_at
can_claim:
type: boolean
claim_days_left:
type: integer
partner:
type:
- object
- 'null'
properties:
code:
type: string
link:
type: string
status:
type: string
portal_url:
type: string
required:
- code
- link
- status
- portal_url
required:
- enabled
- sent_by
- can_claim
- claim_days_left
- partner
AdminPartnerCode:
type: object
properties:
code:
type: string
status:
type: string
enum:
- active
- paused
- retired
dodo_discount_code:
type:
- string
- 'null'
apple_offer_code:
type:
- string
- 'null'
play_promo_code:
type:
- string
- 'null'
waitlist:
type: boolean
required:
- code
- status
- dodo_discount_code
- apple_offer_code
- play_promo_code
- waitlist
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
UpdateAdminPartnerCommissionRequest:
type: object
properties:
action:
type: string
enum:
- hold
- release
- void
note:
type: string
maxLength: 300
required:
- action
CreateAdminPartnerCodeRequest:
type: object
properties:
code:
type: string
minLength: 3
maxLength: 40
dodo_discount_code:
type: string
maxLength: 64
apple_offer_code:
type: string
maxLength: 64
play_promo_code:
type: string
maxLength: 64
waitlist_uses:
type: integer
minimum: 0
maximum: 100000
required:
- code
ClaimPartnerRequest:
type: object
properties:
code:
type: string
minLength: 1
maxLength: 200
via:
type: string
enum:
- link_web
- play_referrer
- typed
required:
- code
AdminPartnerSync:
type: object
properties:
partners:
type: integer
paid:
type: integer
pushed:
type: integer
required:
- partners
- paid
- pushed
AdminPartner:
type: object
properties:
id:
type: string
format: uuid
display_name:
type: string
email:
type:
- string
- 'null'
picture_url:
type:
- string
- 'null'
channel_url:
type:
- string
- 'null'
country:
type:
- string
- 'null'
status:
type: string
enum:
- applied
- active
- paused
- banned
- left
rate:
type:
- number
- 'null'
tolt_partner_id:
type:
- string
- 'null'
user_id:
type:
- string
- 'null'
format: uuid
notes:
type:
- string
- 'null'
codes:
type: array
items:
$ref: '#/components/schemas/AdminPartnerCode'
referred:
type: integer
paying:
type: integer
pending_usd:
type: number
payable_usd:
type: number
paid_usd:
type: number
created_at:
type: string
format: date-time
required:
- id
- display_name
- email
- picture_url
- channel_url
- country
- status
- rate
- tolt_partner_id
- user_id
- notes
- codes
- referred
- paying
- pending_usd
- payable_usd
- paid_usd
- created_at
CreateAdminPartnerRequest:
type: object
properties:
display_name:
type: string
minLength: 1
maxLength: 80
email:
type: string
maxLength: 320
format: email
channel_url:
type: string
maxLength: 500
tolt_partner_id:
type: string
maxLength: 64
required:
- display_name
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Supabase access token