Cadencz Brains API

The brains API from Cadencz — 4 operation(s) for brains.

Operations 8

GET /api/v1/brains List Brains #
POST /api/v1/brains Create a Brain #
GET /api/v1/brains/{brain_id} Get a Brain #
DELETE /api/v1/brains/{brain_id} Delete a Brain #
GET /api/v1/brains/{brain_id}/sources List Brain sources #
POST /api/v1/brains/{brain_id}/sources Add a Brain source #
PATCH /api/v1/brains/{brain_id}/sources/{source_id} Update a Brain source #
DELETE /api/v1/brains/{brain_id}/sources/{source_id} Delete a Brain source #

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/cadencz-com:cadencz-com-brains-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cadencz-com-brains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cadencz Brains API
  description: Cadencz Phase 0 API. Frontend developers can use this Swagger page as the live request/response contract. Click `Authorize` and paste a Supabase access token for user-scoped endpoints.
  version: 0.1.0
tags:
- name: brains
paths:
  /api/v1/brains:
    get:
      tags:
      - brains
      summary: List Brains
      operationId: list_brains_api_v1_brains_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/BrainRead'
                type: array
                title: Response List Brains Api V1 Brains Get
        '401':
          description: Missing or invalid Supabase bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - SupabaseBearerAuth: []
    post:
      tags:
      - brains
      summary: Create a Brain
      operationId: create_brain_api_v1_brains_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BrainCreate'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrainRead'
        '401':
          description: Missing or invalid Supabase bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SupabaseBearerAuth: []
  /api/v1/brains/{brain_id}:
    get:
      tags:
      - brains
      summary: Get a Brain
      operationId: get_brain_api_v1_brains__brain_id__get
      parameters:
      - name: brain_id
        in: path
        required: true
        schema:
          type: string
          title: Brain Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrainRead'
        '401':
          description: Missing or invalid Supabase bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SupabaseBearerAuth: []
    delete:
      tags:
      - brains
      summary: Delete a Brain
      operationId: delete_brain_api_v1_brains__brain_id__delete
      parameters:
      - name: brain_id
        in: path
        required: true
        schema:
          type: string
          title: Brain Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
        '401':
          description: Missing or invalid Supabase bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SupabaseBearerAuth: []
  /api/v1/brains/{brain_id}/sources:
    get:
      tags:
      - brains
      summary: List Brain sources
      operationId: list_brain_sources_api_v1_brains__brain_id__sources_get
      parameters:
      - name: brain_id
        in: path
        required: true
        schema:
          type: string
          title: Brain Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BrainSourceRead'
                title: Response List Brain Sources Api V1 Brains  Brain Id  Sources Get
        '401':
          description: Missing or invalid Supabase bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SupabaseBearerAuth: []
    post:
      tags:
      - brains
      summary: Add a Brain source
      operationId: create_brain_source_api_v1_brains__brain_id__sources_post
      parameters:
      - name: brain_id
        in: path
        required: true
        schema:
          type: string
          title: Brain Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BrainSourceCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrainSourceRead'
        '401':
          description: Missing or invalid Supabase bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SupabaseBearerAuth: []
  /api/v1/brains/{brain_id}/sources/{source_id}:
    patch:
      tags:
      - brains
      summary: Update a Brain source
      operationId: update_brain_source_api_v1_brains__brain_id__sources__source_id__patch
      parameters:
      - name: brain_id
        in: path
        required: true
        schema:
          type: string
          title: Brain Id
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          title: Source Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BrainSourceUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrainSourceRead'
        '401':
          description: Missing or invalid Supabase bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SupabaseBearerAuth: []
    delete:
      tags:
      - brains
      summary: Delete a Brain source
      operationId: delete_brain_source_api_v1_brains__brain_id__sources__source_id__delete
      parameters:
      - name: brain_id
        in: path
        required: true
        schema:
          type: string
          title: Brain Id
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          title: Source Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
        '401':
          description: Missing or invalid Supabase bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - SupabaseBearerAuth: []
components:
  schemas:
    BrainCreate:
      properties:
        name:
          type: string
          maxLength: 160
          minLength: 1
          title: Name
          examples:
          - Orbit CRM
        tagline:
          type: string
          maxLength: 1000
          title: Tagline
          default: ''
          examples:
          - A calm CRM for founder-led sales teams.
        emoji:
          type: string
          maxLength: 16
          title: Emoji
          default: '*'
        accent:
          type: string
          maxLength: 16
          title: Accent
          default: '#4338ca'
      type: object
      required:
      - name
      title: BrainCreate
    BrainSourceRead:
      properties:
        id:
          type: string
          title: Id
        brain_id:
          type: string
          title: Brain Id
        kind:
          type: string
          title: Kind
        name:
          type: string
          title: Name
        detail:
          type: string
          title: Detail
        status:
          type: string
          title: Status
        excerpt:
          type: string
          title: Excerpt
        content:
          type: string
          title: Content
        fact_count:
          type: integer
          title: Fact Count
        summary:
          type: string
          title: Summary
        summary_status:
          type: string
          enum:
          - ready
          - fallback
          - unavailable
          title: Summary Status
        summary_provider:
          anyOf:
          - type: string
          - type: 'null'
          title: Summary Provider
        summary_model:
          anyOf:
          - type: string
          - type: 'null'
          title: Summary Model
        summary_updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Summary Updated At
        added_at:
          type: string
          format: date-time
          title: Added At
      type: object
      required:
      - id
      - brain_id
      - kind
      - name
      - detail
      - status
      - excerpt
      - content
      - fact_count
      - summary
      - summary_status
      - summary_provider
      - summary_model
      - summary_updated_at
      - added_at
      title: BrainSourceRead
      example:
        added_at: '2026-07-08T10:30:00Z'
        brain_id: brain_123
        content: Orbit helps founders remember follow-ups.
        detail: TEXT - pasted notes
        excerpt: Orbit helps founders remember follow-ups.
        fact_count: 3
        id: src_123
        kind: text
        name: positioning-notes.txt
        status: indexed
        summary: Orbit is a CRM that helps founders remember sales follow-ups.
        summary_model: deepseek-v4-flash
        summary_provider: deepseek
        summary_status: ready
        summary_updated_at: '2026-07-08T10:30:01Z'
    StatusResponse:
      properties:
        status:
          type: string
          title: Status
      type: object
      required:
      - status
      title: StatusResponse
      example:
        status: ok
    BrainSourceUpdate:
      properties:
        name:
          type: string
          maxLength: 240
          minLength: 1
          title: Name
        detail:
          type: string
          maxLength: 4000
          title: Detail
          default: ''
        excerpt:
          type: string
          maxLength: 8000
          title: Excerpt
          default: ''
        content:
          type: string
          maxLength: 250000
          title: Content
          default: ''
      type: object
      required:
      - name
      title: BrainSourceUpdate
    BrainRead:
      properties:
        id:
          type: string
          title: Id
        workspace_id:
          type: string
          title: Workspace Id
        name:
          type: string
          title: Name
        tagline:
          type: string
          title: Tagline
        emoji:
          type: string
          title: Emoji
        accent:
          type: string
          title: Accent
        source_count:
          type: integer
          title: Source Count
        fact_count:
          type: integer
          title: Fact Count
        site_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Site Url
        updated_at:
          type: string
          format: date-time
          title: Updated At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - workspace_id
      - name
      - tagline
      - emoji
      - accent
      - source_count
      - fact_count
      - updated_at
      - created_at
      title: BrainRead
      example:
        accent: '#4338ca'
        created_at: '2026-07-08T10:00:00Z'
        emoji: '*'
        fact_count: 14
        id: brain_123
        name: Orbit CRM
        source_count: 2
        tagline: A calm CRM for founder-led sales teams.
        updated_at: '2026-07-08T10:30:00Z'
        workspace_id: wks_123
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ErrorResponse:
      properties:
        detail:
          anyOf:
          - type: string
          - additionalProperties: true
            type: object
          - items: {}
            type: array
          title: Detail
      type: object
      required:
      - detail
      title: ErrorResponse
      example:
        detail: Authorization header is required.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BrainSourceCreate:
      properties:
        kind:
          type: string
          maxLength: 40
          minLength: 1
          title: Kind
          examples:
          - text
        name:
          type: string
          maxLength: 240
          minLength: 1
          title: Name
          examples:
          - positioning-notes.txt
        detail:
          type: string
          maxLength: 4000
          title: Detail
          default: ''
          examples:
          - TEXT - pasted notes
        excerpt:
          type: string
          maxLength: 8000
          title: Excerpt
          default: ''
          examples:
          - Orbit helps founders remember follow-ups.
        content:
          type: string
          maxLength: 250000
          title: Content
          default: ''
          examples:
          - Full source text to ground generation.
      type: object
      required:
      - kind
      - name
      title: BrainSourceCreate
  securitySchemes:
    SupabaseBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Supabase access token
      description: 'Send the Supabase access token as `Authorization: Bearer <token>`.'
    DodoWebhookSignature:
      type: apiKey
      in: header
      name: webhook-signature
      description: Dodo Payments webhook signature header.