logo
Alias APIDelete an alias owned by the API key

Delete an alias owned by the API key

Accepts JSON body or query string. When both are present, the body takes precedence.

curl -X POST "https://mail.haltman.io/api/alias/delete?alias=example_string" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "alias": "example_string"
}'
{
  "ok": true,
  "deleted": true,
  "alias": "example_string"
}
POST
/api/alias/delete
POST
API Key (header: X-API-Key)
X-API-Keystring
Required

64-character lowercase hexadecimal API key.

64-character lowercase hexadecimal API key.
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

header
X-API-Keystring
Required

API Key for authentication. 64-character lowercase hexadecimal API key.

Query Parameters

Body

application/json

Responses

okboolean
Required
deletedboolean
Required
aliasstring
Required