Base URL
https://app.dmu.email/api/v1
Authentication
Bearer dmk_… API key
Rate limit
120 requests a minute per key

Remove an attachment

DELETE/attachments/{id}

Takes a file off a draft. Only off a draft: a file on a sent message is part of what the recipient has.

Needs the permissionattachments:delete

Path parameters

idstringrequired
The file.

Returns

idstring
The file.
deletedboolean
Always true.

Errors

401invalid_key
The key is wrong, expired or revoked. With no Authorization header at all, the code is missing_credentials.
403missing_scope
The key doesn’t have attachments:delete. The X-Required-Scope header names what’s missing.
404not_found
There’s no such file, or the key’s owner can’t see it.
409not_a_draft
The file is on a message that has been sent.
429rate_limited
More than 120 requests a minute from this key. Wait for Retry-After seconds.
curl https://app.dmu.email/api/v1/attachments/1f6c8d33 \
  -X DELETE \
  -H "Authorization: Bearer dmk_7f3a9c2e1b4d_Xq8v…"

Response

200 OK

{
  "data": {
    "id": "1f6c8d33",
    "deleted": true
  }
}

Every response wraps its result in data. A page of threads adds nextCursor, which is null on the last page.