Create SMTP Sink Credential
Create a new SMTP sink credential that your app uses to deliver test emails to the Email Testing SMTP sink.
Create a new SMTP sink credential that your app uses to deliver test emails to the Email Testing SMTP sink.
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
Sample Request
Request
curl -X POST "https://api.maileroo.com/v1/email-testing/smtp-credentials" \
-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",
"account_id": "12345",
"username": "a1b2c3d4e5f6",
"password": "generated-password",
"host": "smtp.sandbox.maileroo.io",
"port": 587,
"status": "active",
"created_at": "2025-01-01T12:00:00Z"
}
}Errors
429 Too Many Requests— the account reached its SMTP sink credential limit.