• GoDaddy Community
  • VPS & Dedicated Servers
  • VPS & Dedicated Servers

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    Go to solution
    Highlighted

    GoDaddy API does not work

    Hi,

    I am trying to add a new dns entry via curl query:

    curl -X PATCH -H 'Authorization: sso-key {KEY}:{SECRET}' -H 'Content-Type: application/json' https://api.godaddy.com/v1/domains/mydomain.com/records/ -d '[{"type": "A", "name": newdnsentry.mydomain.com","data":"'3.3.3.3'","ttl":3600}]'

    I got this response:

    {
      "message": "Not Found : The requested resource was not found",
      "code": "NOT_FOUND"
    }

    Recently it's worked perfectly, and suddenly stopped work about month ago.

    I am using key and secret of production configuration.I have generated the new ones for checking.

    I can get the information about mydomain, but to add the new entry I can't.

     

    Please advice.

    8 REPLIES 8
    Helper VI
    Helper VI

    Re: GoDaddy API does not work

    @minereye are you a reseller?

    Have you tried with: 

    https://api.ote-godaddy.com/v1/domains

    ?

     

    Hope it helps! 

    If you find my replies helpful, give me a like or kudo Smiley Happy
    And if I solved your issue, mark it as solution Smiley Very Happy

    Re: GoDaddy API does not work

    Hi, jpablo

    Thank you for the answer.

    No, we are not, but have the domain minereye.com registered on GoDaddy.

    Yes, I have tried the new address, without success. Smiley Sad

    Helper VI
    Helper VI

    Re: GoDaddy API does not work

    @minereye what happens if you try to fill in here? Does it work?

    If you find my replies helpful, give me a like or kudo Smiley Happy
    And if I solved your issue, mark it as solution Smiley Very Happy
    Helper VI
    Helper VI
    Solution

    Re: GoDaddy API does not work

    @minereye I went on and tried the api with the domain 000.biz and added a xyz record.

    Here's my code for body:

    [{"type" : "A",
    "name" : "xyz.000.biz", "data" : "3.3.3.3",
    "ttl": 3600
    }]

    With this URL:

     

    https://api.ote-godaddy.com/v1/domains/000.biz/records

    These headers:

    {
      "Content-Type": "application/json",
      "Accept": "application/json",
      "Authorization": "sso-key GODADDY'S KEY"
    }

     

     

    And got a 200 response, which means OK.

     

    Hope it helps!

    If you find my replies helpful, give me a like or kudo Smiley Happy
    And if I solved your issue, mark it as solution Smiley Very Happy
    Solution

    Re: GoDaddy API does not work

    It was the stupid mistake in the address: https://api.godaddy.com/v1/domains/mydomain.com/records/

     

    Thank you for help.

    Not getting Custom Nameservers using godaddy api

    Hi,

    I used this api call to get DNS records and nameservers using domain name

    https://api.godaddy.com/v1/domains/testsd34.com/records/NS

    recordGet here

    For default godaddy nameservers its giving everything perfectly but whenever i am using custom nameservers that time this api call not giving nameservers anyone knows how to get custom nameservers using this api call?

     

    Re: Not getting Custom Nameservers using godaddy api

    From last two weeks, i didn't get any reply from GoDaddy for this topic.

    GoDaddy API returning JSON instead of XML

    I've been using the GoDaddy API (/v1/domains) to retrieve a list of all domains currently registered on my account for a while but I noticed that the API recently started sending results in JSON format instead of XML.

     

    When I test the API using https://developer.godaddy.com/doc#!/_v1_domains/list the results are always returned in JSON regardless of the content type requested, so this appears to be an issue with the API itself vs anything specific to my use case.

     

    This seems like a bug.  How can I get help making the API work as designed and return the type of content I'm requesting?.