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

OperationMethod 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 postPOST /api/v1/misc/linkedin/post/reshare
Edit an existing LinkedIn postPATCH /api/v1/misc/linkedin/post
Delete a LinkedIn postDELETE /api/v1/misc/linkedin/post
Edit an existing LinkedIn commentPATCH /api/v1/misc/linkedin/comment
Delete a LinkedIn commentDELETE /api/v1/misc/linkedin/comment
GET /api/v1/misc/linkedin/mentions/tags

Get Linkedin mentionable tags (people & organizations)

misc.linkedin.getTags · requires x-api-key

Parameters

NameInTypeNotes
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
  • people object[] default []
    6 fields
    • kind string required
      One of: person
    • urn string required
    • display string required
    • headline string
    • photoUrl string uri
    • needsDisplayName boolean
  • organizations object[] default []
    5 fields
    • kind string required
      One of: organization
    • urn string required
    • display string required
    • vanityName string
    • logoUrl string 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

POST /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

  • text string default ""
  • tags object[] default []
    2 fields
    • display string required
    • urn string 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
  • commentary string 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

POST /api/v1/misc/linkedin/post/reshare

Reshare an existing LinkedIn post

misc.linkedin.resharePost · requires x-api-key

Request body application/json

  • teamId string required
  • parentPostUrn string required min length 1
  • commentary string required min length 1max length 3,000
  • visibility string nullable default "PUBLIC"
    One of: CONNECTIONS PUBLIC LOGGED_IN CONTAINER
  • disableReshare boolean nullable default false

Example

curl -X POST "https://api.siaran.my/api/v1/misc/linkedin/post/reshare" \
  -H "x-api-key: $SIAR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "teamId": "TEAM_ID",
    "parentPostUrn": "string",
    "commentary": "string"
  }'

Response 200

4 top-level fields
  • success boolean required
  • id string required
  • activity string nullable
  • permalink string nullable

Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 422 · 429 Rate limited · 500 Server error · 502 Network error

PATCH /api/v1/misc/linkedin/post

Edit an existing LinkedIn post

misc.linkedin.editPost · requires x-api-key

Request body application/json

  • teamId string required
  • postId string required
  • description string 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
  • success boolean required
  • permalink string 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

DELETE /api/v1/misc/linkedin/post

Delete a LinkedIn post

misc.linkedin.deletePost · requires x-api-key

Request body application/json

  • teamId string required
  • postId string 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
  • success boolean 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

PATCH /api/v1/misc/linkedin/comment

Edit an existing LinkedIn comment

misc.linkedin.editComment · requires x-api-key

Request body application/json

  • teamId string required
  • commentId string required
  • text string 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
  • success boolean required
  • permalink string 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

DELETE /api/v1/misc/linkedin/comment

Delete a LinkedIn comment

misc.linkedin.deleteComment · requires x-api-key

Request body application/json

  • teamId string required
  • commentId string 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