Update Inbox
Update an inbox's SMTP response or visibility.
Update an inbox's SMTP response or visibility.
Scope: email_testing.inboxes.write
Path Parameters
idstringrequiredThe ID of the test inbox, as returned by List Inboxes or when you create the inbox.
Request Body
smtp_responsestringoptionalHow the inbox should answer incoming mail from now on: accept, soft_bounce (temporary failure), hard_bounce (permanent failure), or complaint (accepted, then reported as spam).
invisiblebooleanoptionalSet to true to hide this inbox from the dashboard and the default inbox list, or false to show it again.
Sample Request
Request
curl -X PATCH "https://api.maileroo.com/v1/email-testing/mailboxes/35a3cb89-ea59-4ea3-8edc-a5c5f7bf0bda" \
-H "Authorization: Bearer roo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"smtp_response":"soft_bounce","invisible":false}'Sample Response
The response is wrapped in a data object.
Response
{
"data": {
"id": "35a3cb89-ea59-4ea3-8edc-a5c5f7bf0bda",
"smtp_response": "soft_bounce",
"invisible": false
}
}Errors
400 Bad Request— the body is invalid orsmtp_responseis not supported.404 Not Found— the resource does not exist or is not owned by the account.