# Get an inbox

**`GET https://myagentmail.com/v1/inboxes/{id}`**

Group: Inboxes
Operation ID: `getInbox`

Returns the inbox detail including IMAP/SMTP credentials and the full address list.

## Path parameters

- `id` (string, required) — Inbox UUID

## Responses

### 200 — OK

```json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "email": "scout-abc123@delegated.cc",
  "canonicalEmail": "scout-abc123-10deac42@myagentmail.com",
  "username": "string",
  "domain": "string",
  "displayName": "string",
  "workspaceId": "00000000-0000-0000-0000-000000000000",
  "addresses": [
    {
      "address": "scout-abc123@delegated.cc",
      "isPrimary": false
    }
  ],
  "imapPassword": "string",
  "imap": {
    "host": "imap.myagentmail.com",
    "port": 993,
    "tls": false,
    "username": "string",
    "password": "string"
  },
  "smtp": {
    "host": "smtp.myagentmail.com",
    "port": 587,
    "starttls": false,
    "username": "string",
    "password": "string"
  },
  "createdAt": "2026-05-01T08:11:44.610Z"
}
```

### 404 — Resource not found

```json
{
  "error": "string",
  "code": "VALIDATION_ERROR"
}
```

## Code samples

### TypeScript

```typescript
import { MyAgentMail } from "myagentmail";

const client = new MyAgentMail({ apiKey: process.env.MYAGENTMAIL_API_KEY! });

// GET /v1/inboxes/{id}
const result = await client.request("get", "/v1/inboxes/{id}", { params: { id: "00000000-0000-0000-0000-000000000000" } });
```

### curl

```bash
curl -X GET 'https://myagentmail.com/v1/inboxes/00000000-0000-0000-0000-000000000000' \
  -H 'X-API-Key: $MYAGENTMAIL_API_KEY'
```

### Python

```python
import os, requests

r = requests.get(
    "https://myagentmail.com/v1/inboxes/00000000-0000-0000-0000-000000000000",
    headers={"X-API-Key": os.environ["MYAGENTMAIL_API_KEY"]},
)
r.raise_for_status()
print(r.json())
```
