Skip to content

Commit 6cd8c37

Browse files
docs: reorganize messaging API sections
Co-Authored-By: Adil <adil@lix-it.com>
1 parent b086ad0 commit 6cd8c37

6 files changed

Lines changed: 415 additions & 413 deletions

File tree

source/includes/_conversations.md

Lines changed: 0 additions & 84 deletions
This file was deleted.

source/includes/_enrichment.md

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -734,86 +734,6 @@ curl --request GET \
734734

735735
This endpoint uses **1 Standard Credit**.
736736

737-
## Send Connection
738-
739-
This endpoint sends a LinkedIn connection request with an optional note from a standard LinkedIn account.
740-
741-
<aside class="notice">
742-
Uses 1 Standard Credit.
743-
</aside>
744-
745-
<aside class="warning">
746-
Weekly send limits apply to each LinkedIn account:
747-
748-
- **Sales Navigator accounts:** 100 connection requests per week
749-
- **Standard LinkedIn accounts:** 50 connection requests per week
750-
751-
The limit is reset at 00:00 UTC on Monday. If the limit is exceeded the API returns `429 Too Many Requests` with a `Retry-After` header.
752-
</aside>
753-
754-
```python
755-
import requests
756-
import json
757-
758-
url = "https://api.lix-it.com/v1/connections/send"
759-
760-
payload = json.dumps({
761-
"viewer_id": "ACoAACABCDEF1234567",
762-
"profile_link": "https://www.linkedin.com/in/jane-doe-example",
763-
"message": "I would like to add you to my professional network."
764-
})
765-
766-
headers = {
767-
'Content-Type': 'application/json',
768-
'Authorization': lix_api_key
769-
}
770-
771-
response = requests.request("POST", url, headers=headers, data=payload)
772-
773-
print(response.json())
774-
```
775-
776-
```shell
777-
curl --request POST \
778-
--url 'https://api.lix-it.com/v1/connections/send' \
779-
--header 'Authorization: lixApiKey' \
780-
--header 'Content-Type: application/json' \
781-
--data '{"viewer_id":"ACoAACABCDEF1234567","profile_link":"https://www.linkedin.com/in/jane-doe-example","message":"I would like to add you to my professional network."}'
782-
```
783-
784-
> The above command returns JSON structured like this:
785-
786-
```json
787-
{
788-
"success": true,
789-
"entity_urn": "urn:li:fsd_invitation:1234567890123456789"
790-
}
791-
```
792-
793-
If the weekly send limit is reached, the API returns:
794-
795-
```json
796-
{
797-
"error": {
798-
"type": "rate_limit",
799-
"message": "weekly connection request limit reached"
800-
}
801-
}
802-
```
803-
804-
### HTTP Request
805-
806-
`POST https://api.lix-it.com/v1/connections/send`
807-
808-
### Body Parameters
809-
810-
Parameter | Required | Description
811-
--------- | -------- | -----------
812-
viewer_id | true | The LinkedIn ID of the account you would like to send the connection request from
813-
profile_link | true* | The LinkedIn profile URL of the person you would like to connect with
814-
profile_id | true* | The public identifier of the person you would like to connect with (e.g., "jane-doe-example"). Either profile_link or profile_id must be provided.
815-
message | false | A personalised note to send with the connection request. Maximum 300 characters.
816-
817737
## Organisation
818738
<aside class="notice">
819739
Uses 1 Organisation credit.

0 commit comments

Comments
 (0)