Appearance
Send PDF
Generate a PDF for an existing object instance and send it to one or more recipients as an email attachment.
Requires READ, MANAGE_FORM, MANAGE_OBJECTS, or ADMIN permissions on the target.
Parameters
| name * are required parameters | data type | description |
|---|---|---|
body.objectInstanceId* | string | The object instance ID to render and attach to the outgoing email. |
body.emails* | string[] | Recipient email addresses. The array must contain at least one entry. |
body.subject | string | Optional custom email subject. If omitted, the service generates one from the printable object name and counter ID. |
body.message | string | Optional custom email body text shown in the notification email. |
Return Value
json
{
"message": "PDF sent successfully",
"data": {
"success": true
}
}The generated attachment is sent with a content type of application/pdf.
Error Codes
400 Bad Request: Returned whenobjectInstanceIdis missing or invalid, whenemailsis missing, or when theemailsarray is empty.401 Unauthorized: Returned when the request is unauthenticated or the caller does not have any of the required permissions on the target.500 Server Error: Returned when PDF generation or notification delivery fails unexpectedly.
Examples
bash
curl -X POST "https://app.wombat.software/print/site/site_123/send-pdf" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <firebase-id-token>" \
-d '{"objectInstanceId":"object_123","emails":["safety@example.com"],"subject":"Latest inspection PDF","message":"Attached is the latest printable copy."}'ENDPOINTS
post
/print/{targetPath}/send-pdf