Casama AI Cards API

The cards API from Casama AI, for cards.

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 12

GET /v1/live-cards The latest data of the live cards on screen (up to 20 ids, comma separated) #
POST /v1/live-cards/{id}/refresh Fetch a card's data again (through the shared cache), or another of its views. #
POST /v1/live-cards/{id}/report Report wrong data on a card (its provider and data are kept, no words) #
POST /v1/live-cards/{id}/pin Pin a card to the person's widgets: a Canvas the server keeps fresh without the… #
DELETE /v1/live-cards/{id}/pin Take a pinned card off the widgets #
POST /v1/live-cards/{id}/watch Watch a Fares card's price: the server checks it every few hours (free… #
DELETE /v1/live-cards/{id}/watch Stop watching a Fares card's price #
GET /v1/me/fare-watches The person's active price watches #
GET /v1/me/card-prefs The person's home city and units for cards #
PUT /v1/me/card-prefs Set the person's home city (a city, never a street) and units for cards #
GET /v1/airports Cities and airports matching what was typed, for a flight search's place fields… #
GET /v1/places Cities matching a name, for picking a home city #

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-cards-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-cards-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama Cards 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: Cards
paths:
  /v1/live-cards:
    get:
      operationId: getLiveCards
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: The latest data of the live cards on screen (up to 20 ids, comma separated)
      parameters:
      - schema:
          type: string
          maxLength: 800
        required: true
        name: ids
        in: query
      responses:
        '200':
          description: The cards
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiveCardList'
        '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/live-cards/{id}/refresh:
    post:
      operationId: refreshLiveCard
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: Fetch a card's data again (through the shared cache), or another of its views.
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshLiveCard'
      responses:
        '200':
          description: The card
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiveCard'
        '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'
  /v1/live-cards/{id}/report:
    post:
      operationId: reportLiveCard
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: Report wrong data on a card (its provider and data are kept, no words)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Reported
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                required:
                - ok
        '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/live-cards/{id}/pin:
    post:
      operationId: pinLiveCard
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: 'Pin a card to the person''s widgets: a Canvas the server keeps fresh without the…'
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PinLiveCard'
      responses:
        '200':
          description: Pinned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PinnedLiveCard'
        '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: unpinLiveCard
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: Take a pinned card off the widgets
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Unpinned
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                required:
                - ok
        '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/live-cards/{id}/watch:
    post:
      operationId: watchLiveCard
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: 'Watch a Fares card''s price: the server checks it every few hours (free…'
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WatchFares'
      responses:
        '200':
          description: Watching
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FareWatch'
        '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: unwatchLiveCard
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: Stop watching a Fares card's price
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Stopped
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                required:
                - ok
        '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/fare-watches:
    get:
      operationId: listFareWatches
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: The person's active price watches
      responses:
        '200':
          description: Watches
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FareWatchList'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/me/card-prefs:
    get:
      operationId: getCardPrefs
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: The person's home city and units for cards
      responses:
        '200':
          description: Preferences
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardPrefs'
        '401':
          description: Not authenticated
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    put:
      operationId: updateCardPrefs
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: Set the person's home city (a city, never a street) and units for cards
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCardPrefs'
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardPrefs'
        '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/airports:
    get:
      operationId: searchAirports
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: Cities and airports matching what was typed, for a flight search's place fields…
      parameters:
      - schema:
          type: string
          minLength: 2
          maxLength: 80
        required: true
        name: q
        in: query
      responses:
        '200':
          description: Airports
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AirportList'
        '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/places:
    get:
      operationId: searchPlaces
      tags:
      - Cards
      security:
      - bearerAuth: []
      summary: Cities matching a name, for picking a home city
      parameters:
      - schema:
          type: string
          minLength: 2
          maxLength: 120
        required: true
        name: q
        in: query
      responses:
        '200':
          description: Places
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlaceList'
        '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'
components:
  schemas:
    PlaceList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Place'
      required:
      - items
    PinLiveCard:
      type: object
      properties:
        units:
          $ref: '#/components/schemas/CardUnits'
    CardUnits:
      type: object
      properties:
        temp:
          type: string
          enum:
          - C
          - F
        wind:
          type: string
          enum:
          - kph
          - mph
          - ms
          - kn
        precip:
          type: string
          enum:
          - mm
          - in
        distance:
          type: string
          enum:
          - km
          - mi
    RefreshLiveCard:
      type: object
      properties:
        view:
          type: string
          maxLength: 20
        force:
          type: boolean
    LiveCard:
      type: object
      properties:
        id:
          type: string
          format: uuid
        card:
          $ref: '#/components/schemas/LiveCardData'
        fetched_at:
          type: string
          format: date-time
        error:
          type:
          - string
          - 'null'
        pinned:
          type: boolean
      required:
      - id
      - card
      - fetched_at
      - error
      - pinned
    CardPrefs:
      type: object
      properties:
        home_place:
          type:
          - object
          - 'null'
          properties:
            name:
              type: string
            region:
              type:
              - string
              - 'null'
            country:
              type:
              - string
              - 'null'
            country_name:
              type:
              - string
              - 'null'
            lat:
              type: number
            lng:
              type: number
            tz:
              type:
              - string
              - 'null'
          required:
          - name
          - lat
          - lng
        units:
          type:
          - object
          - 'null'
          properties:
            temp:
              type: string
              enum:
              - C
              - F
            wind:
              type: string
              enum:
              - kph
              - mph
              - ms
              - kn
            precip:
              type: string
              enum:
              - mm
              - in
            distance:
              type: string
              enum:
              - km
              - mi
      required:
      - home_place
      - units
    LiveCardData:
      type: object
      additionalProperties: {}
      description: The card's component, with its `live` block
    LiveCardList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/LiveCard'
      required:
      - items
    FareWatch:
      type: object
      properties:
        id:
          type: string
          format: uuid
        card_id:
          type: string
          format: uuid
        bot_id:
          type:
          - string
          - 'null'
          format: uuid
        route:
          type: string
        below:
          type:
          - number
          - 'null'
        currency:
          type: string
        first_price:
          type:
          - number
          - 'null'
        last_price:
          type:
          - number
          - 'null'
        last_checked_at:
          type:
          - string
          - 'null'
          format: date-time
        ends_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
        low_price:
          type:
          - number
          - 'null'
        history:
          type: array
          items:
            type: array
            items:
              type: number
      required:
      - id
      - card_id
      - bot_id
      - route
      - below
      - currency
      - first_price
      - last_price
      - last_checked_at
      - ends_at
      - created_at
    AirportList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/AirportHit'
      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
    UpdateCardPrefs:
      type: object
      properties:
        home_place:
          type:
          - object
          - 'null'
          properties:
            name:
              type: string
            region:
              type:
              - string
              - 'null'
            country:
              type:
              - string
              - 'null'
            country_name:
              type:
              - string
              - 'null'
            lat:
              type: number
            lng:
              type: number
            tz:
              type:
              - string
              - 'null'
          required:
          - name
          - lat
          - lng
        units:
          type:
          - object
          - 'null'
          properties:
            temp:
              type: string
              enum:
              - C
              - F
            wind:
              type: string
              enum:
              - kph
              - mph
              - ms
              - kn
            precip:
              type: string
              enum:
              - mm
              - in
            distance:
              type: string
              enum:
              - km
              - mi
    Place:
      type: object
      properties:
        name:
          type: string
        region:
          type:
          - string
          - 'null'
        country:
          type:
          - string
          - 'null'
        country_name:
          type:
          - string
          - 'null'
        lat:
          type: number
        lng:
          type: number
        tz:
          type:
          - string
          - 'null'
      required:
      - name
      - lat
      - lng
    FareWatchList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/FareWatch'
      required:
      - items
    AirportHit:
      type: object
      properties:
        label:
          type: string
        codes:
          type: array
          items:
            type: string
        country:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
          - city
          - airport
      required:
      - label
      - codes
      - country
      - kind
    WatchFares:
      type: object
      properties:
        below:
          type:
          - number
          - 'null'
          exclusiveMinimum: 0
          maximum: 10000000
    PinnedLiveCard:
      type: object
      properties:
        canvas_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
          - waiting
          - shown
          - paused
      required:
      - canvas_id
      - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token