st.retrieveInvitations
This action retrieves all incoming invitations currently shown in the LinkedIn invitation manager.
In the SDK this is the retrieveInvitations method. It takes the parameters below except label and then, which exist only in workflow JSON, and returns the result below in data.
In the CLI this is linkedin connection invitations – the command is below, under Parameters.
Constraints
⏺️ Root Start: allowed.
⬆️ Parent Actions: N/A.
⬇️ Child Actions: N/A.
Parameters
{
"actionType": "st.retrieveInvitations",
"label": "invitations1"
}In AI assistants, the MCP server runs this action as the retrieve_invitations tool.
In the CLI this is linkedin connection invitations:
bash
linkedin connection invitations --jsonlabel(optional) – custom label for tracking this action in workflow completion.thenis not supported.
Result options
This action always completes successfully. If there are no incoming invitations, it returns an empty array.
json
{
"actionType": "st.retrieveInvitations",
"label": "invitations1",
"success": true,
"data": [
{
"invitationType": "connect",
"name": "John Doe",
"urn": "urn:li:member:123456789",
"publicUrl": "https://www.linkedin.com/in/johndoe",
"headline": "Founder & CEO at Example Company",
"note": "I would like to connect."
},
{
"invitationType": "companyFollow",
"name": "Jane Smith",
"urn": "urn:li:member:234567890",
"publicUrl": "https://www.linkedin.com/in/janesmith",
"companyUrl": "https://www.linkedin.com/company/example-company",
"companyName": "Example Company"
},
{
"invitationType": "newsletterSubscribe",
"name": "Carlos Santos",
"urn": null,
"publicUrl": "https://www.linkedin.com/in/carlossantos",
"newsletterUrl": "https://www.linkedin.com/newsletters/example-1234567890",
"newsletterName": "Example Newsletter"
}
]
}Every item contains:
invitationType–connect,companyFollow, ornewsletterSubscribe.name– name of the person who sent the invitation.urn– URN of that person, ornullif LinkedIn does not expose it.publicUrl– public LinkedIn URL of that person.
Type-specific fields:
connect:headlineandnote(each can benull).companyFollow:companyUrlandcompanyName(companyNamecan benull).newsletterSubscribe:newsletterUrlandnewsletterName(newsletterNamecan benull).