post/v5/domains/buy

Allows to purchase the specified domain.

Optional params

fetch-request

1
await 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",
6
"email": "jane.doe@someplace.com",
7
"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": true
16
},
17
"headers": {
18
"Authorization": "Bearer <TOKEN>"
19
},
20
"method": "post"
21
})
Query Params
Body Params
Query ParameterDescription

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
  • Properties
CodeDescription
201
202
400One of the provided values in the request body is invalid.
401
403You do not have permission to access this resource.
409
429
get/v4/domains/price

Check the price to purchase a domain and how long a single purchase period is.

Optional params

fetch-request

1
await 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 Params
Query ParameterDescription

name

string

required
The 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:newrenewaltransferredemption

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.
CodeDescription
200Successful response which returns the price of the domain and the period.
400One of the provided values in the request query is invalid.
401
403You do not have permission to access this resource.
get/v4/domains/status

Check if a domain name is available for purchase.

Optional params

fetch-request

1
await 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 Params
Query ParameterDescription

name

string

required
The 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
CodeDescription
200Successful response checking if a Domain's name is available.
400One of the provided values in the request query is invalid.
401
403You do not have permission to access this resource.
post/v5/domains

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

1
await 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 Params
Body Params
Query ParameterDescription

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
  • Properties
CodeDescription
200
400One of the provided values in the request body is invalid.
401
402
  • The account was soft-blocked for an unhandled reason.

  • The account is missing a payment so payment method must be updated

403You do not have permission to access this resource.
404
409
500
delete/v6/domains/{domain}

Delete a previously registered domain name from Vercel. Deleting a domain will automatically remove any associated aliases.

Optional params

fetch-request

1
await 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 Params
Query Params
Path ParameterDescription

domain

string

required
The name of the domain.
Example:example.com
  • uidstringRequired
    The id of the newly created DNS record

    Example: rec_V0fra8eEgQwEpFhYG2vTzC3K

CodeDescription
200Successful response removing a domain.
400One of the provided values in the request query is invalid.
401
403You do not have permission to access this resource.
404
409
get/v5/domains/{domain}

Get information for a single domain in an account or team.

Optional params

fetch-request

1
await 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 Params
Query Params
Path ParameterDescription

domain

string

required
The name of the domain.
Example:example.com
  • domainobjectRequired
  • Properties
CodeDescription
200Successful response retrieving an information for a specific domains.
400One of the provided values in the request query is invalid.
401
403You do not have permission to access this resource.
404
get/v6/domains/{domain}/config

Get a Domain's configuration.

Optional params

fetch-request

1
await 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 Params
Query Params
Path ParameterDescription

domain

string

required
The 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.
CodeDescription
200
400One of the provided values in the request query is invalid.
401
403You do not have permission to access this resource.
500
get/v1/domains/{domain}/registry

Fetch domain transfer availability or transfer status if a transfer is in progress.

Optional params

fetch-request

1
await 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 Params
Query ParameterDescription

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
CodeDescription
200
400
401
403You do not have permission to access this resource.
get/v5/domains

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

1
await 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 Params
Query ParameterDescription

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
  • Properties
  • paginationRequired
CodeDescription
200Successful response retrieving a list of domains.
400One of the provided values in the request query is invalid.
401
403You do not have permission to access this resource.
409
patch/v3/domains/{domain}

Update or move apex domain.

Optional params

fetch-request

1
await 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": true
7
},
8
"headers": {
9
"Authorization": "Bearer <TOKEN>"
10
},
11
"method": "patch"
12
})
Path Params
Query Params
Body Params
Path ParameterDescription

domain

string

  • One of the following objects
  • One of
CodeDescription
200
400
  • One of the provided values in the request body is invalid.

  • One of the provided values in the request query is invalid.

401
403You do not have permission to access this resource.
404
409
Last updated on December 25, 2024