API reference/Domain names
Get the transfer code
Try itUnlocks the domain and returns its transfer (EPP) code, for moving it to another registrar — the domain is the client's. The code is never kept for a replay: no Idempotency-Key.
POST
/api/v1/domain-names/{registration_id}/transfer-codeAuthentication
An API key as Authorization: Bearer or x-api-key. It needs the domains:write scope — connect, check and remove domains.
domains:writeChanges the live siteNo Idempotency-Key — one-time secretMCP tool: get_domain_transfer_code
Parameters
Named placeholders go in the path; the rest in a JSON body.
registration_idstringPath · required- The domain name's id.1 to 100 characters
Response
200 with JSON on success (schema on the right). Errors use the standard envelope; the answer holds a one-time secret, so it is never saved for a replay and an Idempotency-Key is refused (400 idempotency_key_not_accepted) — call again to get a new one.
curl -X POST 'https://websites.workflowcorp.com/api/v1/domain-names/REGISTRATION_ID/transfer-code' \
-H "Authorization: Bearer $WEBSITEBUDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"registration_id": "REGISTRATION_ID"
}{
"type": "object",
"properties": {
"domain": {
"type": "string"
},
"transfer_code": {
"type": "string"
}
},
"required": [
"domain",
"transfer_code"
],
"additionalProperties": false
}