/v1/workspaces/{workspace_id}/inbound-routes/{id}AuthUpdate an inbound route
Switch it on or off, change its store mailbox, or replace its rules: `rules` is the whole new list (rule ids change). The address and domain cannot change; delete and create instead.
Path parameters
workspace_id*string · uuidId of the workspace.
id*string · uuidRoute id.
Headers
Idempotency-KeystringOpaque client-generated string (1–256 chars, `[A-Za-z0-9._:-]`) used to deduplicate retries within a 24h window. A retry with the same key and body returns the original response with `Idempotent-Replay: true`.
Request body
enabledbooleanSwitch the route on or off.
store_mailbox_idstring · uuidWhere accepted mail is stored; null uses the address's own mailbox.
rulesarrayReplaces every rule (send the whole list).
Response · 200
id*string · uuidRoute id.
domain_id*string · uuidThe receive domain.
address*stringThe address the route is on; `*@domain` for the catch-all.
Example: "support@in.acme.com"
local_part*stringLocal part, or `*`.
Example: "support"
catch_all*booleanTrue for the domain catch-all.
enabled*booleanWhether the route is on.
store_mailbox_id*string · uuidWhere accepted mail is stored.
rules*arrayThe rules, in the order they are checked.
created_at*string · date-timeWhen the route was created.
updated_at*string · date-timeWhen the route last changed.
Example
Request
PATCH https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/inbound-routes/{id}
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"enabled": false,
"store_mailbox_id": "00000000-0000-0000-0000-000000000000",
"rules": [
{
"name": "Invoices to accounting",
"conditions": {},
"actions": [
{
"type": "forward",
"keep": false,
"to": [
null
],
"attach_original": false,
"endpoint_id": "00000000-0000-0000-0000-000000000000"
}
],
"stop": false
}
]
}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"
}