Support messages API
Messages to support: from the dashboard with a session, or from the public contact form with none. Staff answer by email.
Every operation of the API reference is generated from the contract the API serves, version 0.1.0. Replace YOUR_API_KEY in the samples with your key; each response shows an example in the contract's shape.
Contact us
/v1/contact-messagesAuthentication. None: anyone may call it, within a budget per client address where the description says so.
Sends a message to support from the public site: stored, and emailed to our support inbox. Staff answer by email, at the address given. It needs no key or session. A browser's request must send no Sec-Fetch-Site but same-origin or none (csrf_rejected). Messages have a budget per client address.
Request body JSON · NewContactMessage
| Field | What it is |
|---|---|
email | Where staff answer you. |
message | The message: 1 to 5,000 characters. |
subject | What it is about, in a line: up to 200 characters. Left out, it is "Message from the contact form". |
Responses
| Status | What it means |
|---|---|
| 202 Accepted | Received: staff will answer by email. SupportReceipt (application/json) |
| 403 Forbidden | A browser's request from another site ( Problem (application/problem+json) |
| 422 Unprocessable Content | Not an email address, no message, one over 5,000 characters, or a subject over 200 ( Problem (application/problem+json) |
| 429 Too Many Requests | Too many messages from this address ( Problem (application/problem+json) |
| 503 Service Unavailable | The message cannot be stored now ( Problem (application/problem+json) |
| Any other status | An error, as RFC 9457 problem details. Problem (application/problem+json) |
Error codes
The errors reference says what each means, whether a retry helps and what it costs.
Request
curl -X POST https://api.zerocaptcha.io/v1/contact-messages \ -H "Content-Type: application/json" \ -d '{ "email": "you@example.com", "message": "message"}'const response = await fetch("https://api.zerocaptcha.io/v1/contact-messages", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ "email": "you@example.com", "message": "message" }),});console.log(response.status, await response.text());import requests
response = requests.post( "https://api.zerocaptcha.io/v1/contact-messages", json={ "email": "you@example.com", "message": "message", }, timeout=30,)print(response.status_code, response.text)Response
{
"id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b",
"receivedAt": "2026-10-01T00:00:00Z",
"replyTo": "owner@example.com"
}csrf_rejected
{
"type": "https://zerocaptcha.io/docs/reference/errors/#csrf_rejected",
"title": "Cross-site request refused",
"status": 403,
"instance": "/v1/contact-messages",
"code": "csrf_rejected",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}validation_failed
{
"type": "https://zerocaptcha.io/docs/reference/errors/#validation_failed",
"title": "Invalid request",
"status": 422,
"instance": "/v1/contact-messages",
"code": "validation_failed",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}rate_limited
{
"type": "https://zerocaptcha.io/docs/reference/errors/#rate_limited",
"title": "Too many requests",
"status": 429,
"instance": "/v1/contact-messages",
"code": "rate_limited",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}service_unavailable
{
"type": "https://zerocaptcha.io/docs/reference/errors/#service_unavailable",
"title": "Service unavailable",
"status": 503,
"instance": "/v1/contact-messages",
"code": "service_unavailable",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}bad_request
{
"type": "https://zerocaptcha.io/docs/reference/errors/#bad_request",
"title": "Bad request",
"status": 400,
"instance": "/v1/contact-messages",
"code": "bad_request",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}Example values in the contract's shape, version 0.1.0.
Write to support
/v1/support-messagesAuthentication. A signed-in dashboard session with its CSRF token, as the dashboard sends them; an API key is refused.
Sends a message to support from the dashboard: stored, and emailed to our support inbox. Staff answer by email, at the signed-in person's address. A suspended account may write too, and appeals its suspension with topic: appeal, which reaches staff marked as an appeal. With the session's CSRF token. Messages have a budget per user.
Request body JSON · NewSupportMessage
| Field | What it is |
|---|---|
message | The message: 1 to 5,000 characters. Task IDs help. |
subject | What it is about, in a line: up to 200 characters. Left out, it is "Question from the dashboard". |
topic |
One of |
Responses
| Status | What it means |
|---|---|
| 202 Accepted | Received: staff will answer by email. SupportReceipt (application/json) |
| 409 Conflict | An appeal from an account that is not suspended ( Problem (application/problem+json) |
| 422 Unprocessable Content | No message, one over 5,000 characters, or a subject over 200 ( Problem (application/problem+json) |
| 429 Too Many Requests | Too many messages from this person ( Problem (application/problem+json) |
| 503 Service Unavailable | The message cannot be stored now ( Problem (application/problem+json) |
| Any other status | An error, as RFC 9457 problem details. Problem (application/problem+json) |
Error codes
The errors reference says what each means, whether a retry helps and what it costs.
Request
curl -X POST https://api.zerocaptcha.io/v1/support-messages \ -H "Content-Type: application/json" \ -d '{ "message": "message", "subject": "A charge I don'\''t recognise"}'const response = await fetch("https://api.zerocaptcha.io/v1/support-messages", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ "message": "message", "subject": "A charge I don't recognise" }),});console.log(response.status, await response.text());import requests
response = requests.post( "https://api.zerocaptcha.io/v1/support-messages", json={ "message": "message", "subject": "A charge I don't recognise", }, timeout=30,)print(response.status_code, response.text)Response
{
"id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b",
"receivedAt": "2026-10-01T00:00:00Z",
"replyTo": "owner@example.com"
}state_conflict
{
"type": "https://zerocaptcha.io/docs/reference/errors/#state_conflict",
"title": "Not possible now",
"status": 409,
"instance": "/v1/support-messages",
"code": "state_conflict",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}validation_failed
{
"type": "https://zerocaptcha.io/docs/reference/errors/#validation_failed",
"title": "Invalid request",
"status": 422,
"instance": "/v1/support-messages",
"code": "validation_failed",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}rate_limited
{
"type": "https://zerocaptcha.io/docs/reference/errors/#rate_limited",
"title": "Too many requests",
"status": 429,
"instance": "/v1/support-messages",
"code": "rate_limited",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}service_unavailable
{
"type": "https://zerocaptcha.io/docs/reference/errors/#service_unavailable",
"title": "Service unavailable",
"status": 503,
"instance": "/v1/support-messages",
"code": "service_unavailable",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}unauthorized
{
"type": "https://zerocaptcha.io/docs/reference/errors/#unauthorized",
"title": "Authentication required",
"status": 401,
"instance": "/v1/support-messages",
"code": "unauthorized",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}Example values in the contract's shape, version 0.1.0.