Create Dispatch

View as Markdown

Headers

{{tenant_key_name}}stringOptional

Request

This endpoint expects a multipart form.
expires_atstringRequired

Optional: Dispatch expiration timestamp - date format - must be in the future - falls back to default_dispatch_expiry_days when omitted

document_idstringRequired

Required: Document UUID - exists:documents,id - document MUST be PUBLISHED

send_via_smsstringRequired

Optional: Enable SMS channel - boolean - tenant settings must allow

recipient_namestringRequired

Required if is_external_recipient=true: Recipient name snapshot - max 255 chars

send_via_emailstringRequired

Optional: Enable email channel - boolean - at least one channel required

recipient_emailstringRequired

Optional: Recipient email snapshot - valid email - max 255 chars

recipient_phonestringRequired

Optional: Recipient phone snapshot - max 32 chars

send_via_portalstringRequired

Optional: Enable customer portal channel - boolean

send_via_postalstringRequired

Optional: Enable postal channel - boolean

parent_record_idstringRequired

Optional: Parent record UUID - both-or-neither with parent_record_type

parent_record_typestringRequired

Optional: Polymorphic parent type - registered morph alias - both-or-neither with parent_record_id

is_external_recipientstringRequired

Optional: Recipient is non-CRM external (snapshot only) - boolean - requires allow_external_recipients=true

recipient_customer_idstringRequired

Optional: CRM customer UUID - exists:customers,id - must belong to current tenant

external_recipient_labelstringRequired

Required if is_external_recipient=true: Display label for the external recipient - max 255 chars

recipient_customer_contact_idstringRequired

Optional: CRM customer contact UUID - exists:customer_contacts,id - must belong to current tenant

recipient_customer_location_idstringRequired

Optional: CRM customer location UUID - exists:customer_locations,id - must belong to current tenant

Response

Successful response