MisarMisar Docs
MisarMailMisarBlogMisarReachMisarPostMisarDevMisarCoderMisarSEOMisar PlatformMisar SSO
API Reference

API Keys

Generate and revoke your MisarBlog API key.

Each MisarBlog creator has a single API key used for all programmatic access. Generating a new key replaces (rotates) any existing one.

These endpoints are authenticated with your dashboard session cookie and require a valid CSRF token — they are called from the signed-in dashboard, not with an API key. Key format: mbk_ followed by 64 hexadecimal characters (68 characters total). The stored prefix is mbk_ plus the first 6 hex characters and is used only for identification.

Generate (or Rotate) Your API Key

POST/blog/v1/keys

Generates a new API key and stores its hash on your profile. If you already have a key, this replaces it — the previous key stops working immediately.

The raw key is returned only once at creation. Store it securely; it cannot be retrieved again.

Rate limited to 5 generations per hour. Requires a valid session and CSRF token.

Response fields

keystring

The full API key (mbk_...). Shown only once — save it immediately.

prefixstring

Short identifier (mbk_ + first 6 hex characters) used to recognize the key later.

messagestring

Reminder that the key will not be shown again.

200 — OK
{
  "key": "mbk_SHOWN_ONCE_STORE_IMMEDIATELY",
  "prefix": "mbk_a1b2c3",
  "message": "Save this key — it will not be shown again."
}

Revoke Your API Key

DELETE/blog/v1/keys

Immediately invalidates your current API key. Any integration using it will start receiving 401 errors. Requires a valid session and CSRF token.

Response fields

revokedboolean

true when the key was cleared from your profile.

200 — OK
{ "revoked": true }

MCP Connect

If you're setting up the MisarBlog MCP server, use the MCP connect flow (POST /api/v1/auth/mcp-connect) instead — it generates an mbk_ key and delivers it to your local MCP client automatically.

Errors

StatusDescription
401Not signed in (missing or invalid session)
403Invalid CSRF token
429Rate limit exceeded (5 key generations per hour)
500Failed to save the API key