Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Percher System 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: System
paths:
/health:
get:
tags:
- System
summary: Health check
responses:
'200':
description: OK
operationId: getHealth
x-operation-id-source: derived
/metrics:
get:
tags:
- System
summary: Prometheus metrics
description: Returns metrics in Prometheus exposition format. May require X-Internal-Secret header.
responses:
'200':
description: Prometheus metrics
content:
text/plain: {}
'401':
description: Unauthorized
operationId: getMetrics
x-operation-id-source: derived
/platform/sunset:
get:
tags:
- System
summary: Platform sunset status
description: 'Public, unauthenticated. Returns whether the platform is scheduled to shut down, and if so the sunset date, days remaining, read-only state, final deletion date, and an optional operator-supplied reason. Consumed by the dashboard sunset banner, external monitoring, and the CLI/MCP read-only error handlers.
When sunset is not armed the response is simply `{ active: false }`.'
responses:
'200':
description: Sunset status
content:
application/json:
schema:
type: object
properties:
active:
type: boolean
description: True when a sunset date is armed.
sunsetDate:
type: string
format: date-time
description: ISO timestamp of T-0 (read-only begins). Present only when active.
finalDeletionDate:
type: string
format: date-time
description: ISO timestamp after which data is permanently deleted (default T+90). Present only when active.
daysUntil:
type: integer
description: Whole days until T-0; negative once past. Present only when active.
readOnly:
type: boolean
description: True at or past T-0. Present only when active.
appsStopped:
type: boolean
description: True at or past T+30 (containers no longer routed).
reason:
type: string
description: Operator-supplied free-text shutdown reason, when set.
required:
- active
operationId: getPlatformSunset
x-operation-id-source: derived
components:
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