Skip to navigation

List threads

Lists message threads on task groups the caller’s provider org coordinates or executes, newest message first, each with its last message. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (TaskGroupMessageThreadListRes)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

provider_roleenumOptional
Allowed values:
include_threads_without_messagesbooleanOptionalDefaults to false
Include task groups that have no messages yet
pageintegerOptional>=1Defaults to 1
page_sizeintegerOptional1-100Defaults to 20
filter_statuseslist of enums or nullOptional

Filter by task group status(es); defaults to staged and in_progress

filter_driver_idstring or nullOptional
Filter by assigned driver
filter_task_group_typeslist of enums or nullOptional

Filter by task group type(s)

Allowed values:
filter_order_idslist of strings or nullOptional

Filter by order id(s)

filter_shipper_org_idstring or nullOptional

Filter by on-chrt shipper org

filter_off_chrt_shipper_org_data_idstring or nullOptional

Filter by off-chrt shipper org

filter_last_message_from_driverboolean or nullOptional

True keeps threads whose last message was sent by the assigned driver (needs reply); False keeps the rest

filter_unreadboolean or nullOptional

True keeps threads with messages the caller hasn’t read; False keeps fully read threads

filter_last_message_at_timestamp_gtestring or nullOptionalformat: "date-time"

Filter last message timestamp >= value

filter_last_message_at_timestamp_ltestring or nullOptionalformat: "date-time"

Filter last message timestamp <= value

Response

Successful Response
itemslist of objects
total_countinteger
total_unread_countinteger

Errors

422
Unprocessable Entity Error