Skip to content

Docs

REST API reference

Use the same service capabilities with explicit inputs, permissions and results.

104 operations in the current generated reference.

Use the documented endpoint

Call the tool endpoint under /api/v1 with the documented authentication and input. Use the generated OpenAPI document for current request and response schemas.

Make retries deliberate

For create_content and create_post, use the supported idempotency key when retrying the same operation. A conflicting input with the same key is refused. Read the exact replay scope in the agent guide.

Respect permissions and confirmation

API access does not bypass workspace permissions, required review or publishing confirmation. A person confirms before anything goes live, unless you let a specific agent publish on its own (Autopilot).

Handle errors before continuing

Read the returned error and stop dependent actions when a request fails. Do not describe a request as scheduled or published until its returned state confirms that outcome.

Client behavior and result limits

  • Transport: stateless Streamable HTTP, POST only. Both MCP generations are served on the same URL: - 2026-07-28: server/discover, the per-request _meta envelope, and the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers. - 2025-11-25 back to 2024-11-05: the initialize handshake.
  • Authorization follows the MCP 2026-07-28 authorization spec: - Protected resource metadata at /.well-known/oauth-protected-resource/mcp and at the root. - Authorization server metadata at /.well-known/oauth-authorization-server. - Client ID Metadata Documents are preferred. Dynamic Client Registration is kept for older clients. - PKCE with S256 only. resource (RFC 8707) binds each token to /mcp or /api/v1. iss is sent in every authorization response (RFC 9207).
  • One scope, agent. What an agent may do is decided per workspace by the person, not by scopes: access, read-only, and Autopilot with its channels and daily limit. A read-only token keeps tools/list unchanged; write tools refuse it with forbidden and a sentence saying it is read-only.
  • Errors: - An unknown tool is a JSON-RPC error -32602. - A tool that fails returns isError: true with a text block <code>: <message>, for example forbidden: ... or confirmation_required: ....
  • Retries: create_content and create_post take an optional idempotencyKey (on REST also the Idempotency-Key header). The same key from the same agent in the same workspace within 24 hours returns what the first call created (replayed: true) and creates nothing; the same key with a different input is refused (idempotency_conflict). Scheduling is already idempotent through schedule_versions' confirmationToken.
  • Near duplicates: get_publish_plan lists nearDuplicates and a near_duplicate warning when a version's text is nearly the same as a post published in the last 30 days or scheduled on the same channel. It never blocks; show it to the person.
  • Server identity (MCP Implementation): name heyeveryone, the version of @heyeveryone/mcp, a one-line description, websiteUrl (the app's origin) and icons (/icon.svg). The instructions start with the rules that keep people safe: "Humans publish", the confirmation step and credits, all in the first 512 characters.
  • Size (HEY-70, HEY-145): tools/list sends no outputSchema and compact input schemas (no regex next to a format): 104 tools in about 126,000 characters (HEY-156). Tests keep it at 120 tools or fewer (VS Code allows 128 across all of a person's servers) and 140,000 characters, with 12 tools and 10,000 characters of headroom (D-431). Results still carry structuredContent and the same JSON as text. Full output schemas are in apps/web/src/generated/mcp-tools.json and the OpenAPI document.
  • Renamed and merged tools (D-431): 19 tools became parameters of others (for example get_campaign_results is get_results with groupBy: campaign). MCP lists only the new names. The old REST paths still answer until the next release: they run the new tool, return its result and send Deprecation and Link headers. The tool surface freeze (HEY-156, D-470) then renamed tools to brand words (create_piece is create_content, update_master is update_original) and merged four more, with no aliases. Both tables are in docs/agents/tool-changes.md.
  • Result size: a query result over 75,000 characters (Claude Code's 25,000 tokens, conservatively) is refused with result_too_large: ... saying how to ask for less (a smaller limit, a shorter from/to, a filter). Mutations are never refused for size. query_content pages at 40 rows for agents (a larger limit is lowered; nextCursor says there is more). REST is not limited this way.

Request limits

LimitDefaultCounts
agent120 a minuteevery request of one agent (the agent a token belongs to, so refreshing a token doesn't reset it)
heavy30 a minuteon top, per agent: calls of tools that cost credits or reach outside heyeveryone (publishing, URL fetches, platform checks; tools/list marks them with openWorldHint or a credit note)
account600 a minuteevery agent request of one account, all its agents together
ip600 a minuteevery request from one address (an IPv6 /64), signed in or not

A refused request returns HTTP 429 with Retry-After in seconds. Wait that long, then retry.

Operations