← Back to API Reference

POST /domains

Create Domain

Compatibility endpoint to create domain data.

Request (cURL)

curl -X POST "http://localhost:8080/v1/domains" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "mail.example.com"
}'

Response Example

{
  "id": "id_123"
}

Request Body Example

{
  "name": "mail.example.com"
}