---
title: "List computer email"
description: "Lists the newest inbound and outbound messages in the computer's inbox, newest first."
canonical: "https://www.cool.computer/docs/api-reference/email/list-computer-email"
---
# List computer email

> Lists the newest inbound and outbound messages in the computer's inbox, newest first.

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

Lists the newest inbound and outbound messages in the computer's inbox, newest first.

## 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.
- `limit` (query, integer, 1 to 100): Maximum number of messages to return.

## Responses

- `200`: Email in the computer's inbox.
  - `application/json` (object)
    - `emails` (array of object, required)
      - `id` (string, required)
      - `direction` ("inbound" or "outbound", required)
      - `status` ("received" or "pending" or "sent" or "failed" or "ambiguous" or "rejected", required)
      - `from` (string, required)
      - `envelope_from` (string, required)
      - `sender_authentication` (string)
      - `authenticated_sender` (string)
      - `to` (array of string, required)
      - `subject` (string, required)
      - `text` (string)
      - `html` (string)
      - `message_id` (string)
      - `in_reply_to` (string)
      - `references` (string): The References header: the thread's ancestor Message-IDs, oldest first.
      - `error` (string)
      - `intake_outcome` ("started" or "continued" or "started_after_thread_conflict" or "rejected_unauthenticated_sender" or "rejected_sender_not_owner" or "rejected_owner_domain_unsigned"): What Pi did with an inbound email: started or continued a chat, or rejected it. rejected_owner_domain_unsigned is email from the account owner's verified address whose domain doesn't sign it with DKIM; the owner is sent the steps to turn DKIM signing on, at most once an hour per computer. Absent on outbound email.
      - `intake_detail` (string): For a rejected inbound email, why Pi didn't act on it and what to do next.
      - `created_at` (string, date-time, required)
- `400`: Bad Request.
- `401`: Unauthorized.
- `404`: Not Found. `computer_not_found`: the computer does not exist or is not yours.
- `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.
- `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/emails" \
  -H "authorization: Bearer $TOKEN"
```
