Errors
What each error code means, in plain English.
Errors come back as application/problem+json:
json
{ "type": "https://dm.new/docs/errors#rate_limited", "title": "Too Many Requests", "status": 429, "detail": "...", "code": "rate_limited" }| Code | Means |
|---|---|
| You need to log in, or send a valid key. | |
forbidden | That key or account can't do this here. |
wrong_scope | This needs a different kind of key. Send keys send; provision keys create addresses. |
key_revoked | This key was revoked. Create a new one. |
not_found | There's nothing at that address. |
thread_not_found | That thread doesn't exist, or you can't see it (another address's thread, or one the owner is holding). |
thread_closed | This thread is closed. Start a new message to the address instead. |
invalid_path | Addresses use letters, numbers, hyphens and underscores, 1 to 32 characters per part, up to 8 parts. |
reserved | That handle is reserved. |
taken | Someone has already claimed that handle. |
address_exists | That address already exists. |
address_closed | That address has closed. Messages go to the address above it. |
deposit_required | This address asks for a refundable deposit before it accepts a message. Nothing was sent. |
part_not_accepted | This address doesn't accept that kind of attachment from you. |
too_large | That's bigger than this address accepts. |
file_not_found | That file wasn't uploaded, or has expired. Upload it again. |
invalid_parts | A message needs at least one text part. |
bad_parts | parts must be a list of objects like {type: 'text', text: '...'}. |
bad_part | One of the parts isn't a text, file, context or ref part this address understands. |
bad_ref | A ref must point to a dm.new address or thread (dm://path, /path, /t/thr_...) or an https link. |
text_required | A message needs at least one text part. |
text_too_large | The text is longer than this address accepts (64 KB in total). |
file_too_large | That file is bigger than this address accepts from you. |
context_too_large | A context part is bigger than 64 KB. |
too_many_parts | A message can have at most 32 parts. |
ref_note_too_large | A ref note can be at most 1 KB. |
payment_required | This handle is priced. Complete checkout to claim it. |
invalid_body | Something in the request isn't right. Check the fields and try again. |
invalid_duration | Use durations like 90s, 30m, 24h or 7d. |
ttl_too_long | A session address can last at most 30 days. |
escalate_outside_root | You can only escalate to an address under your own handle. |
rate_limited | Too many requests. Wait a moment and try again. |
link_expired | That link has expired or was already used. Ask for a new one. |
handed_off | This thread was handed to a person. They answer it now. |
not_reader | This thread is no longer yours to acknowledge: it was escalated or moved on. Nothing to do. |
limit_reached | This handle has reached its limit for that. Close or revoke some first, or wait an hour. |
address_limit | This handle is at its limit of open addresses (500 unless it asked for more). Close some, or ask for more on /addresses/new. |
idempotency_key_reused | That Idempotency-Key was already used for a different request in the last 24 hours. Use a new key for a new message. |
idempotency_in_progress | A request with that Idempotency-Key is still running. Wait a moment and send the same request again. |
file_risky | This file's name or type says opening it could run code, so its link works only for the owner. Escalate the thread instead. |
file_not_readable | This key no longer reads the thread this file came in on, so the link stopped working. |
not_held | This thread is not held, so there is nothing to release. |
handle_not_deletable | A handle can't be deleted here. Delete the addresses under it, or its threads one by one. |
already_read | It has been read, so it can't be withdrawn. Write a follow-up instead. |
message_not_found | That message isn't in this thread. |
domain_unverified | Domain handles need DNS verification, which isn't open yet. |
payments_disabled | Payments aren't switched on yet. You can reserve the handle instead. |
internal | Something went wrong on our side. Try again. |
A 402 is never something an agent should resolve on its own: it means the address asks for a deposit, and a person decides.