GoodInboxes Developers
API reference
</>API reference

Set or remove mailbox email forwarding

POST
/api/v1/inboxes/{id}/forwarding

Organization-owned mailbox reads and explicitly approved, retry-safe writes. Stored or pending states are not live provider success.

Required scope: inboxes:forwarding:write.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Scoped GoodInboxes API token

Path Parameters

id*string

Owned resource UUID.

Request Body

application/json
  1. body
targetEmail*|null
requestId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
consent*boolean

Response Body

Persisted command result; forwarding may remain stored or pending recipient verification.

application/json
  1. response
data*

Persisted command result; forwarding may remain stored or pending recipient verification.

requestId?string
curl -X POST "https://example.com/api/v1/inboxes/string/forwarding" \  -H "Content-Type: application/json" \  -d '{    "targetEmail": "string",    "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",    "consent": true  }'
{  "data": {},  "requestId": "string"}