Mail API reference

Mail API · Inbound-Routes

post/v1/workspaces/{workspace_id}/forward-destinationsAuth

Add a forward destination

A workspace member's verified email, and any `@simulator.amazonses.com` address, is confirmed at once. Any other address gets an email from ProductCraft with a confirmation link (valid 7 days) and an "I didn't ask for this" link; it stays `pending` until confirmed, and a route cannot forward to it until then. At most 20 confirmation emails per workspace per day.

Path parameters

workspace_id*string · uuid

Id of the workspace.

Headers

Idempotency-Keystring

Opaque 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

address*string · email

Where to forward to.

Example: "ops@example.com"

Response · 201

id*string · uuid

Destination id (what a forward action's `to` lists).

address*string · email

The address mail is forwarded to.

Example: "ops@example.com"

status*object

`pending` until the address confirms (a member's verified email and the SES mailbox simulator are confirmed at once).

confirmed_at*string · date-time

When it was confirmed; null while pending.

member_account_id*string · uuid

The member whose verified email this is, when it confirmed that way.

confirmation_sent_at*string · date-time

When the last confirmation email went out.

confirmation_expires_at*string · date-time

When the confirmation link stops working.

created_at*string · date-time

When it was added.

Example

Request

POST https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/forward-destinations
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json

{
  "address": "ops@example.com"
}

Response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "address": "ops@example.com",
  "status": {},
  "confirmed_at": "2026-01-01T00:00:00.000Z",
  "member_account_id": "00000000-0000-0000-0000-000000000000",
  "confirmation_sent_at": "2026-01-01T00:00:00.000Z",
  "confirmation_expires_at": "2026-01-01T00:00:00.000Z",
  "created_at": "2026-01-01T00:00:00.000Z"
}