Get Registration
client.registrar.registrations.get(stringdomainName, RegistrationGetParams { account_id } params, RequestOptionsoptions?): Registration { auto_renew, created_at, domain_name, 4 more }
GET/accounts/{account_id}/registrar/registrations/{domain_name}
Returns the current state of a domain registration.
This is the canonical read endpoint for a domain you own. It returns
the full registration resource including current settings and expiration.
When the registration resource is ready, both created_at and expires_at
are present in the response.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Parameters
Get Registration
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const registration = await client.registrar.registrations.get('example.com', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
console.log(registration.auto_renew);{
"errors": [],
"messages": [],
"result": {
"auto_renew": true,
"created_at": "2025-01-15T10:00:00Z",
"domain_name": "example.com",
"expires_at": "2026-01-15T10:00:00Z",
"locked": true,
"privacy_mode": "redaction",
"status": "active"
},
"success": true
}{
"errors": [
{
"code": 10000,
"message": "Domain not found"
}
],
"messages": [],
"result": null,
"success": false
}{
"errors": [
{
"code": 10000,
"message": "Invalid domain name"
}
],
"messages": [],
"result": null,
"success": false
}Returns Examples
{
"errors": [],
"messages": [],
"result": {
"auto_renew": true,
"created_at": "2025-01-15T10:00:00Z",
"domain_name": "example.com",
"expires_at": "2026-01-15T10:00:00Z",
"locked": true,
"privacy_mode": "redaction",
"status": "active"
},
"success": true
}{
"errors": [
{
"code": 10000,
"message": "Domain not found"
}
],
"messages": [],
"result": null,
"success": false
}{
"errors": [
{
"code": 10000,
"message": "Invalid domain name"
}
],
"messages": [],
"result": null,
"success": false
}