Thread
Thread/get
Section titled “Thread/get”Capability: urn:ietf:params:jmap:mail
Arguments
| Property | Type | Required | Description |
|---|---|---|---|
accountId | AccountId | Yes | The account to fetch threads from. |
ids | ThreadId[] | No | IDs of specific threads to fetch. |
properties | string[] | No | Thread properties to include. Omit for all properties. |
Response
| Property | Type | Required | Description |
|---|---|---|---|
accountId | AccountId | Yes | The account the threads belong to. |
state | string | Yes | The current state of the Thread type. |
list | Thread[] | Yes | The list of Thread objects that were found. |
notFound | ThreadId[] | No | IDs from the request that could not be found. |
Thread/changes
Section titled “Thread/changes”Capability: urn:ietf:params:jmap:mail
Arguments
| Property | Type | Required | Description |
|---|---|---|---|
accountId | AccountId | Yes | The account to get Thread changes for. |
sinceState | string | Yes | The state to get changes since. |
maxChanges | integer? | No | Maximum number of changes to return. |
Response
| Property | Type | Required | Description |
|---|---|---|---|
accountId | AccountId | Yes | The account these changes are for. |
oldState | string | Yes | The sinceState value passed in the request. |
newState | string | Yes | The current Thread state after these changes. |
hasMoreChanges | boolean | Yes | If true, more changes exist beyond maxChanges; make another call with newState as sinceState. |
created | Id[] | Yes | Thread ids created since sinceState. |
updated | Id[] | Yes | Thread ids updated since sinceState. |
destroyed | Id[] | Yes | Thread ids destroyed since sinceState. |