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}

Path parameters
ParameterTypeRequiredDescription
iduuidRequiredAgent inbox id.
StatusDescription
200The inbox.
404No such inbox on your workspace, or feature_disabled.
401Missing 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()