For the complete documentation index, see llms.txt. This page is also available as Markdown.

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_idintegerRequired

Inbound inbox ID

Example: 1
Responses
200

List of forward rules

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?