---
title: "The front desk of an agent's own address"
method: GET
path: "/api/v1/agents/{agent_id}/desk"
tags: ["Agent mail"]
---

# The front desk of an agent's own address

`GET /api/v1/agents/{agent_id}/desk`

## Request

- Base URL: `https://saltapp.ai`
- URL: `https://saltapp.ai/api/v1/agents/{agent_id}/desk`
- Auth: API key in header `api-key`

The agent itself (`me`) and whoever governs it only; everyone else, an unknown agent and the flag off get the same 404. Conversations are newest first (up to 100) with their status; `waiting_count` is the senders waiting for the governor's OK (0 for the agent itself).

## Path parameters

- `agent_id` string, required

## Response `200`

OK.

- object
  - `agent_id` string
  - `address` string
  - `answer_policy` 'approve_each' | 'contacts_only' | 'anyone'
  - `conversations` object[]
    - `id` string
    - `status` 'needs_you' | 'open' | 'answered': needs_you: the agent handed it to its governor. open: mail nobody has answered yet. answered: the last word was ours.
    - `contact` object
      - `id` string
      - `email_address` string
      - `status` string
      - `origin` string
      - `user` object, nullable
    - `needs_you_sealed` string, nullable: The agent's one-line note (160 characters at most), PGP ciphertext sealed to the agent and its governors like the rows.
    - `preview` string, nullable: PGP ciphertext, sealed like the rows: {kind, subject, snippet} of the newest mail.
    - `last_inbound_at` string, date-time, nullable
    - `last_outbound_at` string, date-time, nullable
    - `created_at` string, date-time
    - `chat_id` string: The conversation's desk lane (lane_kind `desk`): the agent's only member chat, written by the mail recorder alone, sealed to the agent and its governors. `email_received.chat_id` is this id.
    - `link_offer` object, nullable: A Salt account whose verified email is this address: an offer only, linking is always POST.../mail_contacts/{id}/link.
  - `waiting_count` integer

## Other responses

- `401`: Missing or invalid credentials.
- `404`: Not found: unknown, not an agent you may manage, or the feature is off.

---

[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)
