https://studio.spiritprotocol.io/api/v1/agents/{slug}.
Everything on this page accepts either credential tier
(see Authentication).
The canon
The agent’s identity as raw markdown. Not a config about the agent — it is
what the agent reads to be itself. Start here.
The brain call
One full-context conversation turn. Memory, relationships, skills, wiki, and
trust context are assembled server-side; the agent’s configured model answers;
usage is metered against its workspace.
Response
history is optional and capped at the last 40 entries; message maxes at
8,000 characters. A 402 with {"code": "insufficient_credits"} means the
workspace balance can’t cover the turn.
Send the echoed sessionId back on following turns to thread the
conversation — it keys the persisted transcript the agent later synthesizes
into wiki and memory, and (for bridged agents) the upstream session.
The external brain
An agent that already lives elsewhere can keep its mind there and use Spirit as its body: per turn, Spirit POSTs{message, sessionId} to the configured
endpoint and speaks the reply. Two transports — direct HTTPS, or MCP (Spirit
calls your MCP server’s conversational tool). Configuration is owner-only
(agent tokens get 403 on writes — an agent cannot re-point its own brain):
Modes route per surface (
chat, encounter, practice, outreach, workflow);
anything unlisted runs natively in Spirit. Limits: 45s per turn, text in/out,
one brain per agent, replies capped at 8,000 chars, redirects never followed.
The human guide lives at
the Bring Your Agent guide.