Rotate SMTP Sink Credential Password
Generate and return a new password for an active SMTP sink credential.
Generate and return a new password for an active SMTP sink credential.
These credentials don't send email. SMTP sink credentials belong to the Maileroo Sandbox (Email Testing Platform). Your app uses them to connect to the sandbox SMTP sink, which intercepts and captures test emails instead of delivering them. To send real email, use SMTP Relay or the Email API.
Scope: email_testing.credentials.write
Path Parameters
idstringrequiredThe ID of the SMTP sink credential, as returned by List SMTP Sink Credentials or when you create the credential.
Sample Request
Request
curl -X POST "https://api.maileroo.com/v1/email-testing/smtp-credentials/f47ac10b-58cc-4372-a567-0e02b2c3d479/rotate" \
-H "Authorization: Bearer roo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json"Sample Response
The response is wrapped in a data object.
Response
{
"data": {
"id": "19af8047-b6aa-4a0e-85aa-22bd4a734114",
"username": "a1b2c3d4e5f6",
"password": "new-generated-password",
"host": "smtp.sandbox.maileroo.io",
"port": 587,
"status": "active"
}
}Errors
404 Not Found— the resource does not exist or is not owned by the account.409 Conflict— the credential has been revoked and cannot be rotated.