curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/messages \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/messages"
payload = { "content": "<string>" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: '<string>'})
};
fetch('https://api.tryfuse.ai/api/v1/business/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": {
"channel": "linkedin",
"conversationId": "Xk3bQ8sLR2iT0aVw9yZp4A",
"messageId": "7393120458812637184",
"status": "sent"
}
}{
"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>"
}
}Send a new message
Sends a new message on one channel. Email: from one of your mailboxes (from, as GET /business/accounts?channel=email lists it) to to, with optional cc / bcc, under the app’s send rules (see the reply route); scheduledDateTime stores the email to go out at that time, as the app’s Send later does. The email starts its own thread, which the provider names as it sends, so conversationId is null: it appears in GET /business/conversations?channel=email&folder=sent once it goes out, and a scheduled email is not listed before then. LinkedIn: starts a chat with the person at linkedinUrl from the LinkedIn account accountId, your own or one shared with you with inbox access, and sends content as its first message, within that account’s message allowances. inMail: true sends an InMail instead, with an optional subject, to someone the account is not connected to; it spends one of the account’s InMail credits. Send an X-Idempotency-Key header of 8 to 200 characters to make retries safe: the same request with the same key within 24 hours answers the first result and sends nothing, and the key on a different request answers 409. A first request refused before anything was sent (any 4xx) can be retried under its key; one that failed in a way that may still have sent it answers 409 IDEMPOTENCY_KEY_OUTCOME_UNKNOWN instead of sending again. Rate limit: 20 requests per minute, 600 per day, shared by every send route.
Errors:
422VALIDATION_FAILED— A field the channel needs is missing (email:from,to,subject; LinkedIn:accountId,linkedinUrl), a field of the other channel was sent,contentis blank or too long, an address is not an email address,linkedinUrlis not a LinkedIn profile URL, a LinkedInsubjectwas sent withoutinMail: true, the body carries another field, or theX-Idempotency-Keyheader was sent with a value outside 8-200 characters, or twice.409IDEMPOTENCY_KEY_IN_USE— A request with thisX-Idempotency-Keyis still sending; retry it shortly to get its result. If it keeps answering this, the first request stopped before its result was recorded: check whether it was sent before sending again with a new key.409IDEMPOTENCY_KEY_REUSED— ThisX-Idempotency-Keywas sent in the last 24 hours with a different request; nothing was sent.409IDEMPOTENCY_KEY_OUTCOME_UNKNOWN— The first request with thisX-Idempotency-Keyfailed in a way that may still have sent it (a server error or a timeout), so nothing more was sent. Check whether it was sent before sending again with a new key.404MAILBOX_NOT_FOUND— The mailbox to send from is not yours, or not shared with you with inbox access.422INVALID_RECIPIENT— No recipient is a valid email address.422RECIPIENT_UNSUBSCRIBED— A recipient opted out of email from your team; nothing was sent. A reply in a conversation they wrote into after opting out can still go.429MAILBOX_RATE_LIMITED— The mail provider throttled the mailbox; nothing was sent and, as in the app, its campaign sends are paused.422MAILBOX_NEEDS_RECONNECT— The mailbox’s provider connection lapsed or rejected the send, and the app disconnected it; reconnect it in the app.422MAILBOX_TEMPORARILY_UNAVAILABLE— The mail provider is refusing the mailbox for now; nothing was sent. Retry in a few minutes.404LINKEDIN_ACCOUNT_NOT_FOUND—accountIdis not a LinkedIn account you own or that is shared with you to send from.403LINKEDIN_PERMISSION_DENIED—accountIdis shared with you for campaigns only; a new chat, like a reply, needs inbox access.422LINKEDIN_ACCOUNT_DISCONNECTED— The LinkedIn account is disconnected; reconnect it in the app.429LINKEDIN_ACCOUNT_RATE_LIMITED— LinkedIn is limiting the account for now and Fuse holds its sends, for up to a day; nothing was sent. Retry-After, when present, is the seconds left until the hold ends.422LINKEDIN_MESSAGE_LIMIT_REACHED— The LinkedIn account has sent its daily or weekly messages; retry once they refill.422LINKEDIN_INMAIL_NOT_AVAILABLE— InMail needs a Premium, Sales Navigator or Recruiter account, and this one has none.422LINKEDIN_INMAIL_LIMIT_REACHED— The account has no InMail credits left, or has sent its daily, weekly or monthly InMails.422LINKEDIN_PROFILE_NOT_FOUND— LinkedIn found no profile atlinkedinUrl(renamed or removed); nothing was sent.429RATE_LIMITED— Too many sends: the quota every send route shares (20 per minute, 600 per day) or, on LinkedIn, the LinkedIn service’s own per-user send limit was exceeded. Retry after the Retry-After / RateLimit-Reset seconds when present, else after a minute.
Requires one of the following token scopes: inbox.
curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/messages \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/messages"
payload = { "content": "<string>" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: '<string>'})
};
fetch('https://api.tryfuse.ai/api/v1/business/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": {
"channel": "linkedin",
"conversationId": "Xk3bQ8sLR2iT0aVw9yZp4A",
"messageId": "7393120458812637184",
"status": "sent"
}
}{
"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>"
}
}