Aliases
Create Alias
Section titled “Create Alias”POST /aliases/Forward emails from one address to another. Supports catch-all rules.
Request Body
Section titled “Request Body”| Field | Type | Required | Description |
|---|---|---|---|
domain_name | string | Yes | Parent domain (must exist) |
source | string | Yes | Source address or @domain.com for catch-all |
destination | string | Yes | Destination email address |
Regular Alias
Section titled “Regular Alias”curl -X POST https://api.emboux.com/aliases/ \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "domain_name": "mycompany.com", "source": "[email protected]", "destination": "[email protected]" }'Catch-All Alias
Section titled “Catch-All Alias”Forward all unmatched addresses to a single mailbox:
curl -X POST https://api.emboux.com/aliases/ \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "domain_name": "mycompany.com", "source": "@mycompany.com", "destination": "[email protected]" }'Response 201 Created
Section titled “Response 201 Created”{ "id": 1, "domain_id": 1, "created_at": "2025-01-15T10:35:00"}Errors
Section titled “Errors”| Status | Detail |
|---|---|
400 | Alias source already exists |
403 | Alias quota exceeded |
404 | Domain not found |
List Aliases
Section titled “List Aliases”GET /aliases/?domain_id={id}Query Parameters
Section titled “Query Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
domain_id | integer | No | Filter by domain |
Example
Section titled “Example”curl "https://api.emboux.com/aliases/?domain_id=1" \ -H "Authorization: Bearer YOUR_API_KEY"Delete Alias
Section titled “Delete Alias”DELETE /aliases/{source}Example
Section titled “Example” -H "Authorization: Bearer YOUR_API_KEY"