> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pivotal.app/llms.txt.
> For full documentation content, see https://docs.pivotal.app/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pivotal.app/_mcp/server.

# Task events

One event fires on the `task` resource. Tasks live under an onboarding — both ids are on the payload so you can route to the right team without a second lookup.

EVENT TYPES

| Type             | Fires when                                                                      |
| ---------------- | ------------------------------------------------------------------------------- |
| `task.completed` | A task is marked complete by a teammate, by a portal user, or by an automation. |

PAYLOAD

```json title="task.completed"
{
  "id": "evt_2nQv...",
  "type": "task.completed",
  "data": {
    "object": {
      "id": "tsk_2N...",
      "onboarding_id": "onb_2N...",
      "customer_id": "cus_2N...",
      "display_id": 5102,
      "title": "Share API keys with the Acme team",
      "completed_at": "2026-05-26T14:08:32.000Z",
      "completed_by": "portal:contact_2N...",
      "assignee_email": "csm@yourdomain.com"
    }
  }
}
```