Get a download link for an attachment
The attachment's details and a link that downloads it, valid for 5 minutes.
GET
https://app.usenotix.dev/api/v1/inbound/messages/{id}/attachments/{attachmentId}/linkFull access and read only keys can call this. Sending access keys cannot. Key permissions lists the extra rules some calls have.
The attachment's details and a link that downloads it, valid for 5 minutes. Anyone holding the link can fetch the file until it expires, so do not log or share it. The link sends HTML, SVG and other active types as application/octet-stream. Scoped like the message itself; anything the key may not read answers 404.
Path parameters
idstringrequired
attachmentIdstringrequired
Headers
Authorizationstringrequired
Bearer followed by your API key.
Errors
403
`FORBIDDEN`: the key's creator has left the team.
404
No such message or attachment 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/<attachmentId>/link" \
-H "Authorization: Bearer $NOTIX_API_KEY"
Response200
{
"id": "cm1x8f3k20001qz7v5b9d2e4a",
"filename": "Acme",
"contentType": "string",
"size": 1,
"contentId": "cm1x8f3k20001qz7v5b9d2e4a"
}