Get email settings (sender identity + sandbox redirect + customizations)
Returns the company's sender identity (from name / from address / reply-to), its sandbox redirect settings, and the array of per-email-type customizations. Coalesced into a single response so the dashboard renders them on one round trip. `sandbox_redirect.resolved` is where unmatched sandbox mail will actually go right now — computed by the same resolver the send path uses — and is null when the setting is off or nothing resolves.
Authorization
bearerAuth Supabase JWT bearer token for dashboard / user-scoped endpoints. Role-derived scopes: ROOT/ADMIN → full admin; USER → read-only treasury.
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/auth/companies/email-settings"{
"success": true,
"timestamp": "2019-08-24T14:15:22Z",
"data": null,
"message": "string",
"pagination": {
"total": 0,
"limit": 1,
"offset": 0,
"has_more": true,
"truncated": true,
"cursors": {
"first": "string",
"last": "string"
}
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"success": false,
"timestamp": "2019-08-24T14:15:22Z",
"error": {
"code": "string",
"message": "string",
"details": null
}
}Get the authenticated user's company addresses
Returns active treasury addresses for the current environment plus the rolodex of cross-company saved addresses. Replaces the dashboard's direct Supabase reads (Phase 3.2).
Ensure company accounts are fully provisioned
Ensure company accounts are fully provisioned