Allows to purchase the specified domain.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v5/domains/buy?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "address1": "340 S Lemon Ave Suite 4133",4 "city": "San Francisco",5 "country": "US",67 "firstName": "Jane",8 "lastName": "Doe",9 "name": "example.com",10 "phone": "+1.4158551452",11 "postalCode": "91789",12 "state": "CA",13 "expectedPrice": 10,14 "orgName": "Acme Inc.",15 "renew": true16 },17 "headers": {18 "Authorization": "Bearer <TOKEN>"19 },20 "method": "post"21})
Query Parameter | Description |
---|---|
slug | string The Team slug to perform the request on behalf of. |
teamId | string The Team identifier to perform the request on behalf of. |
domainobjectRequired
Code | Description |
---|---|
201 | |
202 | |
400 | One of the provided values in the request body is invalid. |
401 | |
403 | You do not have permission to access this resource. |
409 | |
429 |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v5/domains/buy?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "address1": "340 S Lemon Ave Suite 4133",4 "city": "San Francisco",5 "country": "US",67 "firstName": "Jane",8 "lastName": "Doe",9 "name": "example.com",10 "phone": "+1.4158551452",11 "postalCode": "91789",12 "state": "CA",13 "expectedPrice": 10,14 "orgName": "Acme Inc.",15 "renew": true16 },17 "headers": {18 "Authorization": "Bearer <TOKEN>"19 },20 "method": "post"21})
Check the price to purchase a domain and how long a single purchase period is.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v4/domains/price?name=example.com&slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE&type=new", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Query Parameter | Description |
---|---|
name | string requiredThe name of the domain for which the price needs to be checked. Example: example.com |
slug | string The Team slug to perform the request on behalf of. |
teamId | string The Team identifier to perform the request on behalf of. |
type | string of the following In which status of the domain the price needs to be checked. Example: new Allowed values: new renewal transfer redemption |
Successful response which returns the price of the domain and the period.
object Successful response which returns the price of the domain and the period.
Code | Description |
---|---|
200 | Successful response which returns the price of the domain and the period. |
400 | One of the provided values in the request query is invalid. |
401 | |
403 | You do not have permission to access this resource. |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v4/domains/price?name=example.com&slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE&type=new", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Check if a domain name is available for purchase.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v4/domains/status?name=example.com&slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Query Parameter | Description |
---|---|
name | string requiredThe name of the domain for which we would like to check the status. Example: example.com |
slug | string The Team slug to perform the request on behalf of. |
teamId | string The Team identifier to perform the request on behalf of. |
availablebooleanRequired
Code | Description |
---|---|
200 | Successful response checking if a Domain's name is available. |
400 | One of the provided values in the request query is invalid. |
401 | |
403 | You do not have permission to access this resource. |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v4/domains/status?name=example.com&slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
This endpoint is used for adding a new apex domain name with Vercel for the authenticating user. Can also be used for initiating a domain transfer request from an external Registrar to Vercel.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v5/domains?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "name": "example.com",4 "cdnEnabled": true,5 "zone": true,6 "method": "add"7 },8 "headers": {9 "Authorization": "Bearer <TOKEN>"10 },11 "method": "post"12})
Query Parameter | Description |
---|---|
slug | string The Team slug to perform the request on behalf of. |
teamId | string The Team identifier to perform the request on behalf of. |
domainobjectRequired
Code | Description |
---|---|
200 | |
400 | One of the provided values in the request body is invalid. |
401 | |
402 |
|
403 | You do not have permission to access this resource. |
404 | |
409 | |
500 |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v5/domains?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "name": "example.com",4 "cdnEnabled": true,5 "zone": true,6 "method": "add"7 },8 "headers": {9 "Authorization": "Bearer <TOKEN>"10 },11 "method": "post"12})
Delete a previously registered domain name from Vercel. Deleting a domain will automatically remove any associated aliases.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v6/domains/example.com?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "delete"6})
Path Parameter | Description |
---|---|
domain | string requiredThe name of the domain. Example: example.com |
uidstringRequired The id of the newly created DNS record Example:
rec_V0fra8eEgQwEpFhYG2vTzC3K
Code | Description |
---|---|
200 | Successful response removing a domain. |
400 | One of the provided values in the request query is invalid. |
401 | |
403 | You do not have permission to access this resource. |
404 | |
409 |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v6/domains/example.com?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "delete"6})
Get information for a single domain in an account or team.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v5/domains/example.com?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Path Parameter | Description |
---|---|
domain | string requiredThe name of the domain. Example: example.com |
domainobjectRequired
Code | Description |
---|---|
200 | Successful response retrieving an information for a specific domains. |
400 | One of the provided values in the request query is invalid. |
401 | |
403 | You do not have permission to access this resource. |
404 |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v5/domains/example.com?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Get a Domain's configuration.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v6/domains/example.com/config?slug=SOME_STRING_VALUE&strict=true&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Path Parameter | Description |
---|---|
domain | string requiredThe name of the domain. Example: example.com |
acceptedChallengesarray Which challenge types the domain can use for issuing certs. configuredBystring or null One of: CNAME
|A
|http
|dns-01
How we see the domain's configuration. - CNAME
: Domain has a CNAME pointing to Vercel. -A
: Domain's A record is resolving to Vercel. -http
: Domain is resolving to Vercel but may be behind a Proxy. -dns-01
: Domain is not resolving to Vercel but dns-01 challenge is enabled. -null
: Domain is not resolving to Vercel.misconfiguredbooleanRequired Whether or not the domain is configured AND we can automatically generate a TLS certificate.
Code | Description |
---|---|
200 | |
400 | One of the provided values in the request query is invalid. |
401 | |
403 | You do not have permission to access this resource. |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v6/domains/example.com/config?slug=SOME_STRING_VALUE&strict=true&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Fetch domain transfer availability or transfer status if a transfer is in progress.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v1/domains/domain/registry?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Query Parameter | Description |
---|---|
slug | string The Team slug to perform the request on behalf of. |
teamId | string The Team identifier to perform the request on behalf of. |
reasonstringRequired Description associated with transferable state. statusstringRequired One of: pending_owner
|pending_admin
|pending_registry
|completed
|cancelled
|undef
|unknown
The current state of an ongoing transfer. pending_owner
: Awaiting approval by domain's admin contact (every transfer begins with this status). If approval is not given within five days, the transfer is cancelled.pending_admin
: Waiting for approval by Vercel Registrar admin.pending_registry
: Awaiting registry approval (the transfer completes after 7 days unless it is declined by the current registrar).completed
: The transfer completed successfully.cancelled
: The transfer was cancelled.undef
: No transfer exists for this domain.unknown
: This TLD is not supported by Vercel's Registrar.transferPolicystring or nullRequired One of: charge-and-renew
|no-charge-no-change
|no-change
|new-term
|not-supported
The domain's transfer policy (depends on TLD requirements). charge-and-renew
: transfer will charge for renewal and will renew the existing domain's registration.no-charge-no-change
: transfer will have no change to registration period and does not require charge.no-change
: transfer charge is required, but no change in registration period.new-term
: transfer charge is required and a new registry term is set based on the transfer date.not-supported
: transfers are not supported for this domain or TLD.null
: This TLD is not supported by Vercel's Registrar.transferablebooleanRequired Whether or not the domain is transferable
Code | Description |
---|---|
200 | |
400 | |
401 | |
403 | You do not have permission to access this resource. |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v1/domains/domain/registry?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Retrieves a list of domains registered for the authenticated user or team. By default it returns the last 20 domains if no limit is provided.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v5/domains?limit=20&since=1609499532000&slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE&until=1612264332000", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Query Parameter | Description |
---|---|
limit | number Maximum number of domains to list from a request. Example: 20 |
since | number Get domains created after this JavaScript timestamp. Example: 1609499532000 |
slug | string The Team slug to perform the request on behalf of. |
teamId | string The Team identifier to perform the request on behalf of. |
until | number Get domains created before this JavaScript timestamp. Example: 1612264332000 |
domainsarrayRequired paginationRequired
Code | Description |
---|---|
200 | Successful response retrieving a list of domains. |
400 | One of the provided values in the request query is invalid. |
401 | |
403 | You do not have permission to access this resource. |
409 |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v5/domains?limit=20&since=1609499532000&slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE&until=1612264332000", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Update or move apex domain.
Optional params
fetch-request
1await fetch("https://api.vercel.com/v3/domains/SOME_STRING_VALUE?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "op": "update",4 "renew": true,5 "customNameservers": "SOME_ARRAY_VALUE",6 "zone": true7 },8 "headers": {9 "Authorization": "Bearer <TOKEN>"10 },11 "method": "patch"12})
Path Parameter | Description |
---|---|
domain | string |
One of the following objects
Code | Description |
---|---|
200 | |
400 |
|
401 | |
403 | You do not have permission to access this resource. |
404 | |
409 |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v3/domains/SOME_STRING_VALUE?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "op": "update",4 "renew": true,5 "customNameservers": "SOME_ARRAY_VALUE",6 "zone": true7 },8 "headers": {9 "Authorization": "Bearer <TOKEN>"10 },11 "method": "patch"12})
Was this helpful?