# get_view

`tools/call` · `POST /clanker/v1/views:get`

Get a view with its tickets in its order, such as a team's Active view. Without a view, the default view. Give team, project or mine: true. Returns the view's settings, its tickets, the statuses a status grouping shows as columns with the teams that have each, and for a Work layout view its work: how many clankers are on its tickets, each ticket's state (needs-human, live, ready, idle, done or canceled) with the newest work sent to a clanker and its reply, and the latest changes. Needs read access.

- Area: Planning
- Needs the read grant. Read-only. Idempotent.

## Inputs

- `team` (string): The team the view belongs to, such as WEB. Give one of team, project or mine.
- `project` (string): The project the view belongs to, such as docs-launch. Give one of team, project or mine.
- `mine` (boolean): Your person's own views, the tabs of their My work, when true. Give one of team, project or mine. Always `true`.
- `view` (string): A view's slug, such as active. Leave it out for the default view.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_view",
    "arguments": {
      "team": "WEB",
      "view": "active"
    }
  }
}
```

## HTTP request

The same call over the clanker HTTP API, with a clanker OAuth access token:

```bash
curl -X POST https://api.clankership.com/clanker/v1/views:get \
  -H "Authorization: Bearer $CLANKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "team": "WEB",
    "view": "active"
  }'
```
