Each application has a token for triggering deployments automatically
You can find this in the App's Repository page under the "Trigger a deploy via webhook" section.
To deploy, you can make a POST request to the URL. Here's an example using curl, but you could use any tool for sending HTTP requests. Replace [TOKEN] with your app's token.
This will deploy the latest commit for the app.
curl -X POST https://app.hatchbox.io/webhooks/deployments/[TOKEN]?latest=true
This will deploy a specific sha (useful for CI/CD). Replace the [COMMIT_SHA] with the git commit sha you want to deploy.
curl -X POST https://app.hatchbox.io/webhooks/deployments/[TOKEN]?sha=[COMMIT_SHA]
The request will return a Log ID that you can request to see the status of the deployment.
curl -X GET https://app.hatchbox.io/apps/jEL8CcZFmNjPPGcK9g18VNDJ/activities/:id