Create alias
Create an alias for the given mailbox. The alias address is formed from the given local part and the domain of the mailbox. Messages sent to the alias are delivered to the mailbox.
Create an alias for the given mailbox. The alias address is formed from the given local part and the domain of the mailbox. Messages sent to the alias are delivered to the mailbox.
API Token authentication
Mailbox resource ID
AC1a2b3c4d5e6f7gLocal part of the alias address (the part before the @). The domain is taken from the mailbox. Case-insensitive and stored lowercase; must start and end with a letter or digit; single dots, underscores and hyphens are allowed in between.
infoCreated response
Unique alias identifier
AA1a2b3c4d5e6f7gEmail address of the alias
info@example.comWhether the alias is active and not suspended
true2026-07-27T12:00:00Z2026-07-27T12:00:00ZUnauthenticated response
Error response
Error response
Error response
Error response
POST /api/mail/v1/mailboxes/{mailboxId}/aliases HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"local_part": "info"
}{
"id": "AA1a2b3c4d5e6f7g",
"address": "info@example.com",
"mailbox": {
"id": "AC1a2b3c4d5e6f7g",
"address": "john@example.com"
},
"is_active": true,
"created_at": "2026-07-27T12:00:00Z",
"updated_at": "2026-07-27T12:00:00Z"
}Last updated
Was this helpful?