opted_out=true triggers an immediate
purge of every existing card about the user across every agent in the current
workspace — it does not wait for the next routine sweep.
List My Peer Cards
200 OK
Peer Card Fields
| Field | Type | Description |
|---|---|---|
id | string | Peer card ID |
agent_id | string | Agent that authored the card |
agent_slug | string | Agent slug |
user_slug | string | The card’s user slug |
bytes | integer | Card size in bytes |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
content | string? | Card markdown; omitted when no storage path is configured |
| Status | Condition |
|---|---|
401 | Not authenticated |
400 | Missing workspace context |
Purge My Peer Cards
200 OK
| Field | Type | Description |
|---|---|---|
user_id | string | The requesting user |
purged | integer | Number of cards deleted |
Get Peer Consent
200 OK
| Field | Type | Description |
|---|---|---|
user_id | string | The requesting user |
workspace_id | string | Current workspace |
opted_out | boolean | Whether the user has opted out of peer-card extraction |
opted_out_at | string | ISO 8601 timestamp of opt-out; empty when not opted out |
Set Peer Consent
opted_out=true triggers an immediate
purge of all existing peer cards about the user in this workspace, alongside
the consent change and an audit row.
Auth: Any authenticated user (own data only)
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
opted_out | boolean | Yes | true to opt out (and purge); false to opt back in |
200 OK
purged reflects the number of cards removed by the opt-out (0 when opting
back in).
| Status | Condition |
|---|---|
400 | Invalid JSON or missing workspace context |
401 | Not authenticated |