Topic: Api

Post Api
by lucasdj on Saturday, January 16, 2021

Im using letsencrypt service and I want to push the generated _acme-challenge TXT Record through your API. If I use Record type A works but TXT doesn't.
{"statusCode":505,"type":"Validation Exception","message":"Invalid content."}

Reply with quote | Report
Post Re: Api
by edent on Monday, June 30, 2025

Did you ever figure out how to do this? I'm stuck with the same issue. Thanks!

Reply with quote | Report
Post Re: Api
by edent on Monday, June 30, 2025

This is what worked for me:

curl -X POST "https://api.dynu.com/v2/dns/123456/record" \
-d "{ \"textData\": \"This is a test\", \"domainName\": \"yourname.ddnsfree.com\", \"nodeName\": \"\", \"recordType\": \"TXT\", \"ttl\": 3600, \"state\": \"true\"}" -H "Content-Type: application/json" -H "Authorization: Bearer _____________"

Reply with quote | Report
Wednesday, July 2, 2025 8:19 PM
Loading...