Skip to main content

List domains

Retrieve all purchased domains that belong to your account, including their status, expiration date, mailbox count, and other basic information. To retrieve full details for a specific domain, use the get domain endpoint.

Request

Endpoint

GET https://api.woodpecker.co/rest/v2/domains

Headers

x-api-key: {YOUR_API_KEY}

For details on how to authenticate your requests, please see the authentication guide.

Request samples

List domains

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/domains" \
--header "x-api-key: {YOUR_API_KEY}"

Response

Response examples

Request processed successfully. If there are no domains under this account, domains will be an empty array.

{
"domains": [
{
"domain": "piedpiper.com",
"mailboxes_count": 2,
"provider": "GOOGLE",
"is_custom_domain": true,
"is_ready": true,
"expires": "2027-06-24T10:00:00",
"created": "2026-06-24T10:00:00"
}
]
}

Body schema

FieldTypeDescription
domainsarrayDomains that belong to the account
  └─ domainstringDomain name
  └─ mailboxes_countintegerNumber of non-deleted mailboxes associated with the domain
  └─ providerstringDomain and mailboxes provider name. Check providers endpoint to list available providers
  └─ is_custom_domainbooleanWhether the domain was purchased independently and transferred to Woodpecker
  └─ is_readybooleanWhether the domain is ready to use
  └─ expiresstringDomain expiration timestamp
  └─ createdstringDomain creation timestamp