Get an agent inbox
Read one agent inbox — its address, older addresses that still deliver to it, label, allowed senders and status — with GET /v3/agent-inboxes/{id}.
GET /v3/agent-inboxes/{id}
| Parameter | Type | Required | Description |
|---|---|---|---|
id | uuid | Required | Agent inbox id. |
| Status | Description |
|---|---|
200 | The inbox. |
404 | No such inbox on your workspace, or feature_disabled. |
401 | Missing or invalid API key. |
Code examples
cURL
curl https://api.wemail.io/v3/agent-inboxes/{id} \
-H "Authorization: Bearer afn_live_…"Node.js
const res = await fetch("https://api.wemail.io/v3/agent-inboxes/{id}", {
headers: {
Authorization: `Bearer ${process.env.WEMAIL_API_KEY}`,
},
});
const data = await res.json();Python
import os, requests
r = requests.get(
"https://api.wemail.io/v3/agent-inboxes/{id}",
headers={"Authorization": f"Bearer {os.environ['WEMAIL_API_KEY']}"},
)
data = r.json()