Casama AI Sites API

The sites API from Casama AI, for sites.

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 5

GET /v1/orgs/{id}/sites The workspace's published sites with their hosts and states #
GET /v1/sites/address Whether an address name is free, and why not when it isn't #
PUT /v1/pages/{id}/site Publish a page to the web at its own address (makes the page public) #
DELETE /v1/pages/{id}/site Take a site off the web: the page goes private, its address is kept #
POST /v1/site-reports Report a site by its address (no sign-in; from the sites zone's own page) #

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-sites-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-sites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Casama Sites 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: Sites
paths:
  /v1/orgs/{id}/sites:
    get:
      operationId: listSites
      tags:
      - Sites
      security:
      - bearerAuth: []
      summary: The workspace's published sites with their hosts and states
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Sites
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteList'
        '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/sites/address:
    get:
      operationId: checkSiteAddress
      tags:
      - Sites
      security:
      - bearerAuth: []
      summary: Whether an address name is free, and why not when it isn't
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: org_id
        in: query
      - schema:
          type: string
          maxLength: 63
        required: true
        name: label
        in: query
      responses:
        '200':
          description: Address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteAddressCheck'
        '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/pages/{id}/site:
    put:
      operationId: publishSite
      tags:
      - Sites
      security:
      - bearerAuth: []
      summary: Publish a page to the web at its own address (makes the page public)
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublishSiteRequest'
      responses:
        '200':
          description: Site
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Site'
        '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'
    delete:
      operationId: unpublishSite
      tags:
      - Sites
      security:
      - bearerAuth: []
      summary: 'Take a site off the web: the page goes private, its address is kept'
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Site
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Site'
        '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/site-reports:
    post:
      operationId: createSiteReport
      tags:
      - Sites
      summary: Report a site by its address (no sign-in; from the sites zone's own page)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteReportRequest'
      responses:
        '202':
          description: Report received
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteReportResult'
        '400':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Rate limited
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  schemas:
    PublishSiteRequest:
      type: object
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 63
        indexable:
          type: boolean
        badge:
          type: boolean
    SiteAddressCheck:
      type: object
      properties:
        label:
          type: string
        available:
          type: boolean
        reason:
          type:
          - string
          - 'null'
        message:
          type:
          - string
          - 'null'
        url:
          type:
          - string
          - 'null'
      required:
      - label
      - available
      - reason
      - message
      - url
    SiteReportRequest:
      type: object
      properties:
        address:
          type: string
          minLength: 3
          maxLength: 500
        reason:
          type: string
          minLength: 3
          maxLength: 1000
      required:
      - address
      - reason
    Site:
      type: object
      properties:
        page_id:
          type: string
          format: uuid
        title:
          type: string
        label:
          type:
          - string
          - 'null'
        address_url:
          type:
          - string
          - 'null'
        url:
          type:
          - string
          - 'null'
        live:
          type: boolean
        indexable:
          type: boolean
        badge:
          type: boolean
        can_index:
          type: boolean
        hosts:
          type: array
          items:
            $ref: '#/components/schemas/SiteHost'
        created_at:
          type: string
          format: date-time
      required:
      - page_id
      - title
      - label
      - address_url
      - url
      - live
      - indexable
      - badge
      - can_index
      - hosts
      - created_at
    SiteList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Site'
      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
    SiteReportResult:
      type: object
      properties:
        ok:
          type: boolean
      required:
      - ok
    SiteHost:
      type: object
      properties:
        id:
          type: string
          format: uuid
        hostname:
          type: string
        kind:
          type: string
          example: address
        is_primary:
          type: boolean
        status:
          type: string
          example: active
        status_reason:
          type:
          - string
          - 'null'
        domain_id:
          type:
          - string
          - 'null'
          format: uuid
        live:
          type: boolean
        url:
          type: string
      required:
      - id
      - hostname
      - kind
      - is_primary
      - status
      - status_reason
      - domain_id
      - live
      - url
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase access token