Skip to main content

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.

Examples

200 — OK

404 — Not found

cURL

PATCH /v1/accounts/{id}

Update account Partial update. Omit smtp_password to keep the current stored password.

Request body — Body

Examples

200 — OK

404 — Not found

cURL

DELETE /v1/accounts/{id}

Delete account Deletes the sending identity. Does not revoke Google tokens server-side beyond removing the row.

Examples

200 — OK

404 — Not found

cURL