Get Deploy Webhook URL
curl --request GET \
--url https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhookimport requests
url = "https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"response": {
"repo_owner": "owner_name",
"repo_name": "repository_name",
"webhook_url": "https://api.vertracloud.app/v1/apps/123/deploys/receiver/webhook"
}
}
Deploys
Get Deploy Webhook URL
Retrieves the GitHub deploy webhook URL and repository information for an application.
GET
/
v1
/
apps
/
{app_id}
/
deploys
/
webhook
Get Deploy Webhook URL
curl --request GET \
--url https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhookimport requests
url = "https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/apps/{app_id}/deploys/webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"response": {
"repo_owner": "owner_name",
"repo_name": "repository_name",
"webhook_url": "https://api.vertracloud.app/v1/apps/123/deploys/receiver/webhook"
}
}
string
required
The ID of the application whose webhook URL will be retrieved.
Response
object
{
"response": {
"repo_owner": "owner_name",
"repo_name": "repository_name",
"webhook_url": "https://api.vertracloud.app/v1/apps/123/deploys/receiver/webhook"
}
}
Error Responses
string
Possible error codes:
UNAUTHORIZED: User is not authenticated or lacks permissions.PLAN_RESTRICTED_FEATURE: User plan does not support auto-deploy.DEPLOYMENT_NOT_FOUND: Webhook integration not found for the application.
string
A descriptive message providing additional details about the error.
{
"code": "DEPLOYMENT_NOT_FOUND"
}