Get a transfer code

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

Generates a fresh transfer (auth) code and shows it once: we never store it, and it never appears in a list or a webhook. The domain must have its transfer lock off first; this never turns it off for you. A new code replaces the old one.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Path Parameters

id*string

Response Body

The transfer code, shown once

application/json
  1. response

The transfer code, shown once

authCode*string

The transfer code. Shown once; we keep no copy

curl -X POST "https://example.com/v1/domains/dom_01K6XJ4Q8ZT3M9R5V2B7WDHNCA/auth-code"
{  "authCode": "string"}