Endpoint
Headers
| Header | Type | Required | Description |
|---|---|---|---|
x-api-key | string | Yes | Your OutX API key |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_agent_task_id | string | Yes | The task ID returned by any LinkedIn API endpoint |
Response
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the request was successful |
data.id | string | The task ID |
data.status | string | Current task status: pending or completed |
data.task_input | object | The original input you provided when creating the task |
data.task_output | object | null | The task result. null while status is pending, populated when completed |
Status Values
| Status | Description |
|---|---|
pending | The task has been created and is waiting to be picked up by the Chrome extension |
completed | The task has finished and results are available in task_output |
Polling Pattern
Since all LinkedIn API tasks are asynchronous, you need to poll this endpoint to get results. Here is the recommended pattern:- Call a LinkedIn API endpoint (e.g.,
fetch-profile) to create a task - Receive the
api_agent_task_idin the response - Poll
get-task-statusevery 5 seconds - Stop polling when
statusiscompleted - Read the results from
task_output
Code Examples
Basic Polling
Polling with Bash Loop
Team Scoping
Task status queries are scoped to your team. You can only retrieve the status of tasks that were created with your API key. Attempting to check a task that belongs to a different team will return a404 error.
Error Responses
| Status | Error | Description |
|---|---|---|
400 | Missing or invalid 'api_agent_task_id' | The api_agent_task_id query parameter is missing or not a string |
401 | Missing API Key / Invalid API Key | API key is missing or invalid |
403 | Plugin installation required... | No team member has an active Chrome extension. See Authentication |
404 | Agent task not found | The task ID does not exist or belongs to a different team |
FAQ
How often should I poll?
How often should I poll?
We recommend polling every 5 seconds. This provides a good balance between responsiveness and avoiding unnecessary requests. Most tasks complete within 10-60 seconds.
What happens if a task never completes?
What happens if a task never completes?
In rare cases, a task may remain in
pending status if the Chrome extension is not running or encounters an issue. We recommend setting a timeout of 2-3 minutes. If a task has not completed within that window, check that the Chrome extension is active and try creating a new task.Can I check the status of multiple tasks at once?
Can I check the status of multiple tasks at once?
Currently, you can only check one task at a time. If you need to monitor multiple tasks, make separate requests for each task ID.
Do tasks expire?
Do tasks expire?
Task records are persisted in the database. You can check the status of completed tasks at any time to re-read the output.
What task_type values will I see in task_input?
What task_type values will I see in task_input?
The
task_type field in task_input indicates which endpoint created the task:agent_profile_fetch- from Fetch Profileagent_profiles_tracking- from Fetch Postsagent_like_post- from Like Postagent_comment_post- from Comment on Post
Related
- Fetch Profile - Creates profile fetch tasks
- Fetch Posts - Creates post fetch tasks
- Like Post - Creates like tasks
- Comment on Post - Creates comment tasks

