Casama AI Owner API

The owner API from Casama AI, for owner.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 7

GET /v1/owner/activity What's happening on this server, newest first (owner only) #
GET /v1/owner/journeys/{id} One person's path from click to paying, with every event and what they have now… #
POST /v1/install-events The app's first open or first sign-in attempt on an install (D-537) #
GET /v1/owner/alerts Which kinds of activity push to this owner's devices (owner only) #
PUT /v1/owner/alerts Switch kinds of alerts on or off, or pause them all (owner only) #
POST /v1/owner/alerts/test Send a test alert to this owner's devices (owner only) #
POST /v1/site-events A website event from casama.ai's Worker (needs the site events key) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/casama-ai:casama-ai-owner-api"
All apis
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.

Get an API 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 Specification

casama-ai-owner-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama Owner 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: owner
paths:
  /v1/owner/activity:
    get:
      operationId: ownerActivity
      tags:
      - owner
      security:
      - bearerAuth: []
      summary: What's happening on this server, newest first (owner only)
      parameters:
      - schema:
          type:
          - integer
          - 'null'
        required: false
        name: after
        in: query
      - schema:
          type:
          - integer
          - 'null'
        required: false
        name: before
        in: query
      - schema:
          type: string
          maxLength: 400
        required: false
        name: kinds
        in: query
      - schema:
          type: integer
          minimum: 1
          maximum: 200
        required: false
        name: limit
        in: query
      responses:
        '200':
          description: Activity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnerActivity'
        '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'
  /v1/owner/journeys/{id}:
    get:
      operationId: ownerJourney
      tags:
      - owner
      security:
      - bearerAuth: []
      summary: One person's path from click to paying, with every event and what they have now…
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Journey
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnerJourneyDetail'
        '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/install-events:
    post:
      operationId: postInstallEvent
      tags:
      - owner
      summary: The app's first open or first sign-in attempt on an install (D-537)
      description: No sign-in. Official builds send it once per install with a random install id, never an ad id. Counted once per install; always answers ok.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstallEventRequest'
      responses:
        '200':
          description: Counted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnerOk'
        '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'
        '429':
          description: Rate limited
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/owner/alerts:
    get:
      operationId: ownerAlertSettings
      tags:
      - owner
      security:
      - bearerAuth: []
      summary: Which kinds of activity push to this owner's devices (owner only)
      responses:
        '200':
          description: Settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnerAlertSettings'
        '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'
    put:
      operationId: setOwnerAlertSettings
      tags:
      - owner
      security:
      - bearerAuth: []
      summary: Switch kinds of alerts on or off, or pause them all (owner only)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOwnerAlertSettings'
      responses:
        '200':
          description: Settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnerAlertSettings'
        '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'
  /v1/owner/alerts/test:
    post:
      operationId: testOwnerAlert
      tags:
      - owner
      security:
      - bearerAuth: []
      summary: Send a test alert to this owner's devices (owner only)
      responses:
        '200':
          description: Sent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnerOk'
        '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'
        '429':
          description: Rate limited
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/site-events:
    post:
      operationId: postSiteEvent
      tags:
      - owner
      summary: A website event from casama.ai's Worker (needs the site events key)
      description: The key goes in the x-casama-site-key header. Servers without a key set answer 404.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteEventRequest'
      responses:
        '200':
          description: Counted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnerOk'
        '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'
        '429':
          description: Rate limited
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  schemas:
    OwnerJourneyDetail:
      type: object
      properties:
        journey:
          $ref: '#/components/schemas/OwnerJourney'
        events:
          type: array
          items:
            $ref: '#/components/schemas/OwnerEvent'
        person:
          $ref: '#/components/schemas/OwnerJourneyPerson'
      required:
      - journey
      - events
      - person
    OwnerJourney:
      type:
      - object
      - 'null'
      properties:
        id:
          type: string
        likely:
          type: boolean
        click_platform:
          type:
          - string
          - 'null'
        platform:
          type:
          - string
          - 'null'
        distribution:
          type:
          - string
          - 'null'
        app_version:
          type:
          - string
          - 'null'
        country:
          type:
          - string
          - 'null'
        source:
          type:
          - string
          - 'null'
        medium:
          type:
          - string
          - 'null'
        campaign:
          type:
          - string
          - 'null'
        landing:
          type:
          - string
          - 'null'
        page:
          type:
          - string
          - 'null'
        first_click_at:
          type:
          - string
          - 'null'
        first_open_at:
          type:
          - string
          - 'null'
        signin_started_at:
          type:
          - string
          - 'null'
        signup_at:
          type:
          - string
          - 'null'
        steps:
          $ref: '#/components/schemas/OwnerJourneySteps'
      required:
      - id
      - likely
      - click_platform
      - platform
      - distribution
      - app_version
      - country
      - source
      - medium
      - campaign
      - landing
      - page
      - first_click_at
      - first_open_at
      - signin_started_at
      - signup_at
      - steps
    OwnerJourneyPerson:
      type:
      - object
      - 'null'
      properties:
        email:
          type:
          - string
          - 'null'
        name:
          type:
          - string
          - 'null'
        created_at:
          type:
          - string
          - 'null'
        plan:
          type:
          - string
          - 'null'
        plan_status:
          type:
          - string
          - 'null'
        messages:
          type: integer
        bots:
          type: integer
        devices:
          type: array
          items:
            type: string
        last_active_at:
          type:
          - string
          - 'null'
      required:
      - email
      - name
      - created_at
      - plan
      - plan_status
      - messages
      - bots
      - devices
      - last_active_at
    OwnerEvent:
      type: object
      properties:
        id:
          type: integer
        kind:
          type: string
        label:
          type:
          - string
          - 'null'
        user_id:
          type:
          - string
          - 'null'
        detail:
          type: object
          additionalProperties: {}
        journey_id:
          type:
          - string
          - 'null'
        journey:
          $ref: '#/components/schemas/OwnerJourney'
        title:
          type: string
        body:
          type: string
        created_at:
          type: string
      required:
      - id
      - kind
      - label
      - user_id
      - detail
      - journey_id
      - journey
      - title
      - body
      - created_at
    OwnerAlertSettings:
      type: object
      properties:
        paused:
          type: boolean
        kinds:
          type: array
          items:
            $ref: '#/components/schemas/OwnerAlertKind'
      required:
      - paused
      - kinds
    OwnerOk:
      type: object
      properties:
        ok:
          type: boolean
          enum:
          - true
      required:
      - ok
    OwnerJourneySteps:
      type: object
      properties:
        click:
          type: boolean
        open:
          type: boolean
        signup:
          type: boolean
        chat:
          type: boolean
        paying:
          type: boolean
      required:
      - click
      - open
      - signup
      - chat
      - paying
    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
    OwnerActivity:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/OwnerEvent'
        today:
          type: object
          additionalProperties:
            type: integer
      required:
      - items
      - today
    SiteEventRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
          - download_click
          - qr_open
          - start_click
          - invite_open
          - partner_interest
          - creator_open
          - gift_open
          - newsletter_confirmed
        platform:
          type: string
          maxLength: 40
        page:
          type: string
          maxLength: 120
        country:
          type: string
          maxLength: 8
        mobile:
          type: boolean
        click_id:
          type: string
          pattern: ^[A-Za-z0-9_-]{8,64}$
        source:
          type: string
          maxLength: 80
        medium:
          type: string
          maxLength: 60
        campaign:
          type: string
          maxLength: 100
      required:
      - kind
    UpdateOwnerAlertSettings:
      type: object
      properties:
        paused:
          type: boolean
        kinds:
          type: object
          additionalProperties:
            type: boolean
    InstallEventRequest:
      type: object
      properties:
        event:
          type: string
          enum:
          - first_open
          - signin_started
        install_id:
          type: string
          pattern: ^[A-Za-z0-9_-]{8,64}$
        click_id:
          type: string
          pattern: ^[A-Za-z0-9_-]{8,64}$
        reinstall:
          type: boolean
        platform:
          type: string
          enum:
          - ios
          - android
          - macos
          - windows
          - linux
          - web
        distribution:
          type: string
          maxLength: 40
        version:
          type: string
          maxLength: 40
        locale:
          type: string
          maxLength: 20
        source:
          type: string
          maxLength: 80
        medium:
          type: string
          maxLength: 60
        campaign:
          type: string
          maxLength: 100
        landing:
          type: string
          maxLength: 120
      required:
      - event
      - install_id
      - platform
    OwnerAlertKind:
      type: object
      properties:
        kind:
          type: string
        'on':
          type: boolean
        default_on:
          type: boolean
      required:
      - kind
      - 'on'
      - default_on
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token