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

List a draft’s attachments

GET/drafts/{id}/attachments

Lists the files on a draft, confirmed or not.

Needs the permissionattachments:list

Path parameters

idstringrequired
The draft.

Returns

A list of files, each with:

idstring
The file.
filenamestring
Its name.
mimeTypestring
Its type, as it was given.
sizenumber
Its size in bytes.
uploadedboolean
False until the upload is confirmed.

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:list. The X-Required-Scope header names what’s missing.
429rate_limited
More than 120 requests a minute from this key. Wait for Retry-After seconds.
curl https://app.dmu.email/api/v1/drafts/8c1e2f4a/attachments \
  -H "Authorization: Bearer dmk_7f3a9c2e1b4d_Xq8v…"

Response

200 OK

{
  "data": [
    {
      "id": "1f6c8d33",
      "filename": "delivery-note.pdf",
      "mimeType": "application/pdf",
      "size": 84213,
      "uploaded": true
    }
  ]
}

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