---
title: "Edit SMTP user details"
method: POST
path: "/users/smtp/edit"
tags: ["SMTP USERS"]
---

# Edit SMTP user details

`POST /users/smtp/edit`

Update an SMTP user's details with the parameters passed. Full details of the available options for SMTP user accounts is found in the SMTP User Guide.

## Request body

- object
  - `username` string, required — A valid username of your existing SMTP User that you wish to edit
  - `email_password` string — A valid password for your new SMTP User. <br><br> Must have an entropy of at least 64 bits. Consider using a password generator or leave blank for an auto generated value. Ideally contain at least: 12 characters, 1 digit, symbol, uppercase letter, and lowercase letter.
  - `description` string — A comment or description of your new SMTP User
  - `custom_ratelimit` boolean — If true, a custom rate limit will be enabled for this user, and defined by the <code>custom_ratelimit_value</code> and <code>custom_ratelimit_period</code>.
  - `custom_ratelimit_value` integer — If passed, defines the maximum number of emails this user can send in the <code>custom_ratelimit_period</code>. Values: 1 to 2147483647
  - `custom_ratelimit_period` string — If passed, defines the period for which this user will be limited to the number of emails specified in <code>custom_ratelimit_value</code>. Syntax: "<n> {hour[s]|day[s]|week[s]|month[s]}[,hh:mm:ss]". Examples: "1 day", "1 week", "1 month", "2 months 3:00:00"
  - `ip_pool` integer — If passed, any emails sent with this SMTP user will use dedicated IP's in this IP Pool, This value can be found on the <code>/v3/dedicated_ips/view</code> endpoint.
  - `feedback_enabled` boolean — If true, custom feedback via the unsubscribe footer will be enabled and defined by the below settings. Default: false
  - `feedback_domain` string — The domain to insert into the custom feedback links via the unsubscribe footer
  - `feedback_html` string — The HTML content to insert into the custom feedback email body via the unsubscribe footer
  - `feedback_text` string — The text content to insert into the custom feedback email body via the unsubscribe footer
  - `open_tracking_enabled` boolean — If true, open tracking will be enabled for this user. Default: false
  - `click_tracking_enabled` boolean — If true, click tracking will be enabled for this user. Default: false
  - `archive_enabled` boolean — If true, archiving will be enabled for this user. Default: false
  - `audit_email` string — If passed, this email will be BCC'd on all emails sent by this SMTP User
  - `bounce_notifications` string — If passed, will control how bounce notifications are handled. Must be one of [from, drop, or a valid email address]. [from] will return the email to sender, [drop] will discard the event, and the inclusion of an email address will send the event on to this account. Default is [from].
  - `status` string — If passed will set the status of the SMTP user, one of ['allowed', 'blocked', 'sandbox']
  - `subaccount_id` string — If you wish to make this API call on behalf of a subaccount then include its unique ID here

## Response `200`

SMTP User edited

- object
  - `request_id` string, required
  - `data` object, required
    - `results` object[], required
      - `comments` string
      - `username` string, required
      - `email_password` string
      - `sending_allowed` boolean, required
      - `custom_ratelimit` boolean, required
      - `custom_ratelimit_value` integer, nullable
      - `custom_ratelimit_period` string
      - `default_ratelimit_value` string — The default limit of emails this SMTP user can send in the period specified in <code>default_ratelimit_period</code>. <strong>Note:</strong> Used if <code>custom_ratelimit</code> is false.
      - `default_ratelimit_period` string — The default period for which this SMTP user will be limited to the number of emails specified in <code>default_ratelimit_value</code>.<br><br><strong>Syntax:</strong> "\<n\> [hour[s]|day[s]|week[s]|month[s]] [hh:mm:ss]".<br><br><strong>Examples: </strong> "0:30:00", "1 hour", "2 days", "3 months", "4 months 5:00:00".<br><br><strong>Note:</strong> Used if <code>custom_ratelimit</code> is false.
      - `ippool` integer
      - `description` string
      - `feedback_enabled` boolean
      - `feedback_domain` string
      - `feedback_html` string
      - `feedback_text` string
      - `archive_enabled` boolean
      - `open_tracking_enabled` boolean
      - `audit_email` string, nullable
      - `bounce_notifications` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/smtp2go/apis/smtp2go-api-v3-0-4.md) · [All operations](https://skmtc.net/smtp2go/apis/smtp2go-api-v3-0-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smtp2go/smtp2go-api-v3-0-4/revisions/1ba6b25eebb9/schema)
