error key (with one Cloudflare exception noted below).
Success shapes
A200 response can take several forms depending on the endpoint:
- A bare JSON string, such as
"success","unlocked", or"2.3.0". {"success":true}— for example, after saving nameservers.{"status":"success","message":"","success":"success"}— for example, after saving contacts or the registrar lock.
Error responses
Domain not in reseller account (403)
Registrar error on sync (500)
Function not supported (501)
A
501 depends on the registrar module backing your reseller account, not on your request. These functions may be supported in a production account whose registrar implements them. Treat 501 as “not available on this account” rather than a bug in your call.Request validation error (400)
POST /domains/lookup/suggestions returns this if you omit suggestionSettings. Recheck the parameters against the endpoint’s reference page.
Cloudflare block (403)
Python-urllib). Send a normal User-Agent. See Authentication.