Skip to main content
POST
Create Deploy Webhook
string
required
The ID of the application where the webhook will be created.
string
required
The GitHub repository owner.
string
required
The name of the GitHub repository.
string
required
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.
string
required
The GitHub account ID.
string
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

object
Contains the created webhook.

Error Responses

string
Possible error codes:
  • AUTH_TOKEN_MISSING, API_KEY_INVALID, SESSION_REVOKED: The Authorization header 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 the workspace_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 invalid owner, repo_name, repo_id or branch (400). details.path names the field.
string
A descriptive message providing additional details about the error.
Last modified on November 20, 2026