Hi there,
My provider uses cPanel and I am trying to use the api to create a TXT record in my DNS zone.
I created an API key, and use this page to see which call I need to do: Cpanel API 2 ZoneEdit
So, in my case it should be:
I keep getting "access denied". I tried port 2083. I tried to move the user and key to an authentication header. Nothing helps...
What am I doing wrong?
The documentation isn't very clear if it should be a GET or POST request. But I tried both in Postman.
My provider uses cPanel and I am trying to use the api to create a TXT record in my DNS zone.
I created an API key, and use this page to see which call I need to do: Cpanel API 2 ZoneEdit
So, in my case it should be:
Code:
https://domain.com:2087/<MY_API_KEY>/json-api/cpanel?cpanel_jsonapi_user=vanveldh&cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=add_zone_record&domain=domain.com&name=_acme-challenge&type=TXT&txtdata="test"&class=IN
What am I doing wrong?
The documentation isn't very clear if it should be a GET or POST request. But I tried both in Postman.
Last edited by a moderator: