LinkedIn endpoints
LinkedIn endpoints in the Siar social media API: 7 operations that exist on LinkedIn only, with parameters, body fields, responses and curl examples.
Updated
These operations exist for LinkedIn only. The shared operations (posts, comments, analytics) are in the API reference; all network-specific areas are listed under network-specific operations.
Operations
| Operation | Method and path |
|---|---|
| Get Linkedin mentionable tags (people & organizations) | GET /api/v1/misc/linkedin/mentions/tags |
| Build Linkedin text, insert mentions at tag placeholders. | POST /api/v1/misc/linkedin/mentions/builder |
| Reshare an existing LinkedIn post | POST /api/v1/misc/linkedin/post/reshare |
| Edit an existing LinkedIn post | PATCH /api/v1/misc/linkedin/post |
| Delete a LinkedIn post | DELETE /api/v1/misc/linkedin/post |
| Edit an existing LinkedIn comment | PATCH /api/v1/misc/linkedin/comment |
| Delete a LinkedIn comment | DELETE /api/v1/misc/linkedin/comment |
/api/v1/misc/linkedin/mentions/tags Get Linkedin mentionable tags (people & organizations)
misc.linkedin.getTags · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
teamId required | query | string | |
q | query | string | |
url | query | string | |
displayName | query | string | |
scope | query | string | One of people, organizations, all · default "all" |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/linkedin/mentions/tags?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
2 top-level fields
-
peopleobject[] default []6 fields
-
kindstring requiredOne of:person -
urnstring required -
displaystring required -
headlinestring -
photoUrlstring uri -
needsDisplayNameboolean
-
-
organizationsobject[] default []5 fields
-
kindstring requiredOne of:organization -
urnstring required -
displaystring required -
vanityNamestring -
logoUrlstring uri
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/linkedin/mentions/builder Build Linkedin text, insert mentions at tag placeholders.
misc.linkedin.buildCommentary · requires x-api-key
Request body application/json
-
textstring default "" -
tagsobject[] default []2 fields
-
displaystring required -
urnstring required
-
Example
curl -X POST "https://api.siaran.my/api/v1/misc/linkedin/mentions/builder" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"text": "",
"tags": []
}' Response 200
1 top-level fields
-
commentarystring required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/linkedin/post Edit an existing LinkedIn post
misc.linkedin.editPost · requires x-api-key
Request body application/json
-
teamIdstring required -
postIdstring required -
descriptionstring required
Example
curl -X PATCH "https://api.siaran.my/api/v1/misc/linkedin/post" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"postId": "POST_ID",
"description": "Hello from Siar"
}' Response 200
2 top-level fields
-
successboolean required -
permalinkstring required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/linkedin/post Delete a LinkedIn post
misc.linkedin.deletePost · requires x-api-key
Request body application/json
-
teamIdstring required -
postIdstring required
Example
curl -X DELETE "https://api.siaran.my/api/v1/misc/linkedin/post" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"postId": "POST_ID"
}' Response 200
1 top-level fields
-
successboolean required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/linkedin/comment Edit an existing LinkedIn comment
misc.linkedin.editComment · requires x-api-key
Request body application/json
-
teamIdstring required -
commentIdstring required -
textstring required min length 1max length 1,250
Example
curl -X PATCH "https://api.siaran.my/api/v1/misc/linkedin/comment" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"commentId": "COMMENT_ID",
"text": "Hello from Siar"
}' Response 200
2 top-level fields
-
successboolean required -
permalinkstring nullable
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/linkedin/comment Delete a LinkedIn comment
misc.linkedin.deleteComment · requires x-api-key
Request body application/json
-
teamIdstring required -
commentIdstring required
Example
curl -X DELETE "https://api.siaran.my/api/v1/misc/linkedin/comment" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"commentId": "COMMENT_ID"
}' Response 200
Same fields as the response of Delete a LinkedIn post.
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error