Auth Configuration

Send a test email using the project's saved SMTP config

Changed on

Sends a diagnostic email to to_email using the project's persisted auth_config SMTP credentials. If html_body or text_body is supplied, the override path is taken: those values (plus optional subject) are rendered through html/text templates against the project's Data and used as the body — used by the template editor's "Send Test" affordance to preview an unsaved template. With both bodies omitted, a hardcoded diagnostic message is sent and any subject field is ignored. Sending subject alone (no bodies) is rejected with 400 to avoid a silently-dropped subject or a blank message. Also rejects with 400 if email_enabled=false, smtp_host is empty, or the saved smtp_password can't be read and must be set again. Sender values with interior line breaks return 400 before SMTP delivery. Rendered override subjects containing a line break have outer whitespace trimmed; any remaining interior line break returns 400 before delivery.

post/projects/{id}/auth/config/test-email

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

Request body

TestEmailRequest required

When html_body or text_body is provided the backend renders those (plus optional subject) through html/text templates against the standard Data (ProjectName, Name, SiteURL) and sends the result — used by the template-editor "Send Test" affordance to preview an unsaved template. When both bodies are omitted a hardcoded diagnostic message is sent to verify SMTP credentials and subject is ignored. Sending subject alone (without a body) is rejected with 400.

to_email, string email required

Recipient address for the diagnostic email.

subject, string

Optional subject override, rendered as a text/template. Only applied on the override path — requires html_body or text_body to also be set, otherwise the request is rejected with 400.

html_body, string

Optional HTML body override. Rendered as an html/template. Max 256 KiB.

text_body, string

Optional plain-text body override. Rendered as a text/template. Max 256 KiB.

Response

Test email sent

TestEmailResponse required
success, boolean required

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • breaking

      added the new path request parameter id

    • breaking

      added the new required request property to_email

    6 more changes in this revision