Skip to Content
Notification APIDocs

Send with attachments

Upload a file, then attach it to an email.

Upload the file

Send the file as multipart/form-data in the field file (up to 10 MB).

curl -X POST 'https://api.gbnotification.dokploy.geobilgi.net/api/v1/companies/COMPANY_ID/projects/PROJECT_ID/attachments' \  -H 'X-Api-Key: YOUR_API_KEY' \  -F 'file=@invoice.pdf'
201 Created
{
  "id": "0197a6c0-7a1b-7c22-9d33-4e5f6a7b8c9d",
  "projectId": "0197a000-0000-7000-8000-000000000002",
  "projectStorageProviderId": "0197a000-0000-7000-8000-000000000003",
  "fileName": "invoice.pdf",
  "contentType": "application/pdf",
  "sizeBytes": 48213,
  "sha256": "9f2c5d0e4b1a7c3e8f6d2a0b5c9e1f4a7d3b8c6e2f0a9d5b1c7e3f8a4d6b2c0e",
  "createdAt": "2026-11-23T10:14:50+00:00"
}

Send the email with the attachment id

curl -X POST 'https://api.gbnotification.dokploy.geobilgi.net/api/v1/companies/COMPANY_ID/projects/PROJECT_ID/messages' \  -H 'X-Api-Key: YOUR_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "channel": "email",  "recipients": [    {      "type": "Email",      "value": "jane@example.com"    }  ],  "subject": "Your invoice",  "content": "<p>Please find your invoice attached.</p>",  "attachmentIds": [    "0197a6c0-7a1b-7c22-9d33-4e5f6a7b8c9d"  ]}'

Limits

  • Email only (422 message.attachments_not_supported on other channels).
  • Up to 10 files and 20 MB per message, template attachments included (422 message.attachments_too_large).
  • Allowed types: pdf, png, jpg, jpeg, gif, txt, csv, doc, docx, xls, xlsx, ppt, pptx, zip.
  • Unused uploads are deleted after 24 hours; upload right before sending.
  • An attachment used by a message can no longer be deleted.

Details: Attachments.

On this page