List the tenant's fixed email attachments
GET
/v1/tenants/me/settings/email-attachments
const url = 'https://api.emite.cr/v1/tenants/me/settings/email-attachments';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.emite.cr/v1/tenants/me/settings/email-attachments \ --header 'Authorization: Bearer <token>'Files auto-attached to every invoice email the tenant sends (e.g. terms & conditions, catalog). Metadata only. The capability is gated by Feature.EMAIL_ATTACHMENTS at write + send time; reads are open so the UI can render the (empty) section.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
Array<object>
object
id
required
Attachment id.
string
filename
required
Original (sanitized) filename, shown in the list and used in the email.
string
contentType
required
MIME type.
string
sizeBytes
required
Size in bytes.
number
createdAt
required
When the file was uploaded (ISO 8601).
string
isMandatory
Tenant-fixed only: when true the attachment cannot be omitted from an individual invoice.
boolean
Examplegenerated
[ { "id": "example", "filename": "example", "contentType": "example", "sizeBytes": 1, "createdAt": "example", "isMandatory": true }]Missing or invalid JWT / API key.