curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/linkedin/invitations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "<string>",
"linkedinUrl": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/linkedin/invitations"
payload = {
"accountId": "<string>",
"linkedinUrl": "<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({accountId: '<string>', linkedinUrl: '<string>'})
};
fetch('https://api.tryfuse.ai/api/v1/business/linkedin/invitations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"invitation": {
"invitationId": "7392847562918374512",
"accountId": "t5XY4yQzR9WVrln3bvG3Jw",
"publicIdentifier": "jane-doe",
"linkedinUrl": "https://www.linkedin.com/in/jane-doe"
}
}{
"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 connection invitation
Sends a LinkedIn connection invitation from one of your LinkedIn accounts (seats), or one shared with you, as the app does: within the account’s daily and weekly invitation allowances, with an optional note of up to 200 characters (omit it, or send it empty, to invite without one). LinkedIn refuses a second invitation to someone the account invited recently (409), and a LinkedIn pause on the account answers 429 LINKEDIN_ACCOUNT_RATE_LIMITED. The answer names the invited person; the invitation then shows in GET /business/linkedin/invitations?type=sent. 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 with the conversation replies and new messages.
Errors:
422VALIDATION_FAILED—accountIdis missing,linkedinUrlis not a LinkedIn profile URL,noteis longer than 200 characters, 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.404LINKEDIN_ACCOUNT_NOT_FOUND—accountIdis not a LinkedIn account you own or that is shared with you to send from.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_INVITATION_LIMIT_REACHED— The account has sent its daily or weekly invitations; retry once they refill.409LINKEDIN_INVITATION_ALREADY_SENT— The account invited this person recently, and LinkedIn refuses another invitation for weeks.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/linkedin/invitations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "<string>",
"linkedinUrl": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/linkedin/invitations"
payload = {
"accountId": "<string>",
"linkedinUrl": "<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({accountId: '<string>', linkedinUrl: '<string>'})
};
fetch('https://api.tryfuse.ai/api/v1/business/linkedin/invitations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"invitation": {
"invitationId": "7392847562918374512",
"accountId": "t5XY4yQzR9WVrln3bvG3Jw",
"publicIdentifier": "jane-doe",
"linkedinUrl": "https://www.linkedin.com/in/jane-doe"
}
}{
"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>"
}
}