Mail API reference

Mail API · Public

post/v1/forward-destinations/confirm

Confirm (or decline) a forward destination (no authentication)

The token from the confirmation email is the only credential. `decline: true` removes the pending request instead ("I didn't ask for this"). Single use; the link works for 7 days. 20 requests per minute per IP.

Request body

token*string

The token from the confirmation link.

declineboolean

`true`: "I didn't ask for this" removes the pending request instead.

Response · 200

outcome*object

What happened.

address*string · email

The destination address.

Example

Request

POST https://api.mail.productcraft.co/v1/forward-destinations/confirm
Content-Type: application/json

{
  "token": "string",
  "decline": false
}

Response

{
  "outcome": {},
  "address": "user@example.com"
}