Skip to main content

Send a message about a delivery.

POST 

/truckers/deliveries/msg/:id

This endpoint allows sending messages related to a specific delivery.

Features:

  • Supports text and attachments (up to 6 images)
  • Automatically logs author (name and ID) and timestamp
  • Permanently stores messages associated with the delivery
  • Validates that the delivery allows messages (can_message=true)

Use cases:

  • Report incidents during transport (breakdowns, delays)
  • Send updates on delivery status
  • Share photos as proof of loading/unloading
  • Communicate changes in schedules or routes

Notes:

  • Requires valid JWT authentication
  • Only works for deliveries assigned to the carrier
  • The authenticated user is automatically registered as the author
  • Images are uploaded via multipart/form-data
  • The timestamp is automatically generated on the server (UTC)

Request

Responses

Message sent successfully

Response Headers