Archivist AI Entities API

The entities API from Archivist AI — 4 operation(s) for entities.

Operations 5

GET /v1/entities List Entities #
GET /v1/entities/{entity_id}/properties Get Entity Properties #
PATCH /v1/entities/{entity_id}/properties Update Entity Properties Route #
GET /v1/entities/{entity_id}/timeline Get Entity Timeline #
GET /v1/entities/{entity_id}/moments Get Entity Moments #

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/myarchivist-ai:myarchivist-ai-entities-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

myarchivist-ai-entities-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Archivist Public Entities API
  description: Public API for Archivist - Tabletop RPG Campaign Management
  version: 1.0.0
tags:
- name: Entities
paths:
  /v1/entities:
    get:
      tags:
      - Entities
      summary: List Entities
      operationId: list_entities_v1_entities_get
      security:
      - HTTPBearer: []
      parameters:
      - name: campaign_id
        in: query
        required: true
        schema:
          type: string
          title: Campaign Id
      - name: type
        in: query
        required: true
        schema:
          enum:
          - characters
          - factions
          - locations
          - items
          type: string
          description: Entity type
          title: Type
        description: Entity type
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Case-insensitive name search
          title: Search
        description: Case-insensitive name search
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Limit
      - 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'
  /v1/entities/{entity_id}/properties:
    get:
      tags:
      - Entities
      summary: Get Entity Properties
      description: 'Property tables (Identity / Connections / General) for one compendium entity.


        Field definitions are per-campaign and per-entity-type (the campaign

        chooses which catalog fields are enabled); values are per-entity. Fields

        with no stored value are returned with `value: null`. Connection fields

        also return `connections: [{id, name, type}]`.'
      operationId: get_entity_properties_v1_entities__entity_id__properties_get
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      - name: campaign_id
        in: query
        required: true
        schema:
          type: string
          title: Campaign Id
      - name: type
        in: query
        required: true
        schema:
          enum:
          - characters
          - factions
          - locations
          - items
          type: string
          description: Entity type
          title: Type
        description: Entity type
      - 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:
                $ref: '#/components/schemas/EntityPropertiesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Entities
      summary: Update Entity Properties Route
      description: 'Partially update an entity''s properties; returns the updated tables.


        Only the fields named in `properties` change. See EntityPropertiesUpdate

        for the accepted value shapes per field type.'
      operationId: update_entity_properties_route_v1_entities__entity_id__properties_patch
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      - name: campaign_id
        in: query
        required: true
        schema:
          type: string
          title: Campaign Id
      - name: type
        in: query
        required: true
        schema:
          enum:
          - characters
          - factions
          - locations
          - items
          type: string
          description: Entity type
          title: Type
        description: Entity type
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityPropertiesUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityPropertiesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/entities/{entity_id}/timeline:
    get:
      tags:
      - Entities
      summary: Get Entity Timeline
      description: 'Sessions whose step beats wikilink to this compendium entity.


        Product-view only. Assembled in one shot from the Link table — not a

        paginated listing of every campaign beat.'
      operationId: get_entity_timeline_v1_entities__entity_id__timeline_get
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      - name: campaign_id
        in: query
        required: true
        schema:
          type: string
          title: Campaign Id
      - name: type
        in: query
        required: true
        schema:
          enum:
          - characters
          - factions
          - locations
          - items
          type: string
          description: Entity type
          title: Type
        description: Entity type
      - 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:
                $ref: '#/components/schemas/EntityTimelineResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/entities/{entity_id}/moments:
    get:
      tags:
      - Entities
      summary: Get Entity Moments
      description: 'Key moments that wikilink to this compendium entity.


        Product-view only. Filtered via the Link table (not moment_* join tables).'
      operationId: get_entity_moments_v1_entities__entity_id__moments_get
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      - name: campaign_id
        in: query
        required: true
        schema:
          type: string
          title: Campaign Id
      - name: type
        in: query
        required: true
        schema:
          enum:
          - characters
          - factions
          - locations
          - items
          type: string
          description: Entity type
          title: Type
        description: Entity type
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Size
      - 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:
                $ref: '#/components/schemas/PaginatedResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EntityTimelineBeatParent:
      properties:
        id:
          type: string
          title: Id
        label:
          type: string
          title: Label
        index:
          type: integer
          title: Index
          default: 0
      type: object
      required:
      - id
      - label
      title: EntityTimelineBeatParent
    EntityPropertiesUpdate:
      properties:
        properties:
          additionalProperties: true
          type: object
          title: Properties
      type: object
      required:
      - properties
      title: EntityPropertiesUpdate
      description: "Partial update: only the fields named in ``properties`` change.\n\nKeys are field keys (``alignment``, ``allied_factions``) or field ids from\nthe GET response. Values by field type:\n\n- STRING / ENUM: a string (``null`` or ``\"\"`` clears). ENUM values are\n  matched case-insensitively against ``options``.\n- NUMBER: a number; BOOLEAN: true/false.\n- connection fields (``connection_types`` non-empty): a list of entity ids\n  or exact names (replaces the list), ``[]``/``null`` to clear, or\n  ``{\"add\": [...], \"remove\": [...]}`` to edit the current list."
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EntityPropertiesResponse:
      properties:
        entity_id:
          type: string
          title: Entity Id
        entity_type:
          type: string
          title: Entity Type
        compendium_entity_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Compendium Entity Type
        tables:
          items:
            $ref: '#/components/schemas/PropertyTableRead'
          type: array
          title: Tables
      type: object
      required:
      - entity_id
      - entity_type
      - tables
      title: EntityPropertiesResponse
    PropertyFieldRead:
      properties:
        id:
          type: string
          title: Id
        key:
          type: string
          title: Key
        label:
          type: string
          title: Label
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        field_type:
          type: string
          title: Field Type
        is_required:
          type: boolean
          title: Is Required
          default: false
        sort_order:
          type: integer
          title: Sort Order
          default: 0
        options:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Options
        connection_types:
          items:
            type: string
          type: array
          title: Connection Types
          default: []
        value:
          anyOf:
          - {}
          - type: 'null'
          title: Value
        connections:
          anyOf:
          - items:
              $ref: '#/components/schemas/PropertyConnectionRef'
            type: array
          - type: 'null'
          title: Connections
        updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated At
      type: object
      required:
      - id
      - key
      - label
      - field_type
      title: PropertyFieldRead
      description: 'One row in a compendium property table.


        ``value`` is the type-appropriate value pulled from the matching

        ``CustomFieldValue`` column (``valueString``/``valueNumber``/etc.), or

        ``None`` when the entity has no stored value for this field yet.'
    PropertyConnectionRef:
      properties:
        id:
          type: string
          title: Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        type:
          anyOf:
          - type: string
          - type: 'null'
          title: Type
      type: object
      required:
      - id
      title: PropertyConnectionRef
    EntityTimelineResponse:
      properties:
        sessions:
          items:
            $ref: '#/components/schemas/EntityTimelineSessionRead'
          type: array
          title: Sessions
          default: []
        total_sessions:
          type: integer
          title: Total Sessions
          default: 0
      type: object
      title: EntityTimelineResponse
    EntityTimelineStepRead:
      properties:
        id:
          type: string
          title: Id
        label:
          type: string
          title: Label
        description:
          type: string
          title: Description
          default: ''
        index:
          type: integer
          title: Index
          default: 0
        characters:
          items:
            type: string
          type: array
          title: Characters
          default: []
        factions:
          items:
            type: string
          type: array
          title: Factions
          default: []
        locations:
          items:
            type: string
          type: array
          title: Locations
          default: []
        items:
          items:
            type: string
          type: array
          title: Items
          default: []
        minor_beat:
          anyOf:
          - $ref: '#/components/schemas/EntityTimelineBeatParent'
          - type: 'null'
        major_beat:
          anyOf:
          - $ref: '#/components/schemas/EntityTimelineBeatParent'
          - type: 'null'
      type: object
      required:
      - id
      - label
      title: EntityTimelineStepRead
    PaginatedResponse:
      properties:
        data:
          items: {}
          type: array
          title: Data
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        size:
          type: integer
          title: Size
        pages:
          type: integer
          title: Pages
      type: object
      required:
      - data
      - total
      - page
      - size
      - pages
      title: PaginatedResponse
    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
    PropertyTableRead:
      properties:
        table_type:
          type: string
          title: Table Type
        label:
          type: string
          title: Label
        fields:
          items:
            $ref: '#/components/schemas/PropertyFieldRead'
          type: array
          title: Fields
      type: object
      required:
      - table_type
      - label
      - fields
      title: PropertyTableRead
    EntityTimelineSessionRead:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        session_date:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Session Date
        session_number:
          type: integer
          title: Session Number
        steps:
          items:
            $ref: '#/components/schemas/EntityTimelineStepRead'
          type: array
          title: Steps
          default: []
      type: object
      required:
      - id
      - title
      - session_number
      title: EntityTimelineSessionRead
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer