logo
AdminCreate an alias

Create an alias

curl -X POST "https://mail.haltman.io/api/admin/aliases" \
  -H "Content-Type: application/json" \
  -H "X-CSRF-Token: YOUR_API_KEY" \
  -d '{
  "address": "123 Main St",
  "goto": "example_string",
  "active": true
}'
{
  "ok": true,
  "created": true,
  "updated": true,
  "deleted": true,
  "item": {
    "id": 123,
    "address": "123 Main St",
    "goto": "example_string",
    "active": 42,
    "domain_id": 123,
    "created": "2024-12-25T10:00:00Z",
    "modified": "2024-12-25T10:00:00Z"
  }
}
POST
/api/admin/aliases
POST
API Key (cookie: __Host-access)
__Host-accessstring
Required

Access-session cookie used for user and admin authentication.

Access-session cookie used for user and admin authentication.
API Key (header: X-CSRF-Token)
X-CSRF-Tokenstring
Required

CSRF token derived from the current session family.

CSRF token derived from the current session family.
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

path
parameterstring
Required

API Key for authentication. Access-session cookie used for user and admin authentication.

header
X-CSRF-Tokenstring
Required

API Key for authentication. CSRF token derived from the current session family.

Responses