mode: "advanced" and conditions.rules. If a mailbox already forwards, the new setup replaces it and replaces shows the old one. Setup takes a few minutes; track it with List Forwarding Jobs.curl --location 'https://api.inboxkit.com/v1/api/mailboxes/forwarding/setup' \
--header 'X-Workspace-Id;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"uids": [
"string"
],
"forwarding_email": "[email protected]",
"mode": "advanced",
"match": "all",
"conditions": [
{
"location": "subject",
"header_name": "X-Autoreply",
"match": "regex",
"value": "out of office"
}
]
}'{
"error": false,
"message": "Forwarding setup jobs created for 2 mailbox(es)",
"jobs": [
{
"mailbox_uid": "mb-123e4567-e89b-12d3-a456-426614174000",
"forwarding_email": "[email protected]",
"action": "enable",
"status": "pending",
"mode": "off",
"rule": "string",
"replaces": {
"mode": "simple",
"forwarding_email": "[email protected]",
"rule": "string"
},
"created_at": "2025-01-15T10:30:00.000Z"
}
],
"mailboxes": [
{
"uid": "mb-123e4567-e89b-12d3-a456-426614174000",
"mode": "off",
"rule": "string",
"status": "pending",
"replaces": {
"mode": "simple",
"forwarding_email": "[email protected]",
"rule": "string"
}
}
],
"rules": [
{
"uid": "9b2f7c1e-0d4a-4b8e-9a51-3f0c6d2e8a17",
"platform": "GOOGLE",
"scope": "google",
"match": "all",
"conditions": [
{
"location": "subject",
"header_name": "X-Autoreply",
"match": "regex",
"value": "out of office"
}
],
"forwarding_email": "[email protected]",
"mailboxes": [
{
"uid": "mb-123e4567-e89b-12d3-a456-426614174000",
"email": "[email protected]"
}
],
"status": "pending",
"last_error": "string",
"applied_at": "2019-08-24T14:15:22.123Z",
"created_at": "2026-11-05T10:30:00.000Z",
"updated_at": "2026-11-05T10:30:00.000Z"
}
]
}