Reset credential password
const url = 'https://smtp-app.kirim.email/api/domains/example.com/credentials/92703823-f3a4-48e2-8e87-7adf25454800/reset-password';const options = {method: 'PUT', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://smtp-app.kirim.email/api/domains/example.com/credentials/92703823-f3a4-48e2-8e87-7adf25454800/reset-password \ --header 'Authorization: Basic <credentials>'Reset the password for a specific SMTP credential
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
example.comDomain name that must be owned by the authenticated user. The domain must be verified and properly configured for email sending.
Example
92703823-f3a4-48e2-8e87-7adf25454800Credential GUID (user_smtp_guid)
Responses
Section titled “Responses”Password reset successfully
object
Indicates if the request was successful
Human-readable success message
Password reset result data
object
SMTP credential object containing authentication details for email sending
object
Database auto-increment ID (internal use only)
Unique credential GUID used for API operations
SMTP username for authentication. Must be unique within the domain
Unix timestamp when the credential was created
Unix timestamp when the credential was last modified
The new generated password. Store this securely as it cannot be retrieved later
Password strength analysis and complexity information
object
Whether the password change was successfully synchronized with the remote SMTP server
Example
{ "success": true, "message": "Password reset successfully.", "data": { "credential": { "id": 1, "user_smtp_guid": "92703823-f3a4-48e2-8e87-7adf25454800", "username": "myuser", "created_at": 1640995200, "modified_at": 1640995200 }, "new_password": "new-generated-password", "remote_synced": true }}Unauthorized - Invalid or missing authentication credentials
object
Example
{ "success": false, "message": "Unauthorized"}Forbidden - Credential does not belong to the specified domain
object
Example
{ "success": false, "message": "Credential does not belong to the specified domain"}Credential not found
object
Example
{ "success": false, "message": "Credential not found"}Too Many Requests - Rate limit exceeded. Retry after the specified time.
object
Example
{ "success": false, "message": "Too many attempts. Please try again later."}Headers
Section titled “Headers”Seconds until rate limit resets
Maximum requests per minute
Remaining requests in current window
Server Error - Unexpected error occurred
object
Example
{ "success": false, "message": "An error occurred while processing the request."}