Skip to main content
post/v2/teamspaces/{teamspaceId}/sites
Request example
Response
post/v2/teamspaces/{teamspaceId}/sites

Authorization

Authorizationstringheaderrequired#
Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely.

Path parameters

teamspaceIdstringrequired#
Teamspace id.

Body

application/json
repoUrlstringrequired#
branchstring#
Production branch. Default: the repository's default branch.

Length: 1–255

docsPathstringrequired#
Docs folder; . for the root.
context7Indexboolean#
Also index the repository in Context7.
slugstring#
First label of the platform hostname. Default: owner-repo. Owner or admin.

Length: 3–40Pattern: ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

customDomainstring#
Owner or admin.
customDomainPathstring#
Required with proxy routing. Owner or admin.
customDomainRoutingenum<string>#
Required with customDomain. Owner or admin.
Options:dnsproxy

Responses

application/json
The new site
dataobjectrequired#
A Docs7 site built from a GitHub repository.
deploymentIdstring#
The first build, when one started.