Skip to main content
GET
List Messages

Authorizations

Authorization
string
header
required

A Turtle API key (sk_...) as a bearer token.

Path Parameters

organizationId
string<uuid>
required
Example:

"248df4b7-aa70-47b8-a036-33ac447e668d"

Query Parameters

kind
enum<string>[] | null

Only these kinds; repeat to OR.

Maximum array length: 6
Available options:
text,
question,
answer,
reaction,
tool,
status
sender
enum<string>

agent | person.

Available options:
agent,
person
entityType
string

An entity the messages are about (among others), with entityId; event names an event, mutation a change.

entityId
string<uuid>
Example:

"248df4b7-aa70-47b8-a036-33ac447e668d"

refId
string<uuid>

Only the replies to this message.

Example:

"248df4b7-aa70-47b8-a036-33ac447e668d"

open
null | boolean

Questions only: true the ones no answer replies to yet, false the answered ones.

room
enum<string>

Which room: omit for the team room; you is the caller's own private room with their agent (a member, signed in or with their own API key); all is every room, for the agent tier's bearer alone.

Available options:
you,
all
since
null | string<date-time>

Only messages said at or after this instant (RFC3339), oldest first: a reader catching up from where it stopped.

count
boolean

Also answer how many messages match the filter in all, over every page.

poll
boolean

Read as a poll: every row oldest first from the cursor (or from since, to start), a row handed out as soon as it is written, and nextCursor on every page that has rows — where the next poll resumes; an empty page means caught up, keep the cursor you sent. No other filter.

wait
integer

With poll: when nothing is there yet, hold the request up to this many seconds and answer as soon as a row is.

Required range: 1 <= x <= 25
limit
integer

Page size; default 25.

Required range: 1 <= x <= 100
cursor
string

Opaque cursor from the previous page's nextCursor; omit for the first page.

Response

OK

messages
object[] | null
nextCursor
string
total
null | integer