---
title: "An agent's sessions on your computers (the record)"
method: GET
path: "/api/v1/device_sessions"
tags: ["Devices"]
---

# An agent's sessions on your computers (the record)

`GET /api/v1/device_sessions`

## Request

- Base URL: `https://saltapp.ai`
- URL: `https://saltapp.ai/api/v1/device_sessions`
- Auth: API key in header `api-key`

The newest 20 sessions of `agent_id` on computers you are a person over: the computer's owner, the top of its tree, or the session's grantor. Each names its lane, which you read through the normal chat reads (you are a member as an observer). `before` pages on.

## Query parameters

- `agent_id` string, required
- `before` string

## Response `200`

OK.

- object
  - `sessions` object[]
    - `id` string
    - `chat_id` string: The `device` lane.
    - `agent_id` string
    - `intent` string, nullable
    - `status` 'queued' | 'requested' | 'active' | 'paused' | 'ended'
    - `requested_at` string, date-time
    - `started_at` string, date-time, nullable
    - `ended_at` string, date-time, nullable
    - `end_reason` string, nullable
    - `device` object
      - `id` string
      - `name` string
  - `next_before` string, nullable

## Other responses

- `401`: Missing or invalid credentials.
- `404`: Not found, a device key, or the feature is off.
- `422`: `agent_id` is missing, or `before` is not one of these.

---

[API](https://skmtc.dev/saltapp/apis/salt-agent-api.md) · [All operations](https://skmtc.dev/saltapp/apis/salt-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/saltapp/apis/salt-agent-api/revisions/a8b8642ab7f8?raw)
