Create a LinkedIn connect link
curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/accounts/linkedin/connect-links \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"successUrl": "<string>",
"failureUrl": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/accounts/linkedin/connect-links"
payload = {
"successUrl": "<string>",
"failureUrl": "<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({successUrl: '<string>', failureUrl: '<string>'})
};
fetch('https://api.tryfuse.ai/api/v1/business/accounts/linkedin/connect-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "https://auth.tryfuse.ai/pqTx5Ew3VWr2q8Kc"
}{
"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>"
}
}Sending accounts
Create a LinkedIn connect link
A hosted LinkedIn sign-in link that connects a new LinkedIn seat, as the app’s Add LinkedIn account does. Send the person to url (valid for 24 hours); once they sign in, the seat appears in GET /business/accounts?channel=linkedin. The seat is billed as in the app: 2,500 credits when it connects and every 30 days after; with too few credits the connection is refused and the seat removed. Pass successUrl and failureUrl to send the person to your own pages afterwards, when your account has addresses approved for this; otherwise leave both out. Rate limit: 20 requests per minute, 600 per day, shared by every route under /business/accounts/ except the SMTP import and its status.
Errors:
403LINKEDIN_ACCOUNT_LIMIT_REACHED— Every LinkedIn seat on your plan is in use.422RETURN_URL_NOT_ALLOWED—successUrlorfailureUrlis not an address approved for your account.422VALIDATION_FAILED—successUrlorfailureUrlis not an https address, or only one of them was sent.429RATE_LIMITED— The quota for the /business/accounts/ routes (20 per minute, 600 per day) is spent, or the LinkedIn service’s own per-user limit refused the call. Retry after the Retry-After / RateLimit-Reset seconds when present, else after a minute.
Requires one of the following token scopes: accounts.
POST
/
business
/
accounts
/
linkedin
/
connect-links
Create a LinkedIn connect link
curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/accounts/linkedin/connect-links \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"successUrl": "<string>",
"failureUrl": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/accounts/linkedin/connect-links"
payload = {
"successUrl": "<string>",
"failureUrl": "<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({successUrl: '<string>', failureUrl: '<string>'})
};
fetch('https://api.tryfuse.ai/api/v1/business/accounts/linkedin/connect-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "https://auth.tryfuse.ai/pqTx5Ew3VWr2q8Kc"
}{
"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>"
}
}Authorizations
Body
application/json