Skip to content
Sign in

Change mailbox address

POST/v1/mailboxes/{mailboxId}/address

Change a Mailbox's current address. Earlier addresses keep receiving into it; mail is never sent from them and they are never issued to another Mailbox. localPart is a new name, or one of the Mailbox's earlier names to switch back without using up a change. expectedAddress must be the current address.

AuthorizationBearer <token>

In: header

Path parameters

mailboxId*string
Format:uuid

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/mailboxes/497f6eca-6276-4993-bfeb-53cbbbba6f08/address' \
  -H 'Authorization: Bearer <agent-api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "localPart": "string",
  "expectedAddress": "user@example.com"
}'
{
  "mailboxId": "f16f762c-c61b-441d-8b9c-9aff4650cbe1",
  "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
  "address": "user@example.com",
  "previousAddress": "user@example.com",
  "previousAddresses": [
    "user@example.com"
  ],
  "addressChangesRemaining": 0
}