Deploys
Create Deploy Webhook
Creates a deploy webhook for a GitHub repository, so a push to the chosen branch deploys the application.
POST
Create Deploy Webhook
The ID of the GitHub repository. It is checked against the repository itself: if it does not match
owner and repo_name, the request fails with VALIDATION_ERROR (400) and details.path set to repo_id.The Git branch that triggers the deploy (for example
develop or release/1.2). Optional: without it, a push to main or master deploys. With it, only a push to that branch deploys, and a push to any other branch is ignored. The delivery is still answered with 200.Calling this route again for an application that already has a webhook replaces the branch: send another branch to switch to it, or omit it to go back to main or master. An invalid branch name fails with VALIDATION_ERROR (400) and details.path set to branch.Response
Error Responses
Possible error codes:
AUTH_TOKEN_MISSING,API_KEY_INVALID,SESSION_REVOKED: TheAuthorizationheader is missing, the API key is invalid, or the dashboard session was revoked (401).API_KEY_IP_DENIED,API_KEY_SCOPE_DENIED: The API key is used from an IP outside its allowlist, or it lacks the scope the route requires (403).ACCESS_DENIED: You are a workspace member without the permission for this action, or you did not send theworkspace_id(403).APP_NOT_FOUND: The application was not found (404).PLAN_RESTRICTED_FEATURE: User plan does not support auto-deploy.INSTALLATION_NOT_FOUND: GitHub installation not found for the user, or the repository is not one of the repositories that installation can access (404).IMAGE_APP_CODE_NOT_APPLICABLE: The application runs a custom Docker image, which has no automatic deploy from GitHub (409). Link the image to GitHub instead.FETCH_ZIP_ERROR: GitHub could not be reached or was limiting requests while the repository was checked (502). Try again in a few minutes.VALIDATION_ERROR: The body failed validation, for example an invalidowner,repo_name,repo_idorbranch(400).details.pathnames the field.
Last modified on November 20, 2026