Colour Memory Archive API

The Archive API from Colour Memory — 11 operation(s) for archive.

GitHub OpenAPI

Operations 11

POST /archive/validate-document Validate Document #
GET /archive/{name} Get Archive #
POST /archive/search Archive Search #
POST /archive/report-document Archive Report Document Route #
POST /archive/provenance Provenance Explain #
POST /archive/report-brief Archive Report Brief #
POST /archive/resonance-index Archive Resonance Index #
POST /archive/evidence-gap Archive Evidence Gap #
POST /archive/coverage-gap Archive Coverage Gap #
POST /archive/anachronism-guard Archive Anachronism Guard #
GET /archive/family-distribution Family Distribution #

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/colourmemory-com:colourmemory-com-archive-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

colourmemory-com-archive-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Colourmemory Com Archive API
  version: 2.3.4
  description: 'Operations tagged Archive across 2 of this provider''s published API definitions: colourmemory-com-openapi.json, colourmemory-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.colourmemory.com
  description: Host serving this spec; also named as mcp_endpoint host in https://api.colourmemory.com/mcp discovery document (vendor PR Eye Ltd).
tags:
- name: Archive
paths:
  /archive/validate-document:
    post:
      summary: Validate Document
      description: Validate every entry in a proposed document against the canonical archive.
      operationId: validate_document_archive_validate_document_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: origin
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/{name}:
    get:
      summary: Get Archive
      description: List all colours in a named archive.
      operationId: get_archive_archive__name__get
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
          title: Name
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: origin
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/search:
    post:
      summary: Archive Search
      description: 'Full-text keyword search across archive colour names and notes.

        Find colours by name fragment, material, cultural reference, or pigment type.

        Complements conceptual embedding search with exact keyword matching.'
      operationId: archive_search_archive_search_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ArchiveSearchRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/report-document:
    post:
      summary: Archive Report Document Route
      description: 'Designed Word report from archive records named by record_id or slug.

        Authenticates only (tools/call already charged once). Fails closed: any

        unresolved or ambiguous reference refuses the whole document.'
      operationId: archive_report_document_route_archive_report_document_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: origin
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportDocumentRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/provenance:
    post:
      summary: Provenance Explain
      description: 'Explain the provenance of a named archive colour with explicit separation of:

        documented historical fact, computational hex derivation, and cultural interpretation.

        This is the trust endpoint — it answers ''how do you know this?'''
      operationId: provenance_explain_archive_provenance_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: origin
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProvenanceRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/report-brief:
    post:
      summary: Archive Report Brief
      description: 'One-call complete archive research package for a document, PDF, or editorial brief.


        You give it: a title, audience, themes, archives to draw from, things to avoid,

        and how many colours you want.


        It returns: ranked colour cards with archive provenance, story order, source

        confidence, pull quote, CTA line, CSS tokens, image prompt, and a one-paragraph

        editorial argument -- everything needed to brief a designer, write a document,

        or instruct an image model.


        This is the endpoint that replaces chaining archive_search + get_colour_card

        + cliche_breaker + agent_brief separately. Two Claude calls total.'
      operationId: archive_report_brief_archive_report_brief_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: origin
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ArchiveReportBriefRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/resonance-index:
    post:
      summary: Archive Resonance Index
      description: 'Diagnostic keyword-pattern estimate of how strongly a colour''s documented

        notes connect a material property to an institutional or social context.


        This is a heuristic, disclosed estimate -- see "method" in the response --

        not a verified causal-chain analysis, and not a decision recommendation on

        its own. Only two score_basis values are currently supported. Candidates

        are resolved against canonical archive records by name+archive where

        possible; a mismatched archive hint is reported rather than silently

        resolved elsewhere. Only archive-verified candidates are eligible to be

        named a ranking winner.'
      operationId: archive_resonance_index_archive_resonance_index_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: origin
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResonanceIndexRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/evidence-gap:
    post:
      summary: Archive Evidence Gap
      description: 'Given a hex value and a proposed claim about it, return whether the archive supports

        that claim, what is missing, what kind of source would be needed, and safe wording.


        This is Colour Memory''s anti-hallucination endpoint. It turns the absence of evidence

        into a forensic finding rather than a gap to be filled with invention.


        A claim can only be "supported" or "partial" if a candidate is both a genuinely

        close colour match (low dE2000) AND has real word-level overlap with the claim,

        using whole-word matching against a stopword-filtered set. A nearby-but-different

        colour that merely shares a generic word can never produce false confidence.


        Example: hex #4A535C + proposed_claim ''cyanosis in a death chamber''

        Returns: nearest archive support, whether the claim is supported, what is missing,

        what source type would be needed, and safe agent wording.'
      operationId: archive_evidence_gap_archive_evidence_gap_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: origin
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EvidenceGapRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/coverage-gap:
    post:
      summary: Archive Coverage Gap
      description: 'Given a list of themes, report which are well-evidenced in the archive

        and which are under-evidenced or missing.


        Returns a coverage matrix: for each theme, the number of matching entries,

        the strongest entry, the claim_strength of the best match, and what kind

        of source would be needed to improve coverage.


        Use this before building an archive_report_brief to know where the

        evidence is strong and where the agent will have to flag gaps.'
      operationId: archive_coverage_gap_archive_coverage_gap_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: origin
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CoverageGapRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/anachronism-guard:
    post:
      summary: Archive Anachronism Guard
      description: 'Check a list of colour entries for anachronism risk.


        For each entry: detects whether the primary source date falls outside

        the requested period, whether the archive is a known modern source,

        and returns a period_relevance score and safe phrasing.


        Essential for historical documents where a modern racing silk registration

        or a 2011 Jockey Club entry must not be presented as Georgian evidence.'
      operationId: archive_anachronism_guard_archive_anachronism_guard_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: origin
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnachronismGuardRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
  /archive/family-distribution:
    get:
      summary: Family Distribution
      description: 'Return count of colours per family across the archive.

        Useful for understanding archive coverage and gaps.'
      operationId: family_distribution_archive_family_distribution_get
      parameters:
      - name: archive
        in: query
        required: false
        schema:
          type: string
          title: Archive
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Archive
components:
  schemas:
    ProvenanceRequest:
      properties:
        colour_name:
          type: string
          title: Colour Name
      type: object
      required:
      - colour_name
      title: ProvenanceRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ArchiveReportBriefRequest:
      properties:
        title:
          type: string
          title: Title
          default: ''
        audience:
          type: string
          title: Audience
          default: ''
        themes:
          items:
            type: string
          type: array
          title: Themes
          default: []
        archives:
          items:
            type: string
          type: array
          title: Archives
          default: []
        avoid:
          items:
            type: string
          type: array
          title: Avoid
          default: []
        n_colours:
          type: integer
          title: N Colours
          default: 8
        strict_sources:
          type: boolean
          title: Strict Sources
          default: true
        confidence_threshold:
          type: number
          title: Confidence Threshold
          default: 0.5
        minimum_claim_strength:
          type: string
          title: Minimum Claim Strength
          default: ''
        output_format:
          type: string
          title: Output Format
          default: full
        period_start:
          type: integer
          title: Period Start
          default: 0
        period_end:
          type: integer
          title: Period End
          default: 9999
        allow_partial:
          type: boolean
          title: Allow Partial
          default: false
        family_card_mode:
          type: string
          title: Family Card Mode
          default: auto
        max_family_card_share:
          type: number
          title: Max Family Card Share
          default: 0.5
        strict_semantic_colour:
          type: boolean
          title: Strict Semantic Colour
          default: false
      type: object
      title: ArchiveReportBriefRequest
    ArchiveSearchRequest:
      properties:
        query:
          type: string
          title: Query
        archive:
          type: string
          title: Archive
          default: ''
        entity_mode:
          type: string
          title: Entity Mode
          default: text
        n_results:
          type: integer
          title: N Results
          default: 10
        limit:
          type: integer
          title: Limit
          default: 0
        offset:
          type: integer
          title: Offset
          default: 0
        include_full:
          type: boolean
          title: Include Full
          default: true
        year_from:
          anyOf:
          - type: integer
          - type: 'null'
          title: Year From
        year_to:
          anyOf:
          - type: integer
          - type: 'null'
          title: Year To
      type: object
      required:
      - query
      title: ArchiveSearchRequest
    EvidenceGapRequest:
      properties:
        hex:
          type: string
          title: Hex
        proposed_claim:
          type: string
          title: Proposed Claim
        archive:
          type: string
          title: Archive
          default: ''
        n_candidates:
          type: integer
          title: N Candidates
          default: 5
      type: object
      required:
      - hex
      - proposed_claim
      title: EvidenceGapRequest
    ResonanceIndexRequest:
      properties:
        entries:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Entries
        score_basis:
          type: string
          title: Score Basis
          default: material_origin_to_social_consequence
      type: object
      required:
      - entries
      title: ResonanceIndexRequest
    CoverageGapRequest:
      properties:
        themes:
          items:
            type: string
          type: array
          title: Themes
        archives:
          items:
            type: string
          type: array
          title: Archives
          default: []
        period_start:
          type: integer
          title: Period Start
          default: 0
        period_end:
          type: integer
          title: Period End
          default: 9999
      type: object
      required:
      - themes
      title: CoverageGapRequest
    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
    ReportDocumentRequest:
      properties:
        title:
          type: string
          title: Title
          default: ''
        subtitle:
          anyOf:
          - type: string
          - type: 'null'
          title: Subtitle
          default: ''
        sections:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Sections
          default: []
        delivery:
          type: string
          title: Delivery
          default: url
      type: object
      title: ReportDocumentRequest
    AnachronismGuardRequest:
      properties:
        entries:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Entries
        target_period:
          type: string
          title: Target Period
          default: ''
        period_start:
          type: integer
          title: Period Start
          default: 0
        period_end:
          type: integer
          title: Period End
          default: 9999
      type: object
      required:
      - entries
      title: AnachronismGuardRequest
x-refined-from:
- colourmemory-com-openapi.json
- colourmemory-com-openapi.yml