curl --request PATCH \
--url https://api.tryfuse.ai/api/v1/business/conversations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"channel": "email",
"conversationIds": [
"<string>"
]
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/conversations"
payload = {
"channel": "email",
"conversationIds": ["<string>"]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({channel: 'email', conversationIds: ['<string>']})
};
fetch('https://api.tryfuse.ai/api/v1/business/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"channel": "email",
"results": [
{
"conversationId": "Z21haWw6c2FtQGFjbWUuY29tOjE4YzJmM2E5YjdkMWU0ZjA",
"status": "updated"
},
{
"conversationId": "Z21haWw6c2FtQGFjbWUuY29tOjE4YzJmNGIxZTBhN2QzYzk",
"status": "not_found"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Mark or move many conversations
Applies one change to up to 50 email conversations at once, as the app’s inbox bulk bar does: isRead marks them read or unread, isFavorite stars them or takes the star off, and isArchived, isSpam and isDeleted move them to Archived, Spam or Trash, or with false back to the Inbox, in the order and with the effect described for PATCH /business/conversations/. Each change applies to every email of each conversation, at the mail provider too. Every conversation is answered on its own, in the order sent: updated; not_found when the id is not one GET /business/conversations gave you, or the conversation is gone or on a mailbox you cannot use; too_large when it did not fit in the emails one request may change, after the conversations before it (send it in a smaller request); needs_reconnect when its mailbox’s provider connection has lapsed (reconnect it in the app); failed when the mail provider refused the change for some of its emails, which kept their old state. Every change is safe to repeat, so the conversations that were not updated can simply be sent again. Email only: the app has no bulk change for LinkedIn conversations. Rate limit: 20 requests per minute, 300 per day, the app’s own bulk limits, counted apart from the other conversation reads and changes.
Errors:
422VALIDATION_FAILED—channelis missing or notemail,conversationIdsis missing or empty, holds more than 50 ids or one id twice, none ofisRead,isFavorite,isArchived,isSpamandisDeletedwas sent, more than one ofisArchived,isSpamandisDeletedwas sent (one folder change per request), or the body carries another field.429RATE_LIMITED— More than 20 bulk changes in a minute, or 300 in a day, the app’s own bulk limits, counted apart from the other conversation reads and changes. Retry after the Retry-After / RateLimit-Reset seconds.
Requires one of the following token scopes: inbox.
curl --request PATCH \
--url https://api.tryfuse.ai/api/v1/business/conversations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"channel": "email",
"conversationIds": [
"<string>"
]
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/conversations"
payload = {
"channel": "email",
"conversationIds": ["<string>"]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({channel: 'email', conversationIds: ['<string>']})
};
fetch('https://api.tryfuse.ai/api/v1/business/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"channel": "email",
"results": [
{
"conversationId": "Z21haWw6c2FtQGFjbWUuY29tOjE4YzJmM2E5YjdkMWU0ZjA",
"status": "updated"
},
{
"conversationId": "Z21haWw6c2FtQGFjbWUuY29tOjE4YzJmNGIxZTBhN2QzYzk",
"status": "not_found"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}