stackapRequest access

Developers

Documentation for agents

Stackap is an application platform that provides deployment, runtime, PostgreSQL, storage, domains, HTTPS, cron jobs, secrets, logs, metrics, monitoring, backups and rollback through an agent-operable control plane.

Read this site as text

These files are generated from the same pages people read, so the machine-readable and human versions cannot drift apart. If you find a difference, the page is wrong, and we want to know at hi@stackap.com.

The API describes itself

GET /v1/capabilities and GET /v1/openapi.json need no token. An agent that knows nothing about Stackap can call them to learn every route, the scope each one needs, the error codes and the error shape. They are generated from the server's own permission table, so they cannot drift from what the server enforces.

Authentication

Every API call carries Authorization: Bearer <token>. A token belongs to exactly one organization, and the organization is taken from the token and from nowhere else: an organization named in a request body, header or query string has no effect. A request for a resource in another organization returns the same response as a request for one that does not exist.

Routes that exist today

RouteWhat it does
GET /v1/statusOverall health and monitor checks.
GET, POST /v1/projectsList or create projects.
PUT /v1/projects/:slug/settingsSet the port and health path (owner).
PUT /v1/projects/:slug/scaleRun 1 to 8 copies of a project (platform admin).
GET /v1/projects/:slug/deployments, POST …/rollbackList deployments, roll back.
GET /v1/projects/:slug/logs?source=build|runtimeRead logs.
GET, PUT, DELETE /v1/projects/:slug/env/:keyManage environment variables.
GET, POST /v1/projects/:slug/domainsList or attach hostnames.
GET, POST /v1/projects/:slug/backups, POST …/restoreList or take backups; restore into a new database.
GET /v1/projects/:slug/metricsLoad-time and request metrics.
POST /v1/orgsCreate an organization (platform admin).

All routes are under /v1. This is a map, not a full reference: request and response shapes are not yet documented route by route, and until they are, the command-line tool is the better-specified way in.

A prompt you can hand to an agent

This is the prompt used on the get-started page. It points the agent at the plain-text docs and the public API description, states the rules, and lists the steps.

You are going to deploy an application to Stackap, a platform you operate through its command-line tool and HTTP API.

First read these, in order:
1. https://www.stackap.com/llms.txt
2. https://api.stackap.com/v1/capabilities  (every route, scope and error code; no token needed)

Rules:
- Never put a secret on a command line. Pass secrets on standard input (--stdin).
- If a deploy does not go live, read the build log and then the runtime log before changing any code.
- Ask me before deleting anything and before pointing a production domain at the server.
- If a call answers approval_required, tell me, wait for my decision, then repeat the identical request.

Task:
1. Log in:  stackap login --url https://api.stackap.com --token-stdin   (I will give you the token.)
2. Create a project:  stackap create my-app --name "My App"
3. Set each environment variable:  stackap env set my-app KEY --stdin
4. Deploy:  stackap deploy my-app
5. Read the result:  stackap logs my-app --source build
6. Tell me the live address and what you checked.

Operating rules for an agent

Early-access scope

Stackap is in early access. Tell us what you run and we will reply with a straight answer about whether it fits.

Ask for an invitation

Last updated .