domains

POST /v1/domains/{domainId}/auth-code

Reveal a domain's EPP transfer code.

Све domains крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу domains.dns.manage; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X POST https://api.zinndigital.com/v1/domains/{domainId}/auth-code \
  -H "Authorization: Bearer zdk_live_…"

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

Returns the domain's EPP/auth code, which authorizes transferring the domain to another registrar. It is fetched from the registrar on demand, returned once, and never stored or logged by us; the response is no-store. A POST deliberately, despite reading: revealing a credential must not be something a page load, a prefetch, a browser-history entry or a cache can trigger. The reveal is audit-logged (the code itself never is). Requires domains.dns.manage. 422 where the registrar publishes no auth-code endpoint at all (the Cloudflare route). The refusal names the way out rather than simply declining — a customer is entitled to leave, so support fetches the code rather than the transfer being delayed.

Параметри

НазивТипОбавезноШта је ово
domainId (path)UuidДаThe domain's id.

Одговор

НазивТипОбавезноШта је ово
auth_codestringДаThe EPP/auth code. A credential — it authorizes moving the domain to another registrar. Do not store, log or display it beyond the confirmation that requested it.
expires_atstringДаHow long to treat the displayed code as current. A presentation bound, not a promise of invalidation — most registrars do not publish a real lifetime.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 422 · 429 · 503