Docs / Network
list_sent_invitations
List the invitations you sent that are still unanswered.
This action only reads. It changes nothing, so it is safe to try.
What you give it
| Input | What it is | Where to get it |
|---|---|---|
connectionIdoptional | A connection id. Restrict to one LinkedIn sender. Omit to span all live senders. | Run list_linkedin_accounts and use accounts[].id from its answer.15 more places to get it
|
limitoptional | A number, 1 to 300. Max invitations to return (1–300, default 100). | You write it. |
Call it
curl -X POST https://api.heyreagent.com/v1/actions/list_sent_invitations \
-H "Authorization: Bearer YOUR_KEY" \
-H "content-type: application/json" \
-d '{}'The same call in JavaScript
const response = await fetch("https://api.heyreagent.com/v1/actions/list_sent_invitations", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_KEY",
"content-type": "application/json",
},
body: JSON.stringify({}),
});
const answer = await response.json();
console.log(answer);The same call in Python
import requests
response = requests.post(
"https://api.heyreagent.com/v1/actions/list_sent_invitations",
headers={"Authorization": "Bearer YOUR_KEY"},
json={},
)
print(response.json())The same call in n8n
Add an HTTP Request node and fill it in like this:
| Method | POST |
| URL | https://api.heyreagent.com/v1/actions/list_sent_invitations |
| Send Headers | On. Name Authorization, Value Bearer YOUR_KEY |
| Send Body | On. Body Content Type JSON, Specify Body Using JSON, then paste the body below |
{}Put your own key where it says YOUR_KEY. New here? Start with your first call.
What you get back
When it worked, the answer is { "ok": true, "result": { … } }. Inside result:
summary | |
pendingInvitations | |
note |
A field that does not apply to an answer is left out, or is null.
When it did not work, the answer is { "ok": false, "error": "…", "message": "…" }. What each error means.
Good to know
- pendingInvitations[].invitationId is a SENT invitation: withdraw_invitation takes it. respond_to_invitation takes only received ones.
- withdraw_invitations takes no invitationId: it takes back many at once, by campaign or by account (pass pendingInvitations[].connectionId as linkedinConnectionId).
What its answer goes into
get_profileGet a profileget_profile_detailsGet a profile in depthendorse_skillEndorse a skillsend_invitationSend an invitationwithdraw_invitationWithdraw one sent invitation, nowlist_followersList followersget_conversationGet a conversationsend_messageSend a messagesync_inboxRefresh the inboxstart_conversationStart a conversation (InMail, group, company)list_inmailList InMail conversationsget_recent_postsGet someone's recent postscreate_postPublish a postcomment_on_postComment on a postlist_posts_by_authorList a person's or company's postslist_comments_by_personList the comments a person wrotelist_reactions_by_personList what a person reacted to
Guides that use it
- How to invite the people who reacted to a LinkedIn post
- How to send LinkedIn invitations from Claude
- How to withdraw LinkedIn invitations nobody answered
In Claude or ChatGPT
Once connected, ask in your own words. The assistant sees this action as a tool with the same name, list_sent_invitations, and the same inputs.
More in Network
list_connectionsList my connectionssend_invitationSend an invitationpreview_withdraw_invitationsPreview withdrawing invitationswithdraw_invitationsWithdraw sent invitationswithdraw_invitationWithdraw one sent invitation, nowlist_received_invitationsList received invitationsrespond_to_invitationAccept or decline an invitationlist_followersList followers