Setup API

For using this API you need set up TOKEN in Setup.Platon.sk (Customer -> Customer Settings -> Webservice Token) and write us helpdesk@platon.org your IP for allow for connect to webservice.

Mail management


Add new mailbox

Syntax

https://setup.platon.sk/ws.php?ws=email&action=add&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&username=<USERNAME>&password_mailbox=<PASSWORD>&name=<NAME>

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain
<USERNAME> - name for new mailbox before @
<PASSWORD> - password for new mailbox
<NAME> - name of new mailbox

Example request for create new mailbox pouzivatel@skuska.sk:

https://setup.platon.sk/ws.php?ws=email&action=add&token=jankohrasko&cname=karol&domain=skuska.sk&username=pouzivatel&password_mailbox=kofola&name=Karolko+Obycajny
					

Example response:

{"status":"OK",
"retval":1,
"msg":null
}

Change password for mailbox

Syntax

https://setup.platon.sk/ws.php?ws=email&action=change_password&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&username=<USERNAME>&password_mailbox=<PASSWORD>

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain
<USERNAME> - name for new mailbox before @
<PASSWORD> - new password for mailbox

Example request for change password for mailbox pouzivatel@skuska.sk:

https://setup.platon.sk/ws.php?ws=email&action=change_password&token=jankohrasko&cname=karol&domain=skuska.sk&username=pouzivatel&password_mailbox=malinovka
					

Example response:

{"status":"OK",
"retval":1,
"msg":null
}

DNS management


Get all records

Syntax

https://setup.platon.sk/ws.php?ws=dns&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=get

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain

Example request for create new mailbox pouzivatel@skuska.sk:

https://setup.platon.sk/ws.php?ws=dns&token=jankohrasko&cname=karol&domain=skuska.sk&action=get
					

Example response:

{"status":"OK",
"retval":1,
"msg":null,
"data":{
"domain_id":"17767",
"domain":"skuska.sk",
"master":"server",
"type":null,
"records":[
{"record_id":"11142095", "type":"SOA", "name":"skuska.sk", "content":"ns.platon.sk admin.platon.sk 2017052501 10101 1010 1010101 3600", "ttl":"21600", "prio":null}
,{"record_id":"11142097", "type":"NS", "name":"skuska.sk", "content":"ns.platon.sk", "ttl":"21600", "prio":"0"}
,{"record_id":"11142099", "type":"NS", "name":"skuska.sk", "content":"dns.platon.sk", "ttl":"21600", "prio":"0"}
,{"record_id":"11142101", "type":"NS", "name":"skuska.sk", "content":"ns.platon.org", "ttl":"21600", "prio":"0"}
,{"record_id":"11142103", "type":"NS", "name":"skuska.sk", "content":"dns.platon.org", "ttl":"21600", "prio":"0"}
,{"record_id":"11142105", "type":"MX", "name":"skuska.sk", "content":"85.248.226.2", "ttl":"21600", "prio":"0"}
,{"record_id":"11142111", "type":"MX", "name":"skuska.sk", "content":"igor1.platon.sk", "ttl":"21600", "prio":"0"}
,{"record_id":"11142107", "type":"MX", "name":"www.skuska.sk", "content":"85.248.226.2", "ttl":"21600", "prio":"0"}
,{"record_id":"11142109", "type":"MX", "name":"www.skuska.sk", "content":"85.248.229.203", "ttl":"21600", "prio":"0"}
,{"record_id":"11142113", "type":"CNAME", "name":"autoconfig.skuska.sk", "content":"autoconfig.platon.sk", "ttl":"21600", "prio":null}
,{"record_id":"11142115", "type":"CNAME", "name":"autodiscover.skuska.sk", "content":"autodiscover.platon.sk", "ttl":"21600", "prio":null}
,{"record_id":"11142117", "type":"CNAME", "name":"imaps.skuska.sk", "content":"imaps.platon.sk", "ttl":"21600", "prio":null}
,{"record_id":"11142119", "type":"CNAME", "name":"mail.skuska.sk", "content":"mail.platon.sk", "ttl":"21600", "prio":null}
,{"record_id":"11142121", "type":"CNAME", "name":"pop3s.skuska.sk", "content":"pop3s.platon.sk", "ttl":"21600", "prio":null}
,{"record_id":"11142123", "type":"CNAME", "name":"smtps.skuska.sk", "content":"smtps.platon.sk", "ttl":"21600", "prio":null}
,{"record_id":"11142125", "type":"CNAME", "name":"webmail.skuska.sk", "content":"webmail.platon.sk", "ttl":"21600", "prio":null}
]}
}

Get records by type

Syntax

https://setup.platon.sk/ws.php?ws=dns&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=getType&type=<TYPE>

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain
<Type> - allowed types SOA, NS, TXT, SPF, SSHFP, SRV, PTR, MX, CNAME, A, AAAA

Example request:

https://setup.platon.sk/ws.php?ws=dns&token=jankohrasko&cname=karol&domain=skuska.sk&action=getType&type=CNAME
					

Example response:

{"status":"OK",
"retval":1,
"msg":null,
"data":{
"domain_id":"17767",
"domain":"skuska.sk",
"master":"server",
"type":null,
"records":[
{"record_id":"11142113","type":"CNAME","name":"autoconfig.skuska.sk","content":"autoconfig.platon.sk","ttl":"21600","prio":null}
,{"record_id":"11142115","type":"CNAME","name":"autodiscover.skuska.sk","content":"autodiscover.platon.sk","ttl":"21600","prio":null}
,{"record_id":"11142117","type":"CNAME","name":"imaps.skuska.sk","content":"imaps.platon.sk","ttl":"21600","prio":null}
,{"record_id":"11142119","type":"CNAME","name":"mail.skuska.sk","content":"mail.platon.sk","ttl":"21600","prio":null}
,{"record_id":"11142121","type":"CNAME","name":"pop3s.skuska.sk","content":"pop3s.platon.sk","ttl":"21600","prio":null}
,{"record_id":"11142123","type":"CNAME","name":"smtps.skuska.sk","content":"smtps.platon.sk","ttl":"21600","prio":null}
,{"record_id":"11142125","type":"CNAME","name":"webmail.skuska.sk","content":"webmail.platon.sk","ttl":"21600","prio":null}
]}
}

Add new record

Syntax

https://setup.platon.sk/ws.php?ws=dns&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=addRecord&type=<TYPE>&name=<NAME>&content=<CONTENT>&ttl=<TTL>&prio=<PRIO>

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain
<TYPE> - allowed types SOA, NS, TXT, SPF, SSHFP, SRV, PTR, MX, CNAME, A, AAAA
<NAME> - name of record
<CONTENT> - content of record
<TTL> - time to live
<PRIO> - priority, only for type MX

Example request:

https://setup.platon.sk/ws.php?ws=dns&token=jankohrasko&cname=karol&domain=skuska.sk&action=addRecord&type=mx&name=testx&content=server.sk&ttl=21600&prio=10
					

Example response:

{"status":"OK",
"retval":true,
"msg":null
,"data":null
}

Update exist record

Syntax

https://setup.platon.sk/ws.php?ws=dns&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=updateRecord&record_id=<RECORD_ID;>&type=<TYPE>&name=<NAME>&content=<CONTENT>&ttl=<TTL>&prio=<PRIO>

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain
<RECORD_ID> - ID of record, get it from action "get" or "getType"
<TYPE> - allowed types SOA, NS, TXT, SPF, SSHFP, SRV, PTR, MX, CNAME, A, AAAA [optional]
<NAME> - name of record [optional]
<CONTENT> - content of record [optional]
<TTL> - time to live [optional]
<PRIO> - priority, only for type MX [optional]

Example request for update name for record ID 11142115:

https://setup.platon.sk/ws.php?ws=dns&token=jankohrasko&cname=karol&domain=skuska.sk&action=updateRecord&record_id=11142115&name=testzzz
					

Example response:

{"status":"OK",
"retval":true,
"msg":null
,"data":null
}

Delete exist record

Syntax

https://setup.platon.sk/ws.php?ws=dns&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=deleteRecord&record_id=<RECORD_ID;>

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain
<RECORD_ID> - ID of record, get it from action "get" or "getType"

Example request for delete record ID 11142115:

https://setup.platon.sk/ws.php?ws=dns&token=jankohrasko&cname=karol&domain=skuska.sk&action=deleteRecord&record_id=11142115
					

Example response:

{"status":"OK",
"retval":true,
"msg":null
,"data":null
}

Domain management


Get domain info

Syntax

https://setup.platon.sk/ws.php?ws=domain&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=get

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain

Example request for get info about domain skuska.sk:

https://setup.platon.sk/ws.php?ws=domain&token=jankohrasko&cname=karol&domain=skuska.sk&action=get
					

Example response:

{"status":"OK",
"retval":1,
"msg":null,
"data":{
"is_free":"0",
"info_domain":{
"domain":"skuska.sk",
"id_owner":"IGOR-0697-2005",
"is_owner_default":false,
"name_owner":null,
"legal_form_owner":null,
"ico_owner":null,
"address_owner":null,
"phone_owner":null,
"email_owner":null,
"id_reg":"PLAT-0008",
"name_reg":null,
"ico_reg":null,
"address_reg":null,
"phone_reg":null,
"email_reg":null,
"status":"ok",
"ns1":"ns.platon.sk",
"ns2":"dns.platon.sk",
"ns3":"ns.platon.org",
"ns4":"dns.platon.org",
"dt_created":"2015-03-13 14:55:36",
"dt_valid":"2020-03-13 23:59:59",
"dt_changed":"2019-03-08 09:12:14",
"last_whois":null,
"authid":"5ghaCDGqwasdERRcsdERFDSsdf",
"contact_admin":"IGOR-0697-2005",
"contact_tech":"IGOR-0697-2005",
"contact_billing":false,
"dnssec_max_sig_life":false,
"dnssec":[],
"source":"sknic",
"ns1_ipv4":"85.248.229.195",
"ns1_ipv6":null,
"ns2_ipv4":"85.248.228.6",
"ns2_ipv6":null,
"ns3_ipv4":null,
"ns3_ipv6":null,
"ns4_ipv4":null,
"ns4_ipv6":null
},
"info_product":{
"cpid":"18494",
"domain":"skuska.sk",
"user_cname":"igor",
"owner_cname":"igor",
"payer_cname":"igor",
"product_name":"DOMAIN-SK",
"channel":null,
"language_id":"SK",
"otc_desc":null,
"frc_desc":null,
"rtc_desc":null,
"currency_id":"EUR",
"otc_price":null,
"frc_price":null,
"rtc_price":null,
"billing_invoice_count":"4",
"billing_unit_count":"48",
"billing_unit":null,
"billing_interval":null,
"billing_alignment":null,
"billing_direction":null,
"from_date":"2015-03-13",
"to_date":null,
"last_billing_dt":"2019-02-19 10:54:39",
"last_billing":"2019-02-18",
"next_billing":"2020-02-14",
"invoiced_to":"2020-03-13",
"payed_to":"2020-03-13",
"service_status":null,
"billing_status":"extern",
"note":null,
"created_cname":"evianka",
"created_dt":"2015-03-13 14:56:03",
"changed_cname":"evianka",
"changed_ts":"2019-07-16 12:41:28"
}
}
}

Register domain

Syntax

https://setup.platon.sk/ws.php?ws=domain&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=register&period=<PERIOD>

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain
<PERIOD> - years for registration (optional)

Example request for register domain skuska.sk:

https://setup.platon.sk/ws.php?ws=domain&token=jankohrasko&cname=karol&domain=skuska.sk&action=register
					

Example response:

{"status":"OK",
"retval":true,
"msg":null,
"data":null
}

Renew domain

Syntax

https://setup.platon.sk/ws.php?ws=domain&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=renew&period=<PERIOD>

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain
<PERIOD> - years for renewal (optional)

Example request for renew domain skuska.sk:

https://setup.platon.sk/ws.php?ws=domain&token=jankohrasko&cname=karol&domain=skuska.sk&action=renew
					

Example response:

{"status":"OK",
"retval":true,
"msg":"OK: payed\/renewed",
"data":null
}

Change NS on domain

Syntax

https://setup.platon.sk/ws.php?ws=domain&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=changeNS&ns1=<NS1>&ns2=<NS2>&ns3=<NS3>&ns4=<NS4>

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain
<NS1> - first nameserver (optional)
<NS2> - second nameserver (optional)
<NS3> - third nameserver (optional)
<NS4> - fourth nameserver (optional)

Example request for change NS on domain skuska.sk:

https://setup.platon.sk/ws.php?ws=domain&token=jankohrasko&cname=karol&domain=skuska.sk&action=changeNS&ns1=ns.platon.sk&ns2=dns.platon.sk
					

Example response:

{"status":"OK",
"retval":true,
"msg":null,
"data":null
}

List of domains products

Syntax

https://setup.platon.sk/ws.php?ws=domain&token=<TOKEN>&cname=<CNAME>&action=list

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME

Example request for list of domains products:

https://setup.platon.sk/ws.php?ws=domain&token=jankohrasko&cname=karol&action=list
					

Example response:

{"status":"OK",
"retval":1,
"msg":null,
"data":{
"count":2,
"products":[
{"cpid":"19619",
"domain":"sova.hu",
"product_name":"DOMAIN-HU",
"currency_id":"EUR",
"from_date":"2017-06-11",
"to_date":"2021-06-10",
"last_billing":"2018-05-11",
"next_billing":"2018-05-13",
"invoiced_to":"2020-06-10",
"payed_to":"2020-06-11",
"billing_status":"extern",
"real_otc_price":null,
"real_frc_price":"8.90",
"real_rtc_price":null
},{
"cpid":"19615",
"domain":"domcek.sk",
"product_name":"DOMAIN-SK",
"currency_id":"EUR",
"from_date":"2018-03-06",
"to_date":null,
"last_billing":"2018-03-03",
"next_billing":"2019-02-19",
"invoiced_to":"2019-03-18",
"payed_to":"2019-03-18",
"billing_status":"extern",
"real_otc_price":"-3.30",
"real_frc_price":"4.50",
"real_rtc_price":null}
]}
}

Close domain product

Syntax

https://setup.platon.sk/ws.php?ws=domain&token=<TOKEN>&cname=<CNAME>&domain=<DOMAIN>&action=close

<TOKEN> - set up in Customer Settings
<CNAME> - your CNAME
<DOMAIN> - domain

Example request for renew domain skuska.sk:

https://setup.platon.sk/ws.php?ws=domain&token=jankohrasko&cname=karol&domain=skuska.sk&action=close
					

Example response:

{"status":"OK",
"retval":true,
"msg":null,
"data":null
}

helpdesk

sme pripravení pomôcť

práve k dispozícií

online pracovníkov 2 / 6

Platon Technologies

How can we help you?

Prijímame hlásenia problémov či iných podnetov, súvisiacich s používaním našich produktov a služieb.

helpdesk@platon.sk +421 222 111 321 (8:30 - 17:30)

Ak potrebujete pomoc, kontaktujte nás e-mailom alebo telefonicky.

  • Telefonicky od 8:30 - 17:30
  • Aj cez víkendy a sviatky
  • Rýchla expertná pomoc
  • Jednoduchý a ľudský prístup
  • Riešime aj zložité problémy
kontaktný formulár

Dajte šancu našej online poradni. Nájdete v nej viac ako:

  • 6 kategórií
  • 57 návodov
  • 22 e-mailových nastavení
  • 6 programátorských tipov
prejsť do poradne

Otázky ohľadom naších produktov alebo špecifické požiadavky? Napíšte nám.

Ďakujeme za odkaz

V prípade potreby vás budeme kontaktovať.

Nepodarilo sa odoslať

Kontaktujte nás na helpdesk@platon.sk

NEWSLETTER

Prihlásiť sa na odber našich noviniek a aktuálnych akcií

Ďakujeme za Váš odber

Nepodarilo sa prihlásiť