Skip to content
xYnta
Go to websitexynta.com
Search
EN

Connecting to the API for the first time

Updated on

With the xYnta API, you manage your domain names from your own software, for example with the HostFact plug-in. Before you make your first call, you enable the API in Mijn xYnta and add your server's IP address to the whitelist.

Before you start

  • You have an active customer account with at least one active service. Without an active service, you cannot use the API.
  • You know the IPv4 address from which your server calls the API. The whitelist only accepts IPv4 addresses. If you want to connect from an IPv6 address, contact us.
  1. Log in to Mijn xYnta

    Log in to Mijn xYnta with your email address and password.

  2. Open the API settings

    Click MIJN ACCOUNT (My account) at the top, then API.

  3. Enable the API

    Under API instellingen (API settings), tick Ik wil toegang tot de API vanaf mijn klantaccount inschakelen (I want to enable API access for my customer account) and click Opslaan (Save). By doing so, you also declare that your account details are correct, that you are 18 or older and that you agree to the terms and conditions, the privacy statement and the data processing agreement.

  4. Add your IP address to the whitelist

    Under IP-adres Whitelist (IP address whitelist), enter your server's IPv4 address in IP-adres (IP address). Leave In-/uitschakelen (Enable/disable) set to Ingeschakeld (Enabled) and click Toevoegen (Add).

  5. Note your UserID and IPHash

    Your UserID is shown under Verbinden met de API (Connecting to the API). The IPHash is the code that belongs to the IP address on your whitelist: each IP address gets its own code. Treat the IPHash like a password and do not put it in code that others can see.

Your first call

Every call is a POST to https://api.xynta.com, with the fields sent as a form. uid and hash authenticate you, m selects the module and a the action. This call retrieves your domain names and changes nothing. Replace YOUR_USERID and YOUR_IPHASH with your own details and run it on the server whose IP address is on your whitelist:

curl https://api.xynta.com \
  --form-string 'uid=YOUR_USERID' \
  --form-string 'hash=YOUR_IPHASH' \
  --form-string 'm=domains' \
  --form-string 'a=list'

The response is a JSON list. If the status field of the first item has the value success, the connection works. All actions, their fields and the status codes are in the API reference. Every call that reaches the API shows up in the log overview: see Troubleshooting an API call.

Video

Connecting to the API for the first timeYouTube

Related articles