MisarMisar Docs
MisarMailMisarBlogMisarReachMisarPostMisarDevMisarCoderMisarSEOMisar PlatformMisar SSO
API Reference

Plan & Trial

Read live plan, quota, and upgrade info for a key, and start the self-serve no-card trial via the MisarBlog API.

These endpoints expose the authenticated key's current plan and quota usage, and drive the self-serve trial. They back the MCP upgrade tool. All are available to any authenticated mbk_ key (no scope required).

Get plan & quota

GET/plan

Returns the live plan, per-feature quota usage, and upgrade information for the authenticated key.

Response fields

plan{ slug: string; name: string }

The active plan's slug and display name.

usageArray<UsageRow>

Per-feature usage. Each row has feature, feature_label, used, limit, remaining, period, and resets_at (ISO 8601).

upgradeobject

Upgrade guidance — the higher plan and checkout entry point surfaced to the caller.

Request
curl https://api.misar.io/blog/v1/plan \
  -H "Authorization: Bearer mbk_YOUR_KEY"
200 — OK
{
  "plan": { "slug": "free", "name": "Free" },
  "usage": [
    {
      "feature": "articles_published",
      "feature_label": "Articles published",
      "used": 3,
      "limit": 10,
      "remaining": 7,
      "period": "month",
      "resets_at": "2026-09-01T00:00:00Z"
    }
  ],
  "upgrade": {}
}

Get trial status

GET/trial

Returns self-serve, no-card trial eligibility and status for the authenticated creator.

Response fields

eligibleboolean

Whether the caller can start a trial.

activeboolean

Whether a trial is currently running.

ends_atstring

ISO 8601 end time of the active trial (null when not active).

plan_slugstring

The plan granted for the trial.

daysinteger

Trial length in days.

requires_cardboolean

Always false for the self-serve trial.

reasonstring

When eligible is false, a human-readable reason.

Request
curl https://api.misar.io/blog/v1/trial \
  -H "Authorization: Bearer mbk_YOUR_KEY"
200 — OK
{
  "eligible": true,
  "active": false,
  "ends_at": null,
  "plan_slug": "pro",
  "days": 14,
  "requires_card": false,
  "reason": ""
}

Start a trial

POST/trial

Starts the self-serve, no-card trial. Tightly rate-limited to 5 requests per hour.

Request body

featurestringbody

The feature that prompted the trial (used for attribution in the upsell funnel).

refstringbody

Optional referrer / entry-point tag.

Request
curl -X POST https://api.misar.io/blog/v1/trial \
  -H "Authorization: Bearer mbk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "feature": "ai_titles", "ref": "editor" }'
201 — Trial started
{}

Status codes

  • 401 — Missing or invalid key
  • 429 — Rate limit exceeded (100 req/min per key; trial start additionally capped at 5/hour)
  • 500 — Unexpected server error

See Errors for the full reference.