Skip to main content
GET
List Documents

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

counterpartyId
string<uuid>[] | null

Only documents with these organizations; repeat to OR. Omit for all.

Maximum array length: 100
engagementId
string<uuid>[] | null

Documents on these deals, plus the counterparty-wide ones that also govern them; repeat to OR. Omit for all.

Maximum array length: 100
type
(null | enum<string>)[] | null

Only documents of these kinds; repeat to OR. Omit for all.

Maximum array length: 100
Available options:
agreement,
proposal,
diligence,
invoice,
other
status
(null | enum<string>)[] | null

Only documents at these points in the lifecycle; repeat to OR. Omit for all.

Maximum array length: 100
Available options:
draft,
sent,
redlining,
review,
signing,
countersign,
signed,
declined,
expired,
cancelled

Only documents whose row holds every word, in any order, case-blind, % and _ matched as written: the name, type, status (in review, countersigning…), counterparty and deal.

Maximum string length: 200
updatedAfter
null | string<date-time>

Only documents touched after this instant (RFC3339).

threadId
string<uuid>[] | null

Only documents that share an event with these threads: one a thread holds now that the document holds too. Repeat to OR.

Maximum array length: 100
sort
enum<string>

created (default) = newest first; recent = last touched first.

Available options:
created,
recent
drafts
boolean

Also attach the agent's open proposals on each document, as a sparse present / future beside it. Off by default.

count
boolean

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

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

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