List forward rules
Returns the inbox's forward rules, ordered by creation (oldest first). The list is not paginated; an inbox holds at most 5 rules.
get
Authorizations
Api-TokenstringRequired
API token in Api-Token header
Path parameters
inbox_idintegerRequiredExample:
Inbound inbox ID
1Responses
200
List of forward rules
application/json
401
Unauthorized
application/json
403
Forbidden. The token lacks the permission required for this operation
(Access forbidden), has no access to the account
(Account access forbidden), or Email API/SMTP is not enabled for the
organization (empty response body).
application/json
404
Not found
application/json
get/api/inbound/inboxes/{inbox_id}/forward_rules
curl -X GET https://mailtrap.io/api/inbound/inboxes/{inbox_id}/forward_rules \
-H 'Authorization: Bearer YOUR_API_KEY'
{
"data": [
{
"id": 7,
"name": "Copy billing mail to finance",
"created_at": "2026-05-08T10:30:00.000Z",
"updated_at": "2026-05-08T10:30:00.000Z",
"conditions": [
{
"match_type": "sender",
"operator": "ends_with",
"value": "@billing.example.com",
"header_key": null
}
],
"destinations": [
{
"email": "finance@example.com"
}
]
},
{
"id": 8,
"name": "Forward everything to archive",
"created_at": "2026-05-08T11:00:00.000Z",
"updated_at": "2026-05-08T11:00:00.000Z",
"conditions": [],
"destinations": [
{
"email": "archive@example.com"
}
]
}
]
}Last updated
Was this helpful?

