1. API
  2. Admin
  3. SMTP configuration

SMTP configuration: Delete

Description

Delete the SMTP configuration set through the API for your self-hosted tenant.

This endpoint is only available on self-hosted tenants. This deletes only the API-managed database configuration and does not change environment variables. After the configuration is deleted, the tenant falls back to the SMTP settings from the environment.

Request

HTTP Method: DELETE

Sample request

curl -X DELETE \
  --proto '=https' --tlsv1.2 \
  https://<tenant-domain>/api/v1/admin/smtp \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>'

Response

A successful request will return an empty response with a 204 status code. The same response is returned when there is no API-managed SMTP configuration to delete.

Errors

This endpoint is only allowed for self-hosted tenants.

Status Meaning
403 The endpoint was called on a Tines cloud tenant.
Was this helpful?