Check whether Letra wrote a text
POST /v1/writes/check tells you whether a text is one Letra wrote for your account, unedited. Use it to show where a published text came from, to a reader, a moderator or a regulator who asks.
Letra keeps a receipt of every write it answers with a write_id, never the text. The check reads only your own receipts, calls no model and stores nothing.
Request
curl https://letralayer.com/api/v1/writes/check \ -H "Authorization: Bearer $LETRA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"We open a second shop on Friday. Come by early."}'| Field | What it holds |
|---|---|
text | Required. The text to check, up to 100,000 characters. |
Answer
{ "match": true, "write_id": "6f1c...", "written_at": "2026-11-28T10:00:00.000Z"}matchistruewhen one of your writes returned this text.write_idandwritten_atname that write.- Line ends, blank lines and spaces may differ: the text still matches. Change a word and it no longer does.
match: falsemeans no receipt of yours holds the text. It never says a person wrote it: an edited text, another account's write and a write answered withwrite_id: nullall answerfalse.
Writes from before 28 November 2026 match only exactly as Letra returned them, spacing included.
The marker on every write
Every answer that returns text Letra's model wrote carries ai_generated: true beside its write_id: `POST /v1/write`, `POST /v1/rewrite` and the MCP's write tools. Store both with the text, so you can show where it came from and check it here later.
Errors
401 unauthorized without your API key; a personal key for the MCP isn't accepted here. 400 invalid_request for an empty text, and 503 unavailable when Letra can't check right now: send it again. Every code: Limits and errors.
Questions
- Does a match prove a person didn't change the text?
- Yes, as far as the words go: a match means the text is the one Letra returned, with only its spacing changed.
- Can I check a text written for another account?
- No. Each key checks its own account's writes only.