Application - Deploy
GitHub Webhook Integration
Integrate Square Cloud with GitHub webhooks
POST
/
v2
/
apps
/
{app_id}
/
deploy
/
git-webhook
Header
Path
Body
curl --request POST \
--url https://api.squarecloud.app/v2/apps/{app_id}/deploy/git-webhook \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"access_token": "<string>"
}'
{
"status": "success",
"response": {
"webhook": "https://api.squarecloud.app/v2/git/webhook/<webhook-code>"
},
}
Authorization
string
requiredThe API key for your account. You can find this in your account settings.
app_id
string
requiredThe ID of the application. You can find this in the URL of your application’s dashboard.
access_token
string
requiredThe access token for your GitHub repository. You can find this in your GitHub Tokens Classic
Response
status
string
Indicates whether the call was successful. “success” if successful, “error” if not.
message
string
A message indicating the status of the commit.
response
object
The contents of the response.
Was this page helpful?
curl --request POST \
--url https://api.squarecloud.app/v2/apps/{app_id}/deploy/git-webhook \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"access_token": "<string>"
}'
{
"status": "success",
"response": {
"webhook": "https://api.squarecloud.app/v2/git/webhook/<webhook-code>"
},
}