---
title: "Trigger Deploy"
method: POST
path: "/sites/{site_id}/git/deploy"
tags: ["sites"]
---

# Trigger Deploy

`POST /sites/{site_id}/git/deploy`

## Request

- Base URL: `https://my.pressable.com/v1`
- URL: `https://my.pressable.com/v1/sites/{site_id}/git/deploy`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/docs/sites/:site_id/git/deploy/post.ts> (a function with typed inputs; its response is checked against the schema)

Queue a deploy of the currently configured branch on the connected repository. The endpoint returns 202 Accepted with the deploy identifier; deploy progress is then asynchronous. Poll GET /sites/{site_id}/git/history (or subscribe to the git_deploy_completed webhook, which fires on success and failure alike — branch on git.state) for the outcome. That webhook reports deploy status rather than a single final event: it may be delivered more than once for one deploy, and is not sent for a deploy interrupted by a connection or timeout error, so treat the history endpoint as authoritative.

## Path parameters

- `site_id` integer, required

## Response `200`

Successful Response

- object
  - `message` string
  - `data` object

---

[API](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1.md) - [All operations](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/revisions/267a95219f47?raw)
