Mail API reference

Mail API · Inbound-Routes

get/v1/workspaces/{workspace_id}/inbound-routes/{id}Auth

Get an inbound route

The route with its rules in order.

Path parameters

workspace_id*string · uuid

Id of the workspace.

id*string · uuid

Route id.

Response · 200

id*string · uuid

Route id.

domain_id*string · uuid

The receive domain.

address*string

The address the route is on; `*@domain` for the catch-all.

Example: "support@in.acme.com"

local_part*string

Local part, or `*`.

Example: "support"

catch_all*boolean

True for the domain catch-all.

enabled*boolean

Whether the route is on.

store_mailbox_id*string · uuid

Where accepted mail is stored.

rules*array

The rules, in the order they are checked.

created_at*string · date-time

When the route was created.

updated_at*string · date-time

When the route last changed.

Example

Request

GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/inbound-routes/{id}
Authorization: Bearer YOUR_TOKEN

Response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "domain_id": "00000000-0000-0000-0000-000000000000",
  "address": "support@in.acme.com",
  "local_part": "support",
  "catch_all": false,
  "enabled": false,
  "store_mailbox_id": "00000000-0000-0000-0000-000000000000",
  "rules": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "position": 0,
      "name": "string",
      "conditions": {},
      "actions": [
        {
          "type": "forward",
          "keep": false,
          "to": [
            null
          ],
          "attach_original": false,
          "endpoint_id": "00000000-0000-0000-0000-000000000000"
        }
      ],
      "stop": false
    }
  ],
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}