Accounts
Manage SMTP and Google sending identities. List and get responses never include passwords or OAuth tokens.GET /v1/accounts
List accounts
Returns all sending identities for the authenticated user, newest first. Passwords and OAuth tokens are never included.
Response fields
- data (
Account[]) — Public account fields only (no secrets).
Examples
200 — OK
cURL
POST /v1/accounts
Create account
Create an SMTP or Google sending account. For SMTP, send smtp_host, smtp_port, smtp_username, smtp_password. For Google, send google_access_token and google_refresh_token (and usually google_email).
Request body — Body — SMTP
Omit smtp_password on PATCH to keep the current password.Response fields
- data (
Account) — Created row.
Examples
201 — Created
400 — Validation
cURL
GET /v1/accounts/{id}
Get account
Fetch one account by id. Returns 404 if the account does not exist or does not belong to you.
Response fields
- data (
Account) — Public fields only.