Account team and customer tasks

Both live on an account's page (Groups -> an account) and in the API under the group /v1/projects/{p}/groups/{typeindex}/{key}/.... Reading needs person...

Embed
Preview of the card
<a href="https://lucidace.com/help/account-team-and-tasks"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/55720888-0008-4d1a-8a5e-329dc1a2e48a/social-card.svg?v=3e7ae33eec8b" alt="Account team and customer tasks" width="600" height="315"></a>

Both live on an account's page (Groups -> an account) and in the API under the group /v1/projects/{p}/groups/{type_index}/{key}/.... Reading needs person read access; changing needs person write access. Every change is audited.

Relationships (who covers the account)

A relationship is a role key (csm, ae, am, se, sponsor, or any lowercase key), an org member, a start date and an optional end date. Reassigning a CSM = end the old one ("End today") and assign the new one; history stays.

Route

GET .../groups/{t}/{key}/relationships

{data} past, current and upcoming

POST .../groups/{t}/{key}/relationships

{kind, user_id, starts_on?, ends_on?} (user must be an org member)

PATCH /v1/projects/{p}/account-relationships/{id}

{ends_on} (null = ongoing)

DELETE /v1/projects/{p}/account-relationships/{id}

Routing

  • Alerts: add a channel {"type":"account_team","group_type_index":0,"group_key":"acme","relationships":["csm"]} (alert dialog: "Account team"). When the alert fires or resolves, whoever holds those roles on that day is emailed; empty relationships = every current holder.

  • Scouts: emit_signal takes account: {group_type_index, group_key, relationships?}. lc-api files the signal and sends the current holders an in-app notice linking to the inbox report. Any caller of POST /v1/projects/{p}/signals can pass account too.

Tasks (customer-success to-dos)

Title, notes, assignee (org member), due date, open/done. The account page lists open and done tasks; the Customers page (Accounts mode) shows My tasks across accounts.

Route

GET/POST .../groups/{t}/{key}/tasks

`?status=open

GET /v1/projects/{p}/account-tasks

same filters across accounts

PATCH/DELETE /v1/projects/{p}/account-tasks/{id}

patch any field; null clears assignee/due date

Verify: cargo test -p lc-api account_ and cargo test -p lc-api account_team_channels, go test ./ai/scouts -run TestSignalCarriesTheAccount, pnpm --filter web test account-team.

Updated