List the homepage pins the caller can see.
Without a filter: the caller's own homepage, that is the pins for the caller and their groups, minus targets the caller cannot read, one pin per target. With target_type and target_id: every pin of that one target, none collapsed, each with its author, for a target the caller can open. Pins the caller pinned for themselves need View Own Pins; the pins shown to a group, and with a filter every other user's pin, need View Shared Pins, so an administrator who holds it can find the pins to remove.
| |
|---|
| Scope | analytics:read |
| Asynchronous | No |
| MCP tool | list_pins |
| Paging | keyset |
| Default order | pin_id |
| Sort fields | pin_id |
| Filters | target_type, target_id |
Parameters
| Name | In | Type | Required | Description |
|---|
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
target_type | query | array of string | Optional | |
target_id | query | array of string | Optional | |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
200 body
| Field | Type | Required | Description |
|---|
items | array of Pin | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required | |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
Pin
| Field | Type | Required | Description |
|---|
pin_id | string | Required | |
pin_metadata | string or null | Required | Free JSON text the pin carries, or null. |
pinned_at | string (date-time) | Required | |
pinned_by | UserRef or null | Required | Who pinned it; null when that user no longer exists. |
scope | object or object or object | Required | The user or group the pin is shown to. |
target | object or object or object or object or object or object | Required | The pinned dataview, interface, analytics view, record template or graph view. |
target_name | string or null | Required | The target's name as stored on the pin; null when the caller cannot open the target. |
UserRef
| Field | Type | Required | Description |
|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required | |