GET /api/v1/settings
Every setting of the organization in one read: who signs its emails, how sign-up behaves, and
whether it can send at all. Deliberately aggregated — an agent that needs six calls to know the
state of an account will make five and get it wrong.
Authorization
| Role in the organization | This endpoint |
|---|---|
OWNER | Allowed |
ADMIN | Allowed |
MEMBER | Allowed |
Example
bash
curl -H "x-api-key: $AGENTMAIL_API_KEY" \
"https://www.agentsmail.io/api/v1/settings"Response
200 OK— the call succeeded.401 Unauthorized— missing or invalid key, or its owner left the organization.429 Too Many Requests— over 120 requests in a minute for this key.
Response fields
effectiveSender is the one to check, not senderEmail. It is the address the next campaign
will really leave under, including the fallback used while no domain is verified.| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the operation was successful |
data.sending.senderEmail | string \ | null |
data.sending.senderName | string \ | null |
data.sending.postalAddress | string \ | null |
data.sending.effectiveSender | string \ | null |
data.optin.required | boolean | Whether a new contact must confirm before being subscribed |
data.optin.subject | string | Subject of the confirmation email — the default when never customized |
data.optin.content | string | Its HTML, same rule |
data.optin.customized | boolean | false means the two fields above are the product defaults |
data.readiness | object | The same object GET /api/v1/me returns under sending: ready, blockers, setup |
Example response
json
{
"success": true,
"data": {
"sending": {
"senderEmail": "hello@mail.example.com",
"senderName": "Example",
"postalAddress": "12 rue des Lilas, 59000 Lille",
"effectiveSender": "Example <hello@mail.example.com>"
},
"optin": {"required": true, "subject": "Confirm your subscription", "content": "<html>…</html>", "customized": false},
"readiness": {"ready": true, "blockers": [], "setup": {"status": "verified", "provisioning": "provisioned"}}
}
}