# PINS

pins endpoints.

**Base URL:** `https://api.trustpager.com/functions/v1/api/v1`

## Endpoints

### GET /pins

List what is pinned to the top of the Work Overview for the person this connection belongs to: the workspace's pins for everyone first, then their own, each in order. Each pin has its item_type (app, spreadsheet or whiteboard), item_id, name, for_everyone, position and a url that opens it. Pins to things the person cannot open are left out.

**Scopes:** `pins:read` — [full detail](./pins/get-pins.md)

### PATCH /pins/:pin_id

Move a pin to a new place among its group (the workspace's pins for everyone, or the person's own). 0 is the front; the others keep their order around it. Pins for everyone are moved by workspace owners and admins only.

**Scopes:** `pins:write` — [full detail](./pins/patch-pins-pin-id.md)

### POST /pins

Pin an app, spreadsheet or whiteboard to the top of the Work Overview so it is one click away. By default the pin is personal (only this person sees it); for_everyone pins it for the whole workspace and is for workspace owners and admins only. At most 50 pins each. Refused when the item is already pinned the same way, or the person cannot open it.

**Scopes:** `pins:write` — [full detail](./pins/post-pins.md)

### DELETE /pins/:pin_id

Unpin something from the Work Overview. The app, spreadsheet or whiteboard itself is not touched. Pins for everyone are removed by workspace owners and admins only.

**Scopes:** `pins:delete` — [full detail](./pins/delete-pins-pin-id.md)
