Skip to main content
POST
/
api
/
v1
/
domains
/
register
Register a domain
curl --request POST \
  --url https://dev.namify.host/api/v1/domains/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_id": 85384231,
  "domain_name": "example.com",
  "duration": 1
}
'
{
  "status": "SUCCESS",
  "message": "Domain registered successfully",
  "order_id": 124680932
}

Authorizations

Authorization
string
header
required

A personal access token. Obtain one from the dashboard under Settings > API Key. Include it in the Authorization header as Bearer <token>. Unauthenticated requests to protected routes return 401 Unauthorized.

Body

application/json
customer_id
integer
required

ID of the customer under whose account the domain will be registered.

Example:

85384231

domain_name
string
required

Fully qualified domain name to register (e.g. example.com).

Maximum string length: 80
Example:

"example.com"

duration
integer
required

Registration term in years (1–10).

Required range: 1 <= x <= 10
Example:

1

Response

Domain registered successfully.

status
string
Example:

"SUCCESS"

message
string
Example:

"Domain registered successfully"

order_id
integer

Unique identifier for the new domain order. Store this — it is required for renewal, DNS management, and order lookup.

Example:

124680932