List a message's attachments

List the files attached to one received message: id, file name, the type the sender gave, size, and the content id of inline images.

GEThttps://app.usenotix.dev/api/v1/inbound/messages/{id}/attachments

Full access and read only keys can call this. Sending access keys cannot. Key permissions lists the extra rules some calls have.

List the files attached to one received message: id, file name, the type the sender gave, size, and the content id of inline images. Messages that failed the virus check have no attachments. The same keys read it as the message itself: a key pinned to a domain reads only mail delivered to that domain, and a key made by a team member only the mail of that member's inboxes. Another team's message, or one the key may not read, answers 404.

Path parameters

idstringrequired

Headers

Authorizationstringrequired

Bearer followed by your API key.

Errors

403

`FORBIDDEN`: the key's creator has left the team.

404

No received message with this id that the key may read.

Every error has the same shape. See all error codes.

curl -X GET "https://app.usenotix.dev/api/v1/inbound/messages/<id>/attachments" \
  -H "Authorization: Bearer $NOTIX_API_KEY"
Response200
{
  "data": [
    {
      "id": "cm1x8f3k20001qz7v5b9d2e4a",
      "filename": "Acme",
      "contentType": "string",
      "size": 1,
      "contentId": "cm1x8f3k20001qz7v5b9d2e4a"
    }
  ]
}
Open in ClaudeOpen in ChatGPT