Skip to content

Update an alias

PATCH
/api/v1/aliases/{address}
curl --request PATCH \
--url https://app.shroud.email/api/v1/aliases/deadbeef%40fog.shroud.email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "enabled": false, "notes": "Receipts and order updates", "title": "Acme shopping" }'

Updates an alias’s settings. OAuth scope: aliases:edit.

address
required
string

Exact alias address. URL-encode it, e.g. deadbeef%40fog.shroud.email.

Example

deadbeef@fog.shroud.email

Fields to update

Media type application/json
UpdateAlias

Omitted fields remain unchanged.

object
enabled

False stops all forwarding, including password-reset emails.

boolean
notes

Set to null to clear the notes.

string
nullable
title

Set to null to clear the label.

string
nullable

Example

{
"enabled": false,
"notes": "Receipts and order updates",
"title": "Acme shopping"
}

Updated alias

Media type application/json
EmailAlias
object
address
required
string format: email
blocked
required
integer
blocked_addresses
required
Array<string>
enabled
required
boolean
forwarded
required
integer
notes
required
string
nullable
title
required
string
nullable

Example

{
"address": "deadbeef@fog.shroud.email",
"blocked": 33,
"blocked_addresses": [
"spammer@example.com"
],
"enabled": true,
"forwarded": 26,
"notes": "Used for webshop newsletters etc.",
"title": "Newsletters"
}

Invalid token

Media type application/json
Error
object
error
required
string

Example

{
"error": "Invalid token"
}

Insufficient scope or unconfirmed account

Media type application/json
Error
object
error
required
string

Example

{
"error": "Invalid token"
}

Alias not found

Media type application/json
Error
object
error
required
string

Example

{
"error": "Alias not found"
}

Invalid values

Media type application/json
Error
object
error
required
string

Example

{
"error": "is invalid"
}