Skip to main content
POST
/
v1
/
apps
/
{app_id}
/
deploys
/
webhooks
Create Deploy Webhook
curl --request POST \
  --url https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhooks \
  --header 'Content-Type: application/json' \
  --data '
{
  "owner": "<string>",
  "repo_name": "<string>",
  "repo_id": "<string>",
  "account_id": "<string>"
}
'
{
  "response": "https://api.vertracloud.app/v1/apps/123/deploys/receiver/webhook"
}
app_id
string
required
The ID of the application where the webhook will be created.
owner
string
required
The GitHub repository owner.
repo_name
string
required
The name of the GitHub repository.
repo_id
string
required
The ID of the GitHub repository.
account_id
string
required
The GitHub account ID.

Response

response
string
The URL of the created webhook.
{
  "response": "https://api.vertracloud.app/v1/apps/123/deploys/receiver/webhook"
}

Error Responses

code
string
Possible error codes:
  • UNAUTHORIZED: User is not authenticated or lacks permissions.
  • PLAN_RESTRICTED_FEATURE: User plan does not support auto-deploy.
  • INVALID_ACCOUNT_ID: Provided GitHub account ID is invalid.
  • MISSING_REPO_INFORMATION: Required repository information is missing.
  • INSTALLATION_NOT_FOUND: GitHub installation not found for the user.
message
string
A descriptive message providing additional details about the error.
{
  "code": "INVALID_ACCOUNT_ID"
}