Retrieve project domains by project by id or name
Changed onRetrieve the domains associated with a given project by passing either the project id or name in the URL.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v9/projects/{idOrName}/domains
- Auth: HTTP bearer
Path parameters
The unique project identifier or the project name
Query parameters
Filters only production domains when set to true.
Filters on the target of the domain. Can be either "production", "preview"
The unique custom environment identifier within the project
Filters domains based on specific branch.
Excludes redirect project domains when "false". Includes redirect project domains when "true" (default).
Filters domains based on their redirect target.
Filters domains based on their verification status.
Maximum number of domains to list from a request (max 100).
Get domains created after this JavaScript timestamp.
Get domains created before this JavaScript timestamp.
Domains sort order by createdAt
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Response
Successful response retrieving a list of domains
Example response
{
"pagination": {
"count": 20,
"next": 1540095775951,
"prev": 1540095775951
}
}Changes
- info
added the non-success response with the status
- info
- info
added the non-success response with the status
- info