POST
/
actions
/
linkedin-extract-post-commenters
/
run
/
schedule
curl --request POST \
  --url https://api.captaindata.com/v4/actions/linkedin-extract-post-commenters/run/schedule \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "cron": "<string>",
  "parameters": {},
  "identity_ids": [
    "<string>"
  ],
  "identity_mode": "direct",
  "inputs": [
    {
      "linkedin_post_url": "<string>"
    }
  ],
  "callback": {
    "url": "https://example.com/callback",
    "headers": {}
  },
  "timezone": "<string>",
  "schedule_at": "2023-11-07T05:31:56Z"
}'
{
  "schedule_uid": "<string>",
  "status": "ACTIVE",
  "cron": "<string>",
  "timezone": "<string>",
  "next_execution_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z"
}

To run LinkedIn actions, you must first create a user and connect a LinkedIn account, either using our Chrome Extension, username/password login, or Rented Accounts for a hassle-free setup.

Async action calls automatically handle pagination through the X-AUTO-PAGINATE header, iterating over all pages of results and sending batches to your callback URL. You can limit the total number of results with the parameters.max_results param (see “Body” section).

Callback Delivery: Both async and schedule modes deliver results via the callback URL provided in your request.

Consistent Format: All execution modes use the same action logic, so inputs and results are identical regardless of mode.

Error Handling: Errors follow the standard API error format.

async callback format
{
  "run": {
    "run_uid": "string",
    "batch_uid": "string",
    "status": "CREATED" || "INVALID" || "QUEUED" || "SCHEDULED" || "BLOCKED" || "STOPPED" || "RUNNING" || "FAILED" || "PARTIAL_SUCCEEDED" || "SUCCEEDED",
  },
  "input": {} || null,
  "error": {} || null,
  "results": [] || null
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Response

200
application/json

Default Response

The response is of type object.