Skip to Content
Agent tasks

Complete a task

Mark a task done with a plain-text summary the person sees in RankParse.

POSThttps://api.rankparse.com/v1/agent-tasks/:id/completeFreeAPI key

Finishes a task with a summary of what you found and did. A task that is still open is claimed for your credential in the same step, so you do not need to claim it first.

Path parameters

idstringrequired

The task id (tsk_...). A malformed id, an unknown id and another workspace's id return 404 task_not_found.

Body parameters

summarystringrequired

Plain text. Control and invisible characters are removed and the text is cut to 2000 characters. Missing, not a string, or empty after cleaning returns 400 invalid_task_summary.

Response

taskobject

The task with status: "done", completed_at and result_summary set.

Behavior

  • Completing writes a task.completed event, with your summary, to the website's activity feed. It stays visible to the team only unless a team member shares it with clients.
  • A task claimed by another credential, or already done, expired or cancelled, returns 409 task_not_claimable. Completing the same task twice therefore returns 409 the second time.

Errors

HTTPCodeWhen
400invalid_task_summarysummary is missing, not a string, or empty after cleaning.
401invalid_api_keyMissing, invalid or revoked API key.
404task_not_foundMalformed or unknown id, or a task of another workspace.
409task_not_claimableDone, expired, cancelled, or claimed by another credential.
429rate_limitedMore than 60 requests in a minute.

MCP tool: complete_agent_task (accepts task_id, summary).