Percher Deploys API
The Deploys API from Percher — 9 operation(s) for deploys.
The Deploys API from Percher — 9 operation(s) for deploys.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/percher-app:percher-app-deploys-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Percher Deploys API
version: 1.0.0
description: AI-native hosting platform. Deploy apps via CLI, MCP, or API — live at name.percher.run.
contact:
url: https://percher.app
servers:
- url: https://api.percher.run
description: Production
- url: http://localhost:3000
description: Local development
tags:
- name: Deploys
paths:
/apps/{appRef}/publish/patch:
post:
tags:
- Deploys
summary: Publish an owner-only source patch
description: Resolves unchanged source server-side. expectedBase is the full live history commit, checked atomically at admission and before installation. Existing publish quotas, moderation, scanners and build-secret rules apply. No automatic reapply. At most 2,000 paths and 25 MiB reconstructed source; canonical relative paths and strict encoding only; secret names and links refuse.
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- expectedBase
- files
- delete
properties:
expectedBase:
type: string
pattern: ^[0-9a-f]{40}$
files:
type: array
maxItems: 2000
items:
type: object
additionalProperties: false
required:
- path
- content
properties:
path:
type: string
minLength: 1
maxLength: 1024
content:
type: string
encoding:
type: string
enum:
- utf8
- base64
default: utf8
delete:
type: array
maxItems: 2000
items:
type: string
minLength: 1
maxLength: 1024
dryRun:
type: boolean
description: Return requested path classifications without a deploy or unchanged source.
responses:
'200':
description: dryRun classifications, or an already-running deployment
'201':
description: Patch deployment queued
'400':
description: Invalid paths, encodings, duplicates or patched configuration
'404':
description: App absent or caller is not its owner
'409':
description: PUBLISH_BASE_MOVED or source consistency refusal
'413':
description: Patch count/byte budget exceeded
'422':
description: 'PUBLISH_PATCH_BASE_UNSUPPORTED: a stored entry cannot be carried; publish complete source instead'
'429':
description: Per-token, upload or existing publish quota limit
'503':
description: Platform is in sunset read-only mode (at or past T-0). Mutating routes are frozen (`platform_read_only`); app/account delete is gated (`platform_delete_gated`) unless the dashboard password-reauth override is supplied.
content:
application/json:
schema:
$ref: '#/components/schemas/SunsetGate'
operationId: postAppsByAppRefPublishPatch
x-operation-id-source: derived
/apps/{appRef}/deploys:
post:
tags:
- Deploys
summary: Deploy app
description: Upload a tarball to deploy. Returns 202 and enqueues the build.
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
- name: type
in: query
schema:
type: string
enum:
- live
- preview
default: live
requestBody:
required: true
content:
application/octet-stream:
schema:
type: string
format: binary
responses:
'202':
description: Deploy queued
'413':
description: Tarball too large (max 500 MB)
'429':
description: Deploy rate limit exceeded
'503':
description: Platform is in sunset read-only mode (at or past T-0). Mutating routes are frozen (`platform_read_only`); app/account delete is gated (`platform_delete_gated`) unless the dashboard password-reauth override is supplied.
content:
application/json:
schema:
$ref: '#/components/schemas/SunsetGate'
operationId: postAppsByAppRefDeploys
x-operation-id-source: derived
get:
tags:
- Deploys
summary: List recent deployments
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
- name: limit
in: query
schema:
type: integer
default: 20
maximum: 100
- name: type
in: query
schema:
type: string
enum:
- live
- preview
responses:
'200':
description: Array of deployments
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Deployment'
operationId: getAppsByAppRefDeploys
x-operation-id-source: derived
/apps/{appRef}/deploys/{deployId}:
get:
tags:
- Deploys
summary: Get deployment status
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
- name: deployId
in: path
required: true
schema:
type: string
responses:
'200':
description: Deployment details
operationId: getAppsByAppRefDeploysByDeployId
x-operation-id-source: derived
/apps/{appRef}/deploys/{deployId}/build-log:
get:
tags:
- Deploys
summary: Get raw build log for deployment
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
- name: deployId
in: path
required: true
schema:
type: string
responses:
'200':
description: Build log as plain text
'404':
description: Deployment not found
operationId: getAppsByAppRefDeploysByDeployIdBuildLog
x-operation-id-source: derived
/apps/{appRef}/deploys/{deployId}/source:
get:
tags:
- Deploys
summary: Download source tarball for deployment
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
- name: deployId
in: path
required: true
schema:
type: string
responses:
'200':
description: Source tarball (application/x-gzip)
'404':
description: Deployment not found
'410':
description: Tarball retention-evicted
operationId: getAppsByAppRefDeploysByDeployIdSource
x-operation-id-source: derived
/apps/{appRef}/deploys/{deployId}/events:
get:
tags:
- Deploys
summary: Get deploy stage timeline
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
- name: deployId
in: path
required: true
schema:
type: string
responses:
'200':
description: Array of deploy events
operationId: getAppsByAppRefDeploysByDeployIdEvents
x-operation-id-source: derived
/apps/{appRef}/deploys/{deployId}/promote:
post:
tags:
- Deploys
summary: Promote preview to live
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
- name: deployId
in: path
required: true
schema:
type: string
responses:
'200':
description: 'Preview promoted. When ownership committed but the route move failed, the body carries routeSwapDeferred: true - the promotion is durable and reconcile converges the route.'
'400':
description: Not promotable or expired
'409':
description: The preview changed while promoting (discarded, replaced, already promoted) or the app is being deleted
operationId: postAppsByAppRefDeploysByDeployIdPromote
x-operation-id-source: derived
/apps/{appRef}/deploys/{deployId}/discard:
post:
tags:
- Deploys
summary: Discard preview
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
- name: deployId
in: path
required: true
schema:
type: string
responses:
'204':
description: Preview discarded
'409':
description: The preview changed while discarding - it was promoted or removed; nothing was torn down (PREVIEW_PROMOTED)
operationId: postAppsByAppRefDeploysByDeployIdDiscard
x-operation-id-source: derived
/apps/{appRef}/deploys/{deployId}/rerun:
post:
tags:
- Deploys
summary: Re-run a deployment from existing tarball
security:
- bearer: []
parameters:
- name: appRef
in: path
required: true
schema:
type: string
- name: deployId
in: path
required: true
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
noCache:
type: boolean
description: Skip the image cache for this re-run (like publish --no-cache)
responses:
'201':
description: Rerun queued
'404':
description: Deployment not found
'410':
description: Tarball retention-evicted
operationId: postAppsByAppRefDeploysByDeployIdRerun
x-operation-id-source: derived
components:
schemas:
SunsetGate:
type: object
properties:
error:
type: string
enum:
- platform_read_only
- platform_delete_gated
description: '`platform_read_only`: a mutating route is frozen during sunset. `platform_delete_gated`: app/account delete is paused; supply the dashboard password-reauth override to proceed.'
sunsetDate:
type: string
format: date-time
finalDeletionDate:
type: string
format: date-time
message:
type: string
dashboardUrl:
type: string
format: uri
required:
- error
- sunsetDate
- finalDeletionDate
- message
- dashboardUrl
Deployment:
type: object
properties:
id:
type: string
appId:
type: string
status:
type: string
enum:
- queued
- building
- deploying
- live
- failed
type:
type: string
enum:
- live
- preview
previewSlug:
type: string
nullable: true
buildLog:
type: string
nullable: true
errorMessage:
type: string
nullable: true
errorCode:
type: string
nullable: true
enum:
- WORKER_UNAVAILABLE
- WORKER_UNAVAILABLE_PERSISTENT
- BUILD_TIMEOUT
- BUILD_FAILED
- WORKER_ERROR
- DEPLOY_STALLED
containerId:
type: string
nullable: true
commitSha:
type: string
nullable: true
expiresAt:
type: string
format: date-time
nullable: true
createdAt:
type: string
format: date-time
finishedAt:
type: string
format: date-time
nullable: true
securitySchemes:
exportPreparation:
type: http
scheme: bearer
bearerFormat: pce_<43 base64url characters>
description: Separate preparation capability. An account API/OAuth token or operation ID is not a preparation credential.
bearer:
type: http
scheme: bearer
description: API token from `percher login`
internalSecret:
type: apiKey
in: header
name: X-Internal-Secret
description: Internal service secret