Archivist AI Moments API
The moments API from Archivist AI — 3 operation(s) for moments.
The moments API from Archivist AI — 3 operation(s) for moments.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/myarchivist-ai:myarchivist-ai-moments-api"
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.
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: 3.2.0
info:
title: Archivist Public Moments API
description: Public API for Archivist - Tabletop RPG Campaign Management
version: 1.0.0
tags:
- name: moments
paths:
/v1/moments:
get:
tags:
- moments
summary: List Moments
operationId: list_moments_v1_moments_get
security:
- HTTPBearer: []
parameters:
- name: campaign_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Campaign ID to filter moments
title: Campaign Id
description: Campaign ID to filter moments
- name: session_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Session ID to filter moments
title: Session Id
description: Session ID to filter moments
- name: search
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Search moments by label
title: Search
description: Search moments by label
- name: character_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Comma-separated character IDs
title: Character Ids
description: Comma-separated character IDs
- name: location_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Comma-separated location IDs
title: Location Ids
description: Comma-separated location IDs
- name: faction_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Comma-separated faction IDs
title: Faction Ids
description: Comma-separated faction IDs
- name: item_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Comma-separated item IDs
title: Item Ids
description: Comma-separated item IDs
- name: session_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Comma-separated session IDs
title: Session Ids
description: Comma-separated session IDs
- name: categories
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Comma-separated categories. Key Moments typically use 'key-moment'.
title: Categories
description: Comma-separated categories. Key Moments typically use 'key-moment'.
- name: kind
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Moment kind filter (e.g. 'legacy' or 'key-moment'). Most Key Moments remain kind=legacy.
title: Kind
description: Moment kind filter (e.g. 'legacy' or 'key-moment'). Most Key Moments remain kind=legacy.
- name: with_links
in: query
required: false
schema:
type: boolean
description: Return content with [[wikilinks]] intact
default: false
title: With Links
description: Return content with [[wikilinks]] intact
- name: fields
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Use 'card' for lightweight list items
title: Fields
description: Use 'card' for lightweight list items
- 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'
post:
tags:
- moments
summary: Create Moment
operationId: create_moment_v1_moments_post
security:
- HTTPBearer: []
parameters:
- 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/MomentCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MomentRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/moments/{moment_id}:
get:
tags:
- moments
summary: Get Moment
operationId: get_moment_v1_moments__moment_id__get
security:
- HTTPBearer: []
parameters:
- name: moment_id
in: path
required: true
schema:
type: string
title: Moment Id
- name: with_links
in: query
required: false
schema:
type: boolean
description: Return content with [[wikilinks]] intact
default: false
title: With Links
description: Return content with [[wikilinks]] intact
- 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:
anyOf:
- $ref: '#/components/schemas/MomentRead'
- $ref: '#/components/schemas/MomentSummaryProduct'
title: Response Get Moment V1 Moments Moment Id Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- moments
summary: Patch Moment
operationId: patch_moment_v1_moments__moment_id__patch
security:
- HTTPBearer: []
parameters:
- name: moment_id
in: path
required: true
schema:
type: string
title: Moment Id
- 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/MomentUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MomentRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- moments
summary: Delete Moment
operationId: delete_moment_v1_moments__moment_id__delete
security:
- HTTPBearer: []
parameters:
- name: moment_id
in: path
required: true
schema:
type: string
title: Moment Id
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/moments/links/maintenance:
post:
tags:
- moments
summary: Trigger Moment Links Maintenance
operationId: trigger_moment_links_maintenance_v1_moments_links_maintenance_post
security:
- HTTPBearer: []
parameters:
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/LinkMaintenanceRequest'
- $ref: '#/components/schemas/LinkMaintenanceUpdateRequest'
title: Maintenance
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LinkMaintenanceResult'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
MomentUpdate:
properties:
label:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Label
content:
anyOf:
- type: string
maxLength: 20000
- type: 'null'
title: Content
image:
anyOf:
- type: string
- type: 'null'
title: Image
index:
anyOf:
- type: integer
- type: 'null'
title: Index
categories:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Categories
pending:
anyOf:
- type: boolean
- type: 'null'
title: Pending
approved:
anyOf:
- type: boolean
- type: 'null'
title: Approved
discovered:
anyOf:
- type: boolean
- type: 'null'
title: Discovered
kind:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Kind
metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Metadata
type: object
title: MomentUpdate
MomentSummaryProduct:
properties:
created_at:
type: string
format: date-time
title: Created At
updated_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Updated At
id:
type: string
title: Id
label:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Label
content:
anyOf:
- type: string
maxLength: 20000
- type: 'null'
title: Content
image:
anyOf:
- type: string
- type: 'null'
title: Image
index:
anyOf:
- type: integer
- type: 'null'
title: Index
categories:
items:
type: string
type: array
title: Categories
default: []
kind:
type: string
title: Kind
default: legacy
metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Metadata
campaign_id:
type: string
title: Campaign Id
session_id:
type: string
title: Session Id
pending:
type: boolean
title: Pending
default: false
approved:
type: boolean
title: Approved
default: false
discovered:
type: boolean
title: Discovered
default: false
type: object
required:
- created_at
- id
- campaign_id
- session_id
title: MomentSummaryProduct
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
MomentRead:
properties:
created_at:
type: string
format: date-time
title: Created At
updated_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Updated At
id:
type: string
title: Id
label:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Label
content:
anyOf:
- type: string
maxLength: 20000
- type: 'null'
title: Content
image:
anyOf:
- type: string
- type: 'null'
title: Image
index:
anyOf:
- type: integer
- type: 'null'
title: Index
categories:
items:
type: string
type: array
title: Categories
default: []
kind:
type: string
title: Kind
default: legacy
metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Metadata
campaign_id:
type: string
title: Campaign Id
session_id:
type: string
title: Session Id
type: object
required:
- created_at
- id
- campaign_id
- session_id
title: MomentRead
MomentCreate:
properties:
label:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Label
content:
anyOf:
- type: string
maxLength: 20000
- type: 'null'
title: Content
image:
anyOf:
- type: string
- type: 'null'
title: Image
index:
anyOf:
- type: integer
- type: 'null'
title: Index
categories:
items:
type: string
type: array
title: Categories
default: []
pending:
type: boolean
title: Pending
default: false
approved:
type: boolean
title: Approved
default: false
discovered:
type: boolean
title: Discovered
default: false
kind:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Kind
metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Metadata
campaign_id:
type: string
title: Campaign Id
session_id:
type: string
title: Session Id
type: object
required:
- campaign_id
- session_id
title: MomentCreate
LinkMaintenanceUpdateRequest:
properties:
operation:
type: string
const: update
title: Operation
worldId:
type: string
title: Worldid
targetId:
type: string
title: Targetid
alias:
anyOf:
- type: string
maxLength: 255
minLength: 1
- type: 'null'
title: Alias
newTargetId:
anyOf:
- type: string
- type: 'null'
title: Newtargetid
newAlias:
anyOf:
- type: string
- type: 'null'
title: Newalias
type: object
required:
- operation
- worldId
- targetId
title: LinkMaintenanceUpdateRequest
description: Schema for updating existing links across a campaign.
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
LinkMaintenanceRequest:
properties:
operation:
type: string
enum:
- add
- remove
title: Operation
worldId:
type: string
title: Worldid
targetId:
type: string
title: Targetid
targetType:
type: string
enum:
- Character
- Faction
- Location
- Item
- Moment
title: Targettype
alias:
type: string
maxLength: 255
minLength: 1
title: Alias
type: object
required:
- operation
- worldId
- targetId
- targetType
- alias
title: LinkMaintenanceRequest
description: Schema for triggering campaign-wide wikilink maintenance via webhook.
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
LinkMaintenanceResult:
properties:
success:
type: boolean
title: Success
taskId:
anyOf:
- type: string
- type: 'null'
title: Taskid
type: object
required:
- success
title: LinkMaintenanceResult
securitySchemes:
HTTPBearer:
type: http
scheme: bearer