1Reg Docs
APIWebhook
APIWebhook
  1. Domains
  • 📝 How to start?
  • Account
    • payments
      • Payments history
    • Account details
  • Domains
    • DNS
      • Bulk get dns records
      • Get dns records
      • Bulk update dns
    • Domains list
      GET
    • Bulk query domains
      POST
    • Register Domain
      POST
APIWebhook
APIWebhook
  1. Domains

Register Domain

Developing
Prod Env
https://api.onereg.org/v1
Prod Env
https://api.onereg.org/v1
POST
/domains/register
Last modified:2025-11-13 20:34:24

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired

Example
[
    {
        "registrar": "webnic",
        "domain": "example.com",
        "term": 1,
        "nameservers": {
            "type": "custom_ns",
            "value": [
                "ns1.example.com",
                "ns2.example.com"
            ]
        }
    },
    {
        "registrar": "webnic",
        "domain": "example.com",
        "term": 1,
        "nameservers": {
            "type": "basic_ns"
        }
    },
    {
        "registrar": "webnic",
        "domain": "example.com",
        "term": 1,
        "nameservers": {
            "type": "partner_ns"
        }
    }
]

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.onereg.org/v1/domains/register' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "registrar": "webnic",
        "domain": "example.com",
        "term": 1,
        "nameservers": {
            "type": "custom_ns",
            "value": [
                "ns1.example.com",
                "ns2.example.com"
            ]
        }
    },
    {
        "registrar": "webnic",
        "domain": "example.com",
        "term": 1,
        "nameservers": {
            "type": "basic_ns"
        }
    },
    {
        "registrar": "webnic",
        "domain": "example.com",
        "term": 1,
        "nameservers": {
            "type": "partner_ns"
        }
    }
]'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2025-11-13 20:34:24
Previous
Bulk query domains
Built with