Skip to main content

Order domains

Order domains and mailboxes that are preconfigured for cold emailing and ready to use in Woodpecker. Creating a domain owner is required before placing an order.

Domain and mailbox purchases are paid from your prepaid funds, so you need enough balance before placing an order. After purchase, mailbox renewals are covered by your regular monthly Woodpecker billing cycle. If the order fails because of insufficient funds, add prepaid funds in Woodpecker before retrying.

Request

info

This endpoint will create billable domain and mailbox assets

Use the get domain providers endpoint to check mailbox pricing, and an availability endpoint to check domain pricing and availability before placing an order. The purchase itself is paid from prepaid funds; ongoing mailbox renewals are billed monthly after purchase.

Endpoint

POST https://api.woodpecker.co/rest/v2/domains/order

Headers

x-api-key: {YOUR_API_KEY}
Content-Type: application/json

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

Body

{
"provider": "GOOGLE",
"domains": [
"piedpiper.com"
],
"mailboxes": [
{
"first_name": "Richard",
"last_name": "Hendricks",
"email": "richard@piedpiper.com"
}
]
}

Body schema

FieldTypeRequiredDescription
providerstringYesProvider used for the order. Valid values include MAILDOSO, MAILFORGE, GOOGLE, and MICROSOFT. Check providers endpoint to list available providers
domainsarray[string]YesDomains to order. Values must be unique and must not already exist for the account. Use order mailboxes endpoint to purchase mailboxes for an already existing domain
mailboxesarrayYesMailboxes to order with the domains
  └─ first_namestringYesMailbox owner's first name. Used to display the 'from name'
  └─ last_namestringYesMailbox owner's last name. Used to display the 'from name'
  └─ emailstringYesMailbox email address to order

Request samples

Order a domain with one mailbox

curl --request POST \
--url "https://api.woodpecker.co/rest/v2/domains/order" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"provider": "GOOGLE",
"domains": [
"piedpiper.com"
],
"mailboxes": [
{
"first_name": "Richard",
"last_name": "Hendricks",
"email": "richard@piedpiper.com"
}
]
}'

Response

Response examples

The order has been accepted for processing. Use the get domain endpoint to review the processing status.