Kalo te dokumentacioni
API

Bisedat

Çdo veprim në këtë grup: çfarë pranon, çfarë kthen dhe gabimet me të cilat mund të përgjigjet.

Veprimet

The conversations held with the assistant in the app, as the Chats page lists them. Only the workspace owner reaches the chats: an API key, or an app the owner connected with every address. An access token acting for a member is a 403 owner_only, and a key or an app limited to particular addresses or domains is a 422 capability_unsupported.

GET/chats

List the assistant chats

Lejetthreads:readLexon

The chats of the workspace, newest first, a page at a time, each with its title, how many messages it holds and when it last changed. q searches the titles and sort orders them. Only the workspace owner reaches the chats: an API key, or an app the owner connected with every address. An access token acting for a member is a 403 owner_only, and a key or an app limited to particular addresses or domains is a 422 capability_unsupported.

Requires the threads:read scope.

Parametrat e pyetjes

qstring

Search the titles.

Deri në 200 karaktere
sortstring

newest and oldest order by the last change, and title alphabetically.

Një nga"newest""oldest""title"Parazgjedhja"newest"
limitinteger

Rows per page, 1 to 100.

Të paktën 1Më së shumti 100Parazgjedhja25
cursorstring

The previous page's nextCursor, passed back as it came. It is opaque: it holds where the last row sat in this list's order, so a row deleted or edited between pages never breaks the walk, and the next page starts at the first row that sorts after it. A value this list did not hand out is a 400 invalid_cursor.

Kthen

A page of chats.

Gabimet

Gabimet që mund të kthejë çdo veprim400401403404422500Katalogu i gabimeve

E disponueshme edhe në

SDK
chats.list()chats.listAll()chats.iterate()
CLI
openemail chats list
MCP
listChats

GET/chats/{id}

Retrieve a chat

Lejetthreads:readLexon

One chat by id. Only the workspace owner reaches the chats: an API key, or an app the owner connected with every address. An access token acting for a member is a 403 owner_only, and a key or an app limited to particular addresses or domains is a 422 capability_unsupported.

Requires the threads:read scope.

Parametrat e shtegut

idstringE detyrueshme

The chat id from GET /chats.

Kthen

200Chat

The chat.

Gabimet

Gabimet që mund të kthejë çdo veprim400401403404422500Katalogu i gabimeve

E disponueshme edhe në

SDK
chats.get()
CLI
openemail chats get
MCP
getChat

PATCH/chats/{id}

Rename a chat

Lejetthreads:writeNdryshon të dhëna

Gives the chat a new title. Only the workspace owner reaches the chats: an API key, or an app the owner connected with every address. An access token acting for a member is a 403 owner_only, and a key or an app limited to particular addresses or domains is a 422 capability_unsupported.

Requires the threads:write scope.

Parametrat e shtegut

idstringE detyrueshme

The chat id from GET /chats.

Trupi i kërkesës

titlestringE detyrueshme
Nga 1 deri në 120 karaktere

Kthen

200Chat

The chat with its new title.

Gabimet

Gabimet që mund të kthejë çdo veprim400401403404422500Katalogu i gabimeve

E disponueshme edhe në

SDK
chats.rename()
CLI
openemail chats rename
MCP
renameChat

DELETE/chats/{id}

Delete a chat

Lejetthreads:writeFshin

Deletes the chat and every message in it, for good. Nothing it did in the mailbox is undone. Only the workspace owner reaches the chats: an API key, or an app the owner connected with every address. An access token acting for a member is a 403 owner_only, and a key or an app limited to particular addresses or domains is a 422 capability_unsupported.

Requires the threads:write scope.

Parametrat e shtegut

idstringE detyrueshme

The chat id from GET /chats.

Kthen

Deleted.

Gabimet

Gabimet që mund të kthejë çdo veprim400401403404422500Katalogu i gabimeve

E disponueshme edhe në

SDK
chats.delete()
CLI
openemail chats delete
MCP
deleteChat

Objektet

Chatobject

objectstringE detyrueshme
Një nga"chat"
idstringE detyrueshme
titlestringE detyrueshme
kindstringE detyrueshme
Një nga"chat"
messageCountintegerE detyrueshme
Të paktën 0
updatedAtstringE detyrueshme

When a message last arrived in it.

Formatidate-time

ChatListobject

objectstring
Një nga"list"
dataChat[]
hasMoreboolean

True when another page follows. Pass nextCursor back as cursor to read it.

nextCursorstring

An opaque cursor for the next page, or null on the last page. Pass it back unchanged.

Mund të jetë null

DeletedChatobject

objectstring
Një nga"chat"
idstring
deletedboolean
Një ngatrue