MultiMuse API

Public reference for building tools against MultiMuse (bots, dashboards, desktop apps, and browser backends).

MultiMuse HTTP API (v1.2)

Last updated: November 29, 2026

Public reference for building tools against MultiMuse (bots, dashboards, desktop apps, and browser backends).

Usage policy: Creating or using an API key means you agree to the MultiMuse API Usage Policy. You may not charge for access to API features or ship a paid front-end that replaces free MultiMuse functionality.

Base URL: https://api.multimuse.app

Every path below is under /api/v1 and requires Authorization: Bearer <your_api_key> unless noted.


Getting started

  1. In Discord DM with MultiMuse, run /api generate and store the key securely (shown once).
  2. Call GET /api/v1/auth/me to confirm which Discord user owns the key.
  3. Use that user’s ID in query/body fields when reading or writing on their behalf.

Do not embed API keys in public front-end code. Browser apps should proxy requests through your own backend.

Personal keys from /api generate are unchanged. Community keys are an extra key for one Discord server. Both use this same API. See Community keys.


Authentication

Authorization: Bearer <your_api_key>

Discord commands for keys

  • /api generate [name] — Create a new key (shown once)
  • /api list — List your keys
  • /api revoke <key_id> — Permanently remove a key (same outcome as the old /api delete)
  • /api consent list — Keys you allowed to act on your account
  • /api consent revoke <key_id> — Remove that permission

Community keys (mm_c_…) are not created with /api generate. Create them under Community keys.

Who owns this key?

GET /api/v1/auth/me

{
"status": "ok",
"user_id": "123456789012345678"
}

CORS: Cross-origin browser calls are allowed (Access-Control-Allow-Origin: *). Allowed methods include GET, POST, PATCH, PUT, and OPTIONS. CLI and server tools are unaffected.


Community keys

A community key is a bearer token for a bot you run for one Discord server. It uses this same /api/v1 API. Personal keys from /api generate stay available. A community key does not replace them.

You need Manage Server on that Discord server. The key belongs to the Discord account that created it. GET /api/v1/auth/me returns that account’s user ID.

Create and revoke

Community keys are created on Servers → Apps → Developer apps. They are not created with /api generate, /api list, or /api revoke.

  1. Save the community listing for that server first. Until that listing exists, Create community key stays unavailable.
  2. Create community key. The secret starts with mm_c_ and is shown once. Store it on the bot you host.
  3. Revoke on that same screen when you want it to stop working. A revoked key stays in the list, marked revoked. It cannot authenticate.

Do not paste the key into a website or into Discord Activity JavaScript. Call the API from the bot you host.

Which server the key can name

The key is bound to the server you created it for. These must use that server’s ID:

  • The {guild_id} in /api/v1/guilds/{guild_id}/…
  • A guild_id or guildId query parameter
  • On POST, PUT, and PATCH, a guild_id or guildId field in the JSON body

A different server ID returns 403:

{
"status": "error",
"message": "This community API key cannot access that Discord server."
}

Calls that do not name a server work like a personal key owned by the person who created it. That includes GET /api/v1/auth/me, GET /api/v1/muses/list, and GET /api/v1/threads/tracked?user_id=. Public muse reads follow the same privacy rules. Posting or other writes as someone else still need that person’s consent in Discord.

Rate limits

General request caps are the same as a personal key. If the Discord owner of the server has MultiMuse Plus when the key is created, those general caps are doubled on that key. POST /api/v1/messages/post keeps its own per-user limits and is not doubled.


Authorization

Reads

Any valid API key may read public data when you pass a target Discord user ID (for example ?user_id=). That supports shared server tools and dashboards.

Guild Narrator endpoints are different: they return server-owned narrator config, not personal muses. The API key owner must be a member of that Discord server with Manage Server, the configured narrator proxy role, or the face-editor role. First-party service keys skip that membership check. See Narrator.

Private muses are never returned unless the key owner owns the muse or has an accepted share. See Private muses.

Writes (mutations)

Writes use a user_id in the JSON body (muse owner or account being updated).

  • Key owner is the target user_id — Allowed immediately.
  • Key owner is someone else — Target user must approve in Discord (unless a first-party service key; see below).
  • Allow always grant for this key — Allowed until revoked.
  • Allow once grant — One successful mutation, then consent is required again.

When consent is required, the API returns 403 with:

{
"status": "error",
"code": "consent_required",
"message": "Consent required: the target user must approve this API key in Discord.",
"request_id": "abc123...",
"target_user_id": "987654321098765432",
"key_id": "your_key_id"
}

The target user gets a MultiMuse DM with Allow once, Allow always, or Deny. The DM includes a short description of the specific request (for example which thread and muse). Each key has separate consent; grants do not carry over between keys.

Endpoints that require mutation consent (when key owner ≠ body user_id):

  • POST /api/v1/threads/track
  • POST /api/v1/messages/post
  • PATCH /api/v1/muses/card (alias: POST /api/v1/muses/card/modules)
  • POST /api/v1/connections/upsert
  • POST /api/v1/connections/delete
  • POST /api/v1/connections/settings
  • POST /api/v1/connections/reciprocal/respond
  • POST /api/v1/connections/reciprocal/cancel
  • POST /api/v1/connections/reciprocal/revoke
  • POST /api/v1/archive/threads/add
  • Legacy Obsidian-oriented scene routes (not listed in this public doc)

Endpoints that do not use mutation consent (any valid key):

  • POST /api/v1/scenes/end — Only thread_id in the body; ends tracking for everyone on that thread

First-party service keys (not for integrators)

MultiMuse, StageHand, BackDrop, and the website dashboard use long-lived service bearer tokens configured on the server (not created with /api generate). Those keys skip consent, skip global rate limits, and may call internal routes.

On the MultiMuse server, set any of these to the caller’s bearer token (they may all share one value):

  • MULTIMUSE_SERVICE_API_KEY — Dashboard / control plane (LEGACY_PUBLIC_API_KEY)
  • STAGEHAND_API_KEY — StageHand (MULTIMUSE_API_KEY on StageHand)
  • BACKDROP_API_KEY — BackDrop (MULTIMUSE_API_KEY in backdrop/.env)
  • SPARK_API_KEY — Optional. Spark’s usual path is a user or community key from /api generate / Developer apps (consent still applies). Only set this if Spark should be treated as first-party.

If you are building a third-party integration, you only need a user key from /api generate or a community key for one server.


Private muses

A muse marked private in MultiMuse is hidden from API reads unless:

  1. The API key owner owns the muse, or
  2. The key owner has an accepted share for that muse.

Applies to:

  • GET /api/v1/muses/list
  • GET /api/v1/muses/card
  • GET /api/v1/guilds/{guild_id}/muses
  • GET /api/v1/muses/wrappers/resolve
  • GET /api/v1/muses/{muse_id}/connections-public — returns whether a public connections cloud exists; does not expose private muse data when the muse is hidden
  • GET /api/v1/muses/{muse_id}/storyline-public — same for published Story Line viewer links
  • GET /api/v1/muses/{muse_id}/storyline/public — published timeline only; hidden when the muse is private to the caller

Querying ?user_id= for another member returns only their public muses plus muses they shared with you. Private muses never appear in lists or cards for other owners.


Rate limits

Exceeded limits return 429 with an error message.

Limits apply per API key (after authentication). First-party service keys (StageHand, BackDrop, dashboard) are not counted against these buckets.

General (user-generated keys; all routes except message post)

  • GET (and other read methods): 80 requests per minute, 600 per hour
  • POST / PATCH / PUT (except messages/post below): 40 per minute, 240 per hour
  • Plus burst: those general caps double for keys owned by a Plus member, and for community keys minted while the Discord server owner has Plus.

POST /api/v1/messages/post is not doubled.

Message post only

POST /api/v1/messages/post uses a separate bucket per user_id in the body:

  • 10 posts per minute
  • 50 posts per hour

Calls that hit Discord are also subject to Discord’s own rate limits.


Endpoints

GET /api/v1/auth/me

Returns the Discord user ID that owns the bearer key. See Authentication.


Tracked threads (read)

Thread list endpoints merge Discord-side tracking (thread_tracking) with Obsidian vault links (obsidian_scene_registry) when present, so one thread may show muse names, user IDs, and vault paths from both sources.

GET /api/v1/guilds/{guild_id}/threads/tracked

Active thread tracks in one server.

Response: { "guild_id": "...", "threads": [ ... ] }

Each thread object may include:

  • thread_id — Discord thread ID (string)
  • guild_id — Server ID (string)
  • guild_name — Resolved from Discord when possible
  • thread_name — Resolved from Discord when possible
  • last_reply_at — ISO timestamp
  • participants — Expected participant count
  • muse_names — Muses on this thread
  • user_ids — Discord user IDs with active rows
  • tracked_muses — Array of { "muse_name", "user_id", "muse_id" } per active track (when available)
  • scene_name — StageHand /scene open title (including persistent hubs). Discord thread names are not used when this is present
  • scene_paths — Obsidian vault paths linked to the thread (when present)
  • archived — true / false when the thread is in cache

GET /api/v1/threads/tracked?user_id=<discord_user_id>

Active tracks for one user across servers.

Query: optional active_only=1 returns only unarchived Discord threads currently in cache (open scenes). Archived or missing threads are omitted.

Response: { "threads": [ ... ] }

Each row includes thread_id, guild_id, muse_name, participants, thread_name, last_reply_at, and optionally:

  • guild_name — when the bot can see the server
  • muse_names — when multiple muses share a thread
  • scene_name — StageHand scene title
  • scene_path / scene_paths — linked Obsidian scene path(s), when present
  • archived — true / false / omitted when the thread is not in cache

GET /api/v1/events (WebSocket)

Live thread_tracked events for the API key owner. The Obsidian plugin uses this so auto-created scene notes appear as soon as you /track add or StageHand opens a scene, instead of waiting for the next poll.

Browsers cannot set WebSocket headers. Authenticate with a first text frame:

{"type": "auth", "token": "mm_your_api_key"}

Non-browser clients may send Authorization: Bearer mm_... on the handshake instead.

A non-WebSocket GET returns 426.

Ready: { "type": "ready", "user_id": "..." }

Event: { "type": "thread_tracked", "thread_id": "...", "user_id": "...", "guild_id": "...", "guild_name": "...", "thread_name": "...", "scene_name": "...", "muse_name": "...", "muse_names": ["..."], "participants": 2, "archived": false }

Heartbeat pings are handled by the server. Optional client text ping is answered with pong.


POST /api/v1/threads/track

Create or update Discord-side thread tracking.

Mutation consent applies when the key owner ≠ body user_id.

Body (JSON):

{
"thread_id": 1234567890123456789,
"user_id": 987654321098765432,
"muse_name": "My Muse",
"guild_id": 111111111111111111,
"participants": 2
}

  • thread_id (required) — Discord thread ID
  • user_id (required) — Muse owner / tracker user
  • muse_name (required) — Display name of the muse
  • guild_id (optional) — Inferred from the thread if omitted
  • participants (optional) — Default 2
  • scene_path (optional) — Obsidian vault path; when set, also updates the Obsidian scene registry (plugin integrations only — omit for Discord-only trackers). HTTP/Discord URLs are ignored
  • characters (optional) — Character list for Obsidian registry when scene_path is set (defaults to [muse_name])

Success: { "status": "ok" }


Muses

Filtering by tag

Goal

Endpoint

How tags apply

Muses for a Discord server (StageHand scenes / dice)

GET /api/v1/guilds/{guild_id}/muses

When list filtering is on, muses whose tags contain the guild default tag (membership; a muse may have several). No tags query

Name search limited to a server

GET /api/v1/muses/card?name=…&guild_id=

Same default-tag restriction (unless context=backdrop, map, or tracker)

Explicit tag filter on an account list

GET /api/v1/muses/list?tags=

CSV, case-insensitive, AND match. Aliases: tag, server_tag, server_tags, default_tag

Filter to a server’s default tag

GET /api/v1/muses/list?user_id=&guild_id=

Muses whose tags include that guild’s default tag (membership). Same as default_tag=1 with guild_id

Explicit tag filter (connection picker)

GET /api/v1/connections/targets?tags=

Same tags semantics and aliases; account-scoped

GET /api/v1/muses/list?user_id=<id>

List muses for a user (own + shared). Comma-separated user_ids=123,456 is supported. Respects private muses.

Query parameters:

  • user_id or user_ids (required) — Discord user ID(s) whose muses to list
  • tags (optional) — Comma-separated muse tags to require (case-insensitive). Every tag must match (AND). Example: tags=oc,horror
  • tag / server_tag / server_tags / default_tag (optional) — Same filter. A single string, CSV, or JSON array all work. default_tag=1 (or filter=default) with guild_id means “this server’s default tag”
  • guild_id (optional) — When sent without an explicit tag string, filter to muses that belong to that server (tags include the guild default tag)

Response: { "muses": [ { "muse_id", "name", "trigger", "tags", "tag", "server_tags", "owner_id", "is_shared" }, ... ] }

tags stays a comma-separated string. tag is the first tag (legacy scalar). server_tags is the same membership list as an array.

For “muses on this Discord server,” prefer guild muses (server default tag) or guild_id on this route.

GET /api/v1/muses/card?muse_id=<uuid>&name=<partial>&guild_id=<id>&user_id=<id>&context=<backdrop|map|tracker>&include=<live|…>

Resolve a muse card by muse_id (preferred for tracker / Backdrop integrations) or by partial name (case-insensitive).

Query parameters:

  • muse_id (optional) — Stable muse UUID; preferred when you already know the muse
  • name (optional) — Partial name match; required if muse_id is omitted
  • guild_id (optional) — When searching by name, restrict to the server’s default tag (skipped when context=backdrop, map, or tracker)
  • user_id (optional) — Narrow search to one owner; recommended with muse_id when multiple accounts could collide
  • context (optional) — Set to backdrop, map, or tracker to skip guild default-tag filtering (for external map/tracker tools)
  • include (optional) — StageHand live snapshots. Use live for all, or a comma list: reputation, challenges, dice, attributes, muse_link. Live data is returned under cardModulesLive so default reads stay fast and do not require StageHand.

Single match: { "status": "ok", "muse": { ... } }

The muse object includes card fields (name, trigger, quote, avatar, banner, color, notes, birthday, tags, private, created, messages, owner_id, muse_id) plus:

  • connections_cloud_public — true when the owner published a public connections cloud
  • connections_viewer_slug — Short slug for the viewer URL when published (otherwise null)
  • profileThreadId — Discord thread ID for “Take to Profile” (empty string when unset)
  • profileUrl — Discord jump URL when the thread is resolvable; otherwise null
  • cardModules — MultiMuse-owned module config (see below)
  • cardModulesLive — Present only when include requests live StageHand data
Card modules (cardModules)

Field

Owner

Meaning

resources

MultiMuse

Resource bars (vitals). Shape: { "bars": [{ "label", "current", "max" }], "title?" }

attributes

MultiMuse (optional StageHand sync)

Named attributes (e.g. D&D STR/DEX). Shape: { "items": [{ "name", "value" }], "title?", "syncEnabled?", "sourceGuildId?" }

sceneFocus

MultiMuse

Pinned or recent scene focus

reputation

Config on MultiMuse; XP live from StageHand

{ "guildId", "title?" } — live snapshot only with include

challenges

Config on MultiMuse; W/L live from StageHand

{ "guildId", "title?" } — live snapshot only with include

dice

Config / personal dice on MultiMuse; presets from StageHand

{ "mode", "maxButtons", "syncEnabled?", "sourceGuildId?", "sourcePresetId?" }

Example (owned fields only):

{
"status": "ok",
"muse": {
"name": "Lyra",
"muse_id": "550e8400-e29b-41d4-a716-446655440000",
"owner_id": "987654321098765432",
"profileThreadId": "1234567890123456789",
"profileUrl": "https://discord.com/channels/111/1234567890123456789",
"connections_cloud_public": true,
"connections_viewer_slug": "lyra-connections",
"cardModules": {
"dice": { "mode": "inline", "maxButtons": 10, "syncEnabled": true, "sourceGuildId": "111111111111111111", "sourcePresetId": "combat" },
"resources": {
"bars": [
{ "label": "Health", "current": 10, "max": 10 },
{ "label": "Stamina", "current": 5, "max": 5 }
]
},
"attributes": {
"items": [
{ "name": "STR", "value": "16" },
{ "name": "DEX", "value": "14" }
]
},
"reputation": { "guildId": "111111111111111111" }
}
}
}

With ?include=live, cardModulesLive may include reputation, challenges, dice (resolved buttons + modifiers), attributes (after StageHand muse-link overlay), and museLink (thread / dice preset binding).

Multiple matches: { "status": "multiple_matches", "matches": [ { "name", "trigger", "tags", "owner_id", "muse_id" }, ... ], "count": N }

Private muse blocked: { "status": "error", "code": "muse_private", "message": "..." } with 403 when a muse matches but is hidden from the caller.

Inaccessible private muses are omitted from lists; you may get 404 if nothing visible matches. Name lookups also try normalized matching (emoji/decoration stripped) when a substring search finds nothing.

PATCH /api/v1/muses/card

Update resource bars and/or attributes on a muse’s card modules (the primary write path for trackers and combat tools). Dice, reputation, challenges, and scene-focus config are not writable here — change those in Studio / Discord.

Alias: POST /api/v1/muses/card/modules (same body and behavior). Prefer PATCH when your client supports it.

Mutation consent applies when the key owner ≠ body user_id. Only the muse owner can be written (user_id must own the muse). Shared muses are read-only for modules.

Body (JSON):

{
"user_id": 987654321098765432,
"muse_id": "550e8400-e29b-41d4-a716-446655440000",
"resources": {
"bars": [
{ "label": "Health", "current": 7 },
{ "label": "Stamina", "delta": -1 }
]
},
"attributes": {
"items": [
{ "name": "STR", "value": "16" }
]
}
}

Field

Required

Meaning

user_id

yes

Muse owner Discord user ID

muse_id

preferred

Stable muse UUID

name / muse_name

if no muse_id

Exact or unique partial name for that owner

resources

one of resources/attributes

Patch resource bars (see merge rules)

attributes

one of resources/attributes

Patch attribute items

replace_resources / replaceResources

no

When true, replace the full bars list (empty bars clears vitals)

replace_attributes / replaceAttributes

no

When true, replace the full attributes list

Merge rules (default):

  • Resource bars match by label (case-insensitive). Existing label casing is kept.
  • Set absolute value with current, or adjust with delta (e.g. -2). Optional max updates the bar maximum.
  • Unknown labels are upserted (added) up to 5 bars.
  • Attributes match by name (case-insensitive). Unknown names are upserted up to 8.
  • Omitted sections are left unchanged. Other modules (dice, reputation, …) are always preserved.

Success:

{
"status": "ok",
"muse_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Lyra",
"owner_id": "987654321098765432",
"cardModules": { }
}

Errors:

  • 400 — Missing user_id, muse identifier, or both resources/attributes
  • 403 — consent_required (retry after the owner allows the key)
  • 404 — Muse not found for that owner
  • 409 — multiple_matches when resolving by name (pass muse_id)

Typical flow for a shared server tool:

  1. GET /api/v1/muses/card?muse_id=… — read current bars
  2. PATCH /api/v1/muses/card with { "user_id", "muse_id", "resources": { "bars": [{ "label": "Health", "delta": -2 }] } }
  3. On first cross-user write, handle 403 consent_required, wait for the owner’s Discord DM (Allow once / Allow always), then retry

GET /api/v1/guilds/{guild_id}/muses?user_id=<id>

Muse names available to a user in a Discord server (same source StageHand uses for scene / dice muse pickers). Accepts user_ids=123,456. Respects private muses.

If the guild has a default tag in server settings and list filtering is on, only muses whose tags CSV contains that tag are returned (membership — a muse can belong to several servers). If no default tag is set, or filtering is off, all accessible muses for those users are returned.

Response: { "muses": [ { "name", "owner_id", "muse_id" }, ... ], "guild_id": "...", "default_tag": "...", "tag": "..." }

default_tag and tag are the server’s configured default (or null when unset).


Narrator

Each Discord server may have one Narrator — a guild-scoped proxy identity (not part of anyone’s personal muse library). Faces are alternate display names and avatars with optional trigger prefixes.

Authorization: The API key owner must be in the guild and have Manage Server, the narrator proxy role, or the face-editor role. First-party service keys skip the role check. MultiMuse must be in the server.

Narrator rows are not returned by GET /api/v1/muses/list or GET /api/v1/guilds/{guild_id}/muses. Use the routes below.

GET /api/v1/guilds/{guild_id}/narrator

Return the server’s narrator identity and all configured faces.

Response: { "status": "ok", "guild_id": "...", "narrator": { "guild_id", "muse_id", "display_name", "trigger", "avatar", "enabled", "faces": [ { "name", "trigger", "image", "label" } ] } }

When no narrator is configured, narrator is null.

GET /api/v1/guilds/{guild_id}/narrator/faces

Faces only. Response: { "status": "ok", "guild_id", "muse_id", "faces": [ … ] }

GET /api/v1/guilds/{guild_id}/narrator/channel-face?channel_id=<id>

Active face for the API key owner in a channel or thread. Optional user_id (service keys only for other users).

Response: { "status": "ok", "guild_id", "channel_id", "user_id", "face": { "name", "trigger", "image", "label" } | null }

When the user posts with the default narrator appearance (no channel face set), face is null.


Guild members

GET /api/v1/guilds/{guild_id}/members

Member list for mention helpers. Bots excluded. Requires MultiMuse’s Server Members intent.

Response: { "members": [ { "id", "username", "display_name" }, ... ], "guild_id": "..." }

POST /api/v1/guilds/{guild_id}/members/lookup

Cache-only membership check (Who’s playing / roster helpers). Does not chunk the guild or call Discord REST. Missing IDs are omitted; treat unknown as absent. If the cache is thin, chunked is false and a background chunk may be scheduled.

Body: { "user_ids": ["...", ...] } (max 2000 unique IDs)

Response: { "present": ["..."], "chunked": true, "guild_id": "..." }


Connections

GET /api/v1/muses/{muse_id}/connections-public

Public metadata for a muse’s connections cloud (relationship map published from MultiMuse Studio). Use this to link map/tracker/card UIs to the viewer without loading full card data.

Response:

{
"status": "ok",
"muse_id": "550e8400-e29b-41d4-a716-446655440000",
"connections_cloud_public": true,
"connections_viewer_slug": "lyra-connections"
}

When connections_cloud_public is true, open the viewer at:

  • https://multimuse.app/connections/s/{connections_viewer_slug} when a slug is set, or
  • https://multimuse.app/connections/{muse_id} otherwise

This endpoint does not return connection graph data — only publish status and viewer routing. For the full published graph, use GET .../connections/cloud below.

GET /api/v1/muses/{muse_id}/connections?user_id=<discord_user_id>

Full builder connection cloud for a muse you own (same payload as MultiMuse Studio). Account-scoped: user_id must match the API key owner. Includes unpublished edges — use GET .../connections/cloud for published-only graphs.

Query parameters:

  • user_id (required) — Muse owner’s Discord user ID (acts as actor_id on the control plane)
  • map_mode (optional) — contained (default) or extended
  • map_depth (optional) — Depth for extended maps (integer)

Response: { "status": "ok", ... } with the connection cloud object (center, edges, settings, etc.).

Writes to the graph require the control plane to confirm the actor owns the muse (sharees cannot edit connections).

GET /api/v1/muses/{muse_id}/connections/cloud

Full published connection cloud graph. No user_id required when the owner has published the cloud (cloud_public). Privacy redaction is enforced server-side (same as the website viewer).

Query parameters:

  • user_id (optional) — Viewer context for extended-map visibility when logged in as that user
  • map_mode / map_depth — Same as builder endpoint

Returns 404 when the cloud is not published or the muse is hidden.

GET /api/v1/connections/targets?user_id=<discord_user_id>

Search muses you can link when building a connection map (same picker MultiMuse Studio uses). Account-scoped: user_id must match the API key owner.

Query parameters:

  • user_id (required) — Discord user ID of the API key owner
  • q (optional) — Fuzzy name / trigger search
  • tags (optional) — Comma-separated muse tags to require (case-insensitive). Every tag must match (AND). Example: tags=oc,horror. Aliases: tag, server_tag, default_tag (same shapes as muses/list). guild_id alone still means “this server’s default tag”
  • public_only (optional) — 1 / true / yes to limit to public muses
  • owner_id (optional) — Restrict to muses owned by this Discord user ID

For “muses on this Discord server,” prefer GET /api/v1/guilds/{guild_id}/muses (server default tag) instead of inventing a tag string.

GET /api/v1/connections/reciprocal-inbox?user_id=<discord_user_id>

Pending and active reciprocal connection / trust requests for the account. Account-scoped: user_id must match the API key owner.

GET /api/v1/connections/kind-palette?user_id=<discord_user_id>

Custom connection type colors for the account. Account-scoped: user_id must match the API key owner.

POST /api/v1/connections/upsert

Create or update a connection edge on a muse you own.

Body (JSON):

  • user_id (required) — Muse owner’s Discord user ID
  • owner_muse_id (required) — Muse UUID
  • target_muse_id or filler_name — Link target (or edge_id to update an existing filler edge)
  • label, kind (friend | family | rival | romantic | other), kind_custom_label, kind_color
  • mirror_reverse, reverse_label, request_reciprocal, reciprocal_scope (connection | global)

Requires mutation consent when the key owner is not user_id.

POST /api/v1/connections/delete

Body: user_id, owner_muse_id, and edge_id or target_muse_id.

POST /api/v1/connections/settings

Update cloud publish settings and layout for a muse.

Body: user_id, muse_id, and any of cloud_public, viewer_slug, node_layout, expand_in_full_map.

POST /api/v1/connections/reciprocal/respond

Body: user_id, request_id, accept (boolean), optional scope (connection | global).

POST /api/v1/connections/reciprocal/cancel · POST /api/v1/connections/reciprocal/revoke

Body: user_id, request_id, optional scope.


Story Line (read-only)

Story Line on the public API is read-only, mirroring the lightweight connections-public pattern. Editing timelines stays in Muse Studio / the dashboard.

GET /api/v1/muses/{muse_id}/storyline-public

Metadata for linking to a published Story Line viewer (does not return entry data). Respects private muses.

Response:

{
"status": "ok",
"muse_id": "550e8400-e29b-41d4-a716-446655440000",
"storyline_public": true,
"storyline_public_view": "feed",
"storyline_launch_path": "/storyline/550e8400-e29b-41d4-a716-446655440000"
}

When storyline_public is true, open the viewer at https://multimuse.app{storyline_launch_path} (append ?view=graph when storyline_public_view is graph).

GET /api/v1/muses/{muse_id}/storyline/public

Full published Story Line payload (feed or graph, same as the website viewer). Optional user_id for viewer context. Returns 404 when Story Line is not public or the muse is hidden.

Builder CRUD, settings, archive backfill, StageHand sync, and Discord posting are not exposed on api.multimuse.app — use Muse Studio or request a future API expansion if you have a concrete integrator need.


Muse scene archive

The living archive is the ordered list of Discord threads archived for a muse (filled by /track add and Story Line backfill). Integrators can read the archive and append threads; reorder, edit, delete, and display-banner changes stay in Muse Studio.

GET /api/v1/muses/{muse_id}/archive?user_id=<discord_user_id>

Archive threads plus display embed settings for a muse you own. Account-scoped: user_id must match the API key owner.

Response:

{
"status": "ok",
"muse_id": "550e8400-e29b-41d4-a716-446655440000",
"threads": [
{
"thread_id": "1234567890123456789",
"thread_title": "Scene title",
"location": "City square",
"guild_id": "111111111111111111",
"parent_id": null,
"added_at": "2026-07-01T12:00:00+00:00",
"sort_order": 1
}
],
"display": {
"banner_url": null,
"use_muse_avatar": false,
"embed_color": null,
"embed_description": null
}
}

thread_id, guild_id, and parent_id are strings (Discord snowflakes) to avoid JSON number precision loss.

POST /api/v1/archive/threads/add

Append a Discord thread to a muse's living archive. When Story Line is enabled for the account, the control plane may also sync a Story Line entry from the archive row.

Body (JSON):

  • user_id (required) — Muse owner's Discord user ID
  • muse_id (required) — Muse UUID
  • thread_id (required) — Discord thread snowflake (string or number)
  • thread_title, location, guild_id, parent_id (optional)

Requires mutation consent when the key owner is not user_id.


Dice presets and wrappers

GET /api/v1/guilds/{guild_id}/dice_presets

Dice preset definitions pushed from StageHand (read-only for integrators). Used when attaching StageHand dice to a muse card, and available to server tools.

Response:

{
"guild_id": "111111111111111111",
"presets": {
"preset_name": { "name": "...", "buttons": [ ... ] }
},
"results_channel_id": "222222222222222222"
}

results_channel_id is included when StageHand configured a dice results channel for that server.

GET /api/v1/muses/wrappers/resolve?thread_id=&user_id=&muse_name=

Resolve header/footer wrapper text for posting as a muse in a thread. Requires muse_id or muse_name. Respects private muses.

Response: { "header": "...", "footer": "...", "muse_id": "..." }


POST /api/v1/messages/post

Post a message as a muse via webhook.

Mutation consent applies when the key owner ≠ body user_id.

Body (JSON):

{
"thread_id": 1234567890123456789,
"user_id": 987654321098765432,
"muse_id": "550e8400-e29b-41d4-a716-446655440000",
"content": "Hello from the API!"
}

  • thread_id (required) — Target thread or channel
  • user_id (required) — Muse owner (or sharee with access)
  • muse_name or muse_id (one required) — muse_id alone is enough; the server resolves the display name
  • content (required) — Message text (up to 100,000 characters; long posts are split into multiple Discord messages automatically)
  • fast (optional) — If true, returns 202 and delivers in the background
  • wrappers_preapplied (optional) — If true, skip automatic header/footer wrapper composition (for clients that already merged wrappers into content)

Behavior notes:

  • Muse header/footer wrappers are applied automatically unless wrappers_preapplied is set; long content is split across multiple Discord messages with wrappers accounted for on the first/last chunk
  • Per-channel muse aliases (display names set in Discord) are respected for webhook username and avatar
  • Custom emoji shortcodes in content are resolved when the muse owner has emoji cache enabled
  • Role mentions (<@&role_id>) notify normally
  • Channels with muse-feed embed mode may send content as an embed instead of plain text (first image URL in content may become the embed image)

Success: { "status": "ok", "messages": [ { "message_id", "content" }, ... ], "thread_id", "muse_name" } or { "status": "accepted", ... } with 202 when fast is set.

See Rate limits for post-specific caps.


POST /api/v1/scenes/end

End scene tracking for a Discord thread (deactivates registry rows and removes thread tracking). Open to any integrator with a valid API key. No mutation consent and no user_id in the body.

Body (JSON):

{
"thread_id": 1234567890123456789
}

  • thread_id (required)

Success: { "status": "ok" }

Third parties may build similar scene workflows; consent rules for other scene routes do not apply to this endpoint.


Error responses

Most errors:

{
"status": "error",
"message": "Human-readable explanation"
}

HTTP status codes:

  • 400 — Invalid or missing parameters
  • 401 — Missing or invalid API key
  • 403 — Forbidden (consent required, muse not accessible, community key used on another server, service-only route, etc.)
  • 404 — Resource not found
  • 409 — Multiple muse name matches (pass muse_id)
  • 426 — WebSocket upgrade required (GET /api/v1/events)
  • 429 — Rate limit exceeded
  • 500 — Server error

Consent denials include "code": "consent_required". Private muse lookups may return "code": "muse_private" with 403.


Integration patterns

Your own account

  1. /api generate in Discord DM
  2. GET /api/v1/auth/me
  3. Read/write with your user ID — no consent DM

Server bot or shared tool

  1. Tool holder generates an API key with /api generate, or creates a community key for one server under Servers → Apps → Developer apps
  2. When acting on another user’s tracking, posts, card module stats, connections, or archive, that user gets a consent DM
  3. After Allow always, retries work until that permission is revoked (/api consent revoke for a personal key, or Revoke on Developer apps for a community key)

Desktop or CLI

Store the key locally; send Authorization: Bearer ... on each request.

Browser app

Proxy API calls through your backend; never ship keys to the client.


Quick reference

  • Who am I? — GET /api/v1/auth/me
  • One server (community key) — same routes; mm_c_… from Servers → Apps → Developer apps; another server’s id returns 403
  • Tracks in a server — GET /api/v1/guilds/{guild_id}/threads/tracked
  • Tracks for a user — GET /api/v1/threads/tracked?user_id= (active_only=1 optional)
  • Live track events — GET /api/v1/events (WebSocket)
  • Start/update tracking — POST /api/v1/threads/track
  • List muses — GET /api/v1/muses/list?user_id=
  • Muse card (read) — GET /api/v1/muses/card?muse_id= or ?name= (include=live optional)
  • Muse card modules (write) — PATCH /api/v1/muses/card (or POST /api/v1/muses/card/modules)
  • Connections cloud link — GET /api/v1/muses/{muse_id}/connections-public
  • Connections builder cloud — GET /api/v1/muses/{muse_id}/connections?user_id=
  • Published connections graph — GET /api/v1/muses/{muse_id}/connections/cloud
  • Connection targets — GET /api/v1/connections/targets?user_id=
  • Upsert connection — POST /api/v1/connections/upsert
  • Delete connection — POST /api/v1/connections/delete
  • Reciprocal inbox — GET /api/v1/connections/reciprocal-inbox?user_id=
  • Story Line link — GET /api/v1/muses/{muse_id}/storyline-public
  • Published Story Line — GET /api/v1/muses/{muse_id}/storyline/public
  • Read muse archive — GET /api/v1/muses/{muse_id}/archive?user_id=
  • Append to archive — POST /api/v1/archive/threads/add
  • Guild muse names — GET /api/v1/guilds/{guild_id}/muses?user_id=
  • Guild narrator — GET /api/v1/guilds/{guild_id}/narrator
  • Narrator faces — GET /api/v1/guilds/{guild_id}/narrator/faces
  • Narrator channel face — GET /api/v1/guilds/{guild_id}/narrator/channel-face?channel_id=
  • Guild members — GET /api/v1/guilds/{guild_id}/members
  • Member presence lookup — POST /api/v1/guilds/{guild_id}/members/lookup
  • Post as muse — POST /api/v1/messages/post
  • End scene / stop tracking — POST /api/v1/scenes/end
  • Revoke a tool — /api consent revoke in Discord DM