---
title: "List terminals"
description: "Lists the computer's terminal sessions. A site with no VM has none."
canonical: "https://www.cool.computer/docs/api-reference/terminals/list-terminals"
---
# List terminals

> Lists the computer's terminal sessions. A site with no VM has none.

```http
GET https://api.cool.computer/api/computers/{id}/terminals
```

Lists the computer's terminal sessions. A site with no VM has none.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `id` (path, string, at least 1 characters, required): The computer's name, such as agent-atlas, or its id (cmp_…). Every caller may use either, the computer's own runtime token included.

## Responses

- `200`: The computer's terminal sessions.
  - `application/json` (object)
    - `sessions` (array of object, required)
      - `id` (string, required)
      - `pid` (integer, required)
      - `command` (string, required)
      - `cwd` (string)
      - `started_at` (string, date-time, required)
      - `running` (boolean, required)
      - `status` (string)
      - `attached` (boolean, required)
      - `expires_at` (string, date-time)
      - `exit_code` (integer)
      - `signal` (string)
      - `ended_at` (string, date-time)
      - `cols` (integer, at least 0, required)
      - `rows` (integer, at least 0, required)
      - `bytes_written` (integer, required)
      - `bytes_dropped` (integer, required)
      - `next_id` (integer, at least 0, required)
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not Found. `computer_not_found`: the computer does not exist or is not yours.
- `409`: Conflict.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `502`: Bad Gateway.
- `503`: Service Unavailable. `computer_starting` means the computer is starting, or stopped and being started again; wait for Retry-After seconds, then retry. Otherwise inspect the problem code and resolution.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl "https://api.cool.computer/api/computers/$PARAM_ID/terminals" \
  -H "authorization: Bearer $TOKEN"
```
