Hostinger · Hostinger API

Retrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar.

Requesting a new code invalidates any code retrieved previously.

Use this endpoint to obtain the code required to transfer a domain to another registrar.

Path Parameters

  • domain

    Type: string

    required

    Domain name

Responses

  • application/json

  • application/json

  • application/json

Show Schema

Success response

Claim a free domain available on your account and register it.

Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required.

A successful response means the domain is registered. If registration fails, login to hPanel and check domain registration status.

If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account.

Some TLDs require additional_details to be provided and these will be validated before claiming.

Requests which cannot be fulfilled are rejected with an error code in the response body, for example 2037 when no free domain is available.

Use this endpoint to register a domain using a free domain from your account.

Body

·

required

application/json

  • domain

    Type: string

    required

    Domain name

  • additional

    _details

    Type: object

    Additional registration data, possible values depends on TLD

  • Type: object

    Domain contact information

Responses

  • application/json

  • application/json

  • application/json

  • application/json

Show Schema

Success response

Enable domain lock for the domain.

When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.

Use this endpoint to secure domains against unauthorized transfers.

Path Parameters

  • domain

    Type: string

    required

    Domain name

Responses

  • application/json

  • application/json

  • application/json

Show Schema

Success empty response

Disable domain lock for the domain.

Domain lock needs to be disabled before transferring the domain to another registrar.

Use this endpoint to prepare domains for transfer to other registrars.

Path Parameters

  • domain

    Type: string

    required

    Domain name

Responses

  • application/json

  • application/json

  • application/json

Show Schema

Success empty response

Retrieve detailed information for specified domain.

Use this endpoint to view comprehensive domain configuration and status.

Path Parameters

  • domain

    Type: string

    required

    Domain name

Responses

  • application/json

  • application/json

  • application/json

Show Schema

Success response

Retrieve all domains associated with your account.

Use this endpoint to view user's domain portfolio.

Responses

  • application/json

  • application/json

  • application/json

Show Schema

Success response

Purchase and register a new domain name.

If registration fails, login to hPanel and check domain registration status.

If no payment method is provided, your default payment method will be used automatically.

If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account.

Some TLDs require additional_details to be provided and these will be validated before completing purchase.

Use this endpoint to register new domains for users.

Body

·

required

application/json

  • domain

    Type: string

    required

    Domain name

  • item

    _id

    Type: string

    required

    Catalog price item ID

  • additional

    _details

    Type: object

    Additional registration data, possible values depends on TLD

  • coupons

    Type: array

    Discount coupon codes

  • Type: object

    Domain contact information

  • payment

    _method

    _id

    Type: integer

    Payment method ID, default will be used if not provided

Responses

  • application/json

  • application/json

  • application/json

  • application/json

Show Schema

Success response

Enable privacy protection for the domain.

When privacy protection is enabled, domain owner's personal information is hidden from public WHOIS database.

Use this endpoint to protect domain owner's personal information from public view.

Path Parameters

  • domain

    Type: string

    required

    Domain name

Responses

  • application/json

  • application/json

  • application/json

Show Schema

Read the original on developers.hostinger.com ↗