Authentication
Projects
Environments
Rows
Functions
Webhooks
Environments
Create preview branch
Create an isolated preview environment from a git branch.
POST
/v1/projects/{project_id}/branches
Creates a branch environment, applies the schema from the given git ref, loads seed data and deploys functions.
Authorizations
AuthorizationstringrequiredBearer token. Use a server key or a user access token: Bearer <token>.
Path parameters
project_idstringrequiredThe project ID.
Request body
namestringrequiredBranch name, usually the git branch.
git_refstringrequiredCommit SHA or branch to build from.
copy_fromstringoptionalEnvironment to inherit secrets from. Defaults to development.
Response fields
idstringrequiredEnvironment ID.
api_urlstringrequiredBase URL for this branch.
statusstringrequiredprovisioning until ready.
Errors
unauthorizedThe token is missing, expired or revoked.
validation_failedOne or more fields are invalid. See error.fields for details.
branch_existsA branch with this name already exists.
© 2026 Tessera, Inc.
Support
Status