Skip to main content
POST /v1/brain/share requires a Bearer token. GET /v1/b/{id} is public — no key needed.
A shared BRAIN.md is a living snapshot of your routing config: model preference, cost ceiling, signal-based rules, blocked models. Share it in a blog post, Discord message, or README badge — anyone (including other agents) can fetch it without an API key. Invalid configs are shareable too, so the community can help you debug.

POST /v1/brain/share

Create a shareable link for a BRAIN.md config.
POST https://api.prysm1.com/v1/brain/share · Auth required

Request Body

string
Raw BRAIN.md text to share. Accepts the same YAML format as /v1/brain/validate.
object
Pre-parsed config dict (alternative to brain_md).
string
Optional human-readable label shown on the share page (max 120 chars).

Response

string
brain.share
string
Unique ID for this share (prysm1.com/b/{share_id}).
string
Full API URL to retrieve the config: https://api.prysm1.com/v1/b/{share_id}.
string
Marketing short URL: https://prysm1.com/b/{share_id}.
string | null
Echoed title, or null if not provided.
object
Normalized config object (the canonical form, regardless of which input format was used).
boolean
Whether the config passed validation.
string[]
Validation errors (empty if valid).

GET /v1/b/

Retrieve a shared BRAIN.md config by its short ID. No API key required.
GET https://api.prysm1.com/v1/b/{share_id} · Public
string
required
The short ID returned by POST /v1/brain/share.

Response

string
brain.share
string
The share ID.
string | null
Label set by the sharer.
object
Normalized BRAIN.md config.
string | null
Original BRAIN.md text (if shared as text).
number
Unix timestamp of when the share was created.

GET /v1/brain/shares

List BRAIN.md configs you have shared, newest first.
GET https://api.prysm1.com/v1/brain/shares · Auth required
Returns {object: "list", data: [{share_id, title, config, url, short_url, created_at}...]}.

GET /v1/brain/badge

Generate an SVG badge for embedding in a README or docs page.
GET https://api.prysm1.com/v1/brain/badge · Public · Cacheable 1h
string
A PRYSM model ID (e.g. deepseek-v3.2). The badge value becomes the model’s display name, colored by tier: budget=green, mid=amber, premium=indigo, frontier=violet.
string
Override the left label. Default: BRAIN.md.
Embed in your README:
The badge links to your shared config so any developer (or agent) can inspect your routing rules.