API
chat.getThreadHistory
GET https://chat.api.rivet.gg/v1/threads/{thread_id}/history
curl -X GET 'https://chat.api.rivet.gg/v1/threads/{thread_id}/history'

Authorizations

Authorization[header]required
string

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

Path Parameters

thread_idrequired
string

Query Parameters

ts
string

RFC3339 timestamp.

countrequired
number

How many messages to collect in each direction. If querying rivet.api.chat.common#QueryDirection$before_and_after, rivet.api.chat.common#QueryDirection$chat_messages will be count * 2.

query_direction
string

Represents which direction to query messages from relative to the given timestamp.

Response

chat_messagesrequired
array

Ordered old to new. If querying rivet.api.chat.common#before_and_after, this will be count * 2 long.