# get_view

`tools/call` · `POST /agent/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 or project. Returns the view's settings, its tickets, and the statuses a status grouping shows as columns. 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 team or project, not both.
- `project` (string): The project the view belongs to, such as docs-launch. Give team or project, not both.
- `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 agent HTTP API, with an agent OAuth access token:

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