Conversations
conversations.retrieve returns id, title, and active_response_ids.
Paginate history
Conversation and history list methods return{ data, next_cursor }.
Page options accept cursor and a limit from 1 to 100.
id, response_id, and sequence_number.
An item’s type determines its payload. input contains a request input, answer contains an input request ID and answer, and output contains an output item.
The response ID can be null. See AgentConversationItem.
History pagination returns 409 if the underlying snapshot changes.
Discard the accumulated pages and restart from the first page.
Fork a conversation
atMessageId to copy the available settled history. Active turns are excluded.
The optional createProject field controls project creation. Project placement completes asynchronously.
Share a conversation
allowedAccountIds for account access or scopedAccountId with scopedEmails for recipients within one account.
The optional expiresAt field accepts an ISO 8601 timestamp. Omitting it or passing null removes expiration.
Read the current policy with conversations.sharing.retrieve(id) before replacing it.
The result is null when no policy exists.
Delete a conversation
Deletion can return{ deleted: false } while running work stops.
Repeat the deletion request to complete cleanup.
Recover uncertain writes
Conversation creation is sent once. Rename and deletion can use transport retries. Read the resource after a lost acknowledgement before deciding whether to repeat the write. Request options supportsignal and timeoutMs.