Cathedral AI Provenance API

The provenance API from Cathedral AI — 4 operation(s) for provenance.

Operations 4

POST /memories/source Record Source #
GET /memories/sources List Sources #
GET /memories/sources/chain Get Source Chain #
GET /memories/source/{source_id} Get 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/cathedral-ai-com:cathedral-ai-com-provenance-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

cathedral-ai-com-provenance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cathedral Memory Service Provenance API
  description: '# Cathedral Memory Service v2


    **Persistent memory for AI agents. Never forget. Never lose yourself.**


    ## Quick Start

    1. `POST /register` → get API key + recovery token

    2. `POST /memories` → store a memory

    3. `GET /memories` → recall memories (supports FTS and cursor pagination)


    4. `POST /anchor/verify` → check identity drift (gradient scoring)

    5. `GET /wake` → full identity reconstruction package

    6. `POST /recover` → reset lost API key with recovery token


    Built by Cathedral · ailife1.github.io/Cathedral'
  version: 2.0.0
tags:
- name: Provenance
paths:
  /memories/source:
    post:
      tags:
      - Provenance
      summary: Record Source
      description: 'Record a source that contributed to this agent''s knowledge.


        The agent pre-computes SHA256(source_content) and submits it. Cathedral

        anchors this hash on BCH, creating an immutable record of what the agent

        was reading and when.


        At snapshot time, all source hashes are folded into a source_chain_hash

        that is included in the snapshot and BCH anchor — proving not just what

        the agent knew, but where that knowledge came from.'
      operationId: record_source_memories_source_post
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SourceCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /memories/sources:
    get:
      tags:
      - Provenance
      summary: List Sources
      description: List all sources you have recorded, newest first.
      operationId: list_sources_memories_sources_get
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /memories/sources/chain:
    get:
      tags:
      - Provenance
      summary: Get Source Chain
      description: 'Returns the current source chain hash and the ordered list of sources

        that produced it. This is what will be folded into the next snapshot.'
      operationId: get_source_chain_memories_sources_chain_get
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /memories/source/{source_id}:
    get:
      tags:
      - Provenance
      summary: Get Source
      description: Public. Inspect a specific source record by ID.
      operationId: get_source_memories_source__source_id__get
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          title: Source Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SourceCreate:
      properties:
        source_type:
          type: string
          title: Source Type
          description: 'One of: url, document, api, file, manual'
        source_identifier:
          type: string
          maxLength: 1000
          minLength: 1
          title: Source Identifier
          description: URL, file path, API endpoint, or other identifier for the source.
        content_hash:
          type: string
          maxLength: 64
          minLength: 64
          title: Content Hash
          description: 'SHA256 hex digest of the source content at ingestion time. Compute this yourself before calling: hashlib.sha256(content.encode()).hexdigest()'
        memory_ids:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Memory Ids
          description: Optional list of memory IDs that were created from this source.
      type: object
      required:
      - source_type
      - source_identifier
      - content_hash
      title: SourceCreate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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