Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Claim a letter for editing

POST
/api/v3/letters/{letterUuid}/claim
curl --request POST \
--url https://api.tryletterhead.com/api/v3/letters/example/claim \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "claimant": "{\"uniqueId\":\"user-abc123\",\"name\":\"Jane Doe\"}" }'

Claim a letter for editing so other editors are warned itโ€™s in use. claimant is a JSON-encoded string identifying whoโ€™s claiming it โ€” it must decode to an object carrying at minimum a uniqueId field identifying the claiming editor.

If the letter is already claimed by someone else, the claim fails and the response names the current claimant.

letterUuid
required
string

The letterโ€™s unique identifier โ€” an alphanumeric string around ten characters, e.g. ludctamgd6.

Media type application/json
object
claimant
required

A JSON-encoded object that must include a uniqueId field, e.g. '{"uniqueId":"user-abc123","name":"Jane Doe"}'.

string
Example
{
"claimant": "{\"uniqueId\":\"user-abc123\",\"name\":\"Jane Doe\"}"
}

Claim succeeded

Media type application/json
string
Example
This letter's all yours. Enjoy.

The claimant value is malformed โ€” it didnโ€™t decode to an object with a uniqueId.

The letter is already claimed by someone else. The response body names the current claimant.

Still can’t find what you need? Contact support.