logo
AdminSoft-delete a domain

Soft-delete a domain

curl -X DELETE "https://mail.haltman.io/api/admin/domains/123" \
  -H "Content-Type: application/json" \
  -H "X-CSRF-Token: YOUR_API_KEY"
{
  "ok": true,
  "created": true,
  "updated": true,
  "deleted": true,
  "item": {
    "id": 123,
    "name": "John Doe",
    "active": 42
  }
}
DELETE
/api/admin/domains/{id}
DELETE
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.
path
idinteger
Required

Resource identifier.

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.

Path Parameters

idinteger
Required

Resource identifier.

Responses

okboolean
Required
createdboolean
updatedboolean
deletedboolean
itemobject
Required