Gozem Developer DocsDocs
Courier API › Trip

Get Trip Messages

gethttps://sandbox-api.gozem.co/courier/v1/trips/{trip_id}/messages

Retrieve the full message history between client and driver for a trip.

Path parameters

stringrequired

Trip ID (TRP_xxx format or numeric ID)

min 1 charspattern ^(TRP_\d+|\d+)$

Response 200

dataobjectrequired

The in-trip chat thread

chat_idstring

Unique message chat identifier

messagesarray of objectrequired

Messages exchanged on the trip, oldest first

object
contentstringrequired

Message content

datestringrequired

Message timestamp

date-time
senderobjectrequired

Author of the message

namestringrequired

Sender name

phonestringrequired

Sender phone number

sender_idstringrequired

Sender ID

typestring or string or stringrequired

Who the message came from

statusstring or string or stringrequired

Message status

trip_idstringrequired

Unique trip identifier

messagestringrequired

Human-readable outcome. Defaults to `Ok`.

successbooleanrequired

Always `true` on a success response.

true

Errors

Every failure returns the same envelope. Branch on code — it is the stable contract; message is human-facing and may be reworded or localized. See the error reference for what each code means.

400401403404405409413415429500502