API and MCP
The API lets your own code read a workspace's forms and messages. The same keys open an MCP server, so an AI assistant can answer questions about your messages. Both only read: nothing here sends, changes or deletes a message.
Last updated
API keys
The API and the MCP server are part of the Pro and Business plans. The workspace owner makes keys under API in the dashboard (/account/api-keys). A key of a workspace that moved to Free answers 403 with "error": "plan_required" until it upgrades again. A key starts with fr_live_ and is shown once. Send it with every request:
Authorization: Bearer fr_live_your_key- A key can read every form in the workspace. Keep it like a password, on your server, never in a web page.
- Revoke a key on the same page. A key also stops working when the person who made it leaves the workspace.
- The sign-in cookie never opens the API. A request without a valid key is answered with 401.
Requests and answers
- The base address is
https://formrelay.domodomu.com/api/v1. - Answers are JSON. Times are ISO 8601 in UTC. Ids are UUIDs.
- Each key can make 60 requests a minute. Past that the answer is 429; wait for the next minute.
- An error has a status of 400, 401, 404 or 429 (and 409 for a file that isn't ready). A 400 or 404 carries an
errorcode, and usually amessage:
{ "error": "invalid_limit", "message": "limit must be between 1 and 100." }Endpoints
| Request | Answer |
|---|---|
GET /api/v1/me | The workspace the key belongs to: account.id and account.name. Useful to check a key. |
GET /api/v1/forms | An array of the workspace's forms, by name. Each has id and name. |
GET /api/v1/submissions | Messages, newest first, in pages. See below. |
GET /api/v1/submissions/{id} | One message with its delivery log, or 404. |
GET /api/v1/forms/{id}/submissions | A form's newest kept messages in the webhook's shape (limit up to 25, 3 by default). It exists for Zapier's editor; a form with nothing kept answers one sample. |
The API also has POST /api/v1/hooks and DELETE /api/v1/hooks/{id}. They are for the Zapier app and only accept Zapier's own addresses. To be told the moment a submission arrives, add a signed webhook to the form.
List messages
curl "https://formrelay.domodomu.com/api/v1/submissions?limit=20" \
-H "Authorization: Bearer fr_live_your_key"| Parameter | Meaning |
|---|---|
form_id | Only this form's messages. An id that isn't one of the workspace's forms is answered with 404. |
status | inbox (the default: everything but spam), spam or all. |
since | Only messages received at or after this ISO 8601 time, such as 2026-01-31T00:00:00Z. |
limit | How many to return, from 1 to 100. The default is 50. |
before | The next value of the previous page, to get the page after it. |
The answer has data, an array of messages, and next. When next isn't null, pass it as before for the following page. It is null on the last page.
{
"data": [
{
"id": "0193a1b2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
"form_id": "0193a1a0-1f2e-7d3c-9b4a-5c6d7e8f9a0b",
"received_at": "2026-11-24T10:15:30.123Z",
"status": "delivered",
"spam_reason": null,
"read": false,
"test": false,
"tags": [],
"fields": { "name": "Ada Lovelace", "email": "ada@example.com", "message": "Hello" },
"content_cleared_at": null,
"origin": "https://example.com",
"files": [],
"ai": null,
"deliveries": [
{ "channel": "email", "target": "you@example.com", "status": "sent", "attempts": 1, "error": null }
]
}
],
"next": "639000876301230000"
}Polling for new messages
curl "https://formrelay.domodomu.com/api/v1/submissions?form_id=FORM_ID&status=all&since=2026-01-31T00:00:00Z" \
-H "Authorization: Bearer fr_live_your_key"When you poll with since, overlap by a few minutes and skip the ids you already have: a message can appear a few seconds after its received_at.
One message
curl "https://formrelay.domodomu.com/api/v1/submissions/SUBMISSION_ID" \
-H "Authorization: Bearer fr_live_your_key"A message has the same shape here and in a list.
| Property | Meaning |
|---|---|
id, form_id | The message's id and its form's. |
received_at | When it was accepted. |
status | sending (delivery is under way), delivered, failed (a delivery failed for good), not_sent (no destination took it) or spam. |
spam_reason | Why the filter called it spam, or null. |
read | Whether someone opened it in the inbox. |
test | true for a test submission sent from the dashboard. |
tags | The labels your team gave it, as an array of strings. |
fields | What was submitted, as an object of strings. null once the contents were cleared by the form's retention, so fetch what you need in time. |
content_cleared_at | When the contents were cleared, or null. |
origin | The site it was posted from, or null. |
ai | null, unless AI triage labelled it. Then category, urgency, language and summary. |
deliveries | The delivery log, one entry per destination: channel (such as email, webhook, auto_reply or google_sheets), target (the address, the URL, or an integration's id), status (pending, sent, failed or skipped), attempts and error. |
Files
A message's files lists what was attached: id, field, name, size in bytes and removed (why the file is no longer there, or null). GET /api/v1/submissions/{id}/files/{file id} answers the file's bytes as a download. It answers 404 once the message's contents were cleared or the message deleted, and 409 until the file's malware check has passed.
A deleted message is no longer returned.
MCP server
FormRelay is a Model Context Protocol (MCP) server at https://formrelay.domodomu.com/mcp. An assistant that supports MCP over HTTP with a header can be asked things like "what leads came in this week?" or "what failed to deliver?".
Add it as a remote (HTTP) MCP server and send an API key as the Authorization: Bearer header. In Claude Code:
claude mcp add --transport http formrelay https://formrelay.domodomu.com/mcp --header "Authorization: Bearer fr_live_your_key"| Tool | What it reads |
|---|---|
list_forms | The workspace's forms: id, name, whether each is accepting submissions, and its unread count. |
list_messages | Messages, newest first, up to 50 at a time (20 by default). Filters: form_id, folder (inbox, unread, needs_attention or spam), label, since, search, and before for older ones. |
get_message | One message by id, with its fields, labels, AI triage and delivery log. |
get_usage | This month's submissions against the plan's limit, the plan's name, and how many messages are unread or need attention. |
- All four tools only read. An assistant can't send, resend, label or delete anything through FormRelay.
- The transport is streamable HTTP in its simplest form: each
POSTcarries one JSON-RPC message and gets one JSON answer. There are no sessions, andGETis answered with 405. - The key's rate limit is shared with the API.
- Assistants that can only connect by signing in (OAuth) can't use a key yet.
- What people typed into your forms goes to the assistant you connect, under your agreement with its maker. Results that carry field values tell the assistant to treat them as data, not as instructions.
To check the address and a key by hand:
curl -X POST "https://formrelay.domodomu.com/mcp" \
-H "Authorization: Bearer fr_live_your_key" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Something missing or wrong? Email support@domodomu.com. New to FormRelay? See what it does or start free.