The Apposters API

Everything you do in the workspace, a script can do too: turn a GitHub repository into a running SaaS - the app hosted at /app/ and its product site around it - or build a site for a browser extension or a mobile app from its store pages, then publish it, change it, grow it and buy what it needs, over HTTPS and JSON. Working with an AI agent? Give it the guide written for agents, https://api.apposters.com/agent/guide: it tells the agent how to sign you in with a short code and build your project step by step.

Basics

The base URL is https://api.apposters.com, and every path on this page is relative to it: GET /app/sites means GET https://api.apposters.com/app/sites.

Get a token

Open Account, find API tokens, give the new token a name (what will use it), pick how long it lives - 30 days, 90 days, 1 year or never - and press Create token. The token starts with apo_ and is shown once: copy it then. Send it with every call:

Authorization: Bearer apo_...

A token acts as you: whoever holds it can change your projects and start payments. Keep it in an environment variable or a secret store, never in a web page, a URL, a commit or a log. You can revoke it on the same card at any time; from the next request on it answers 401.

Requests and answers

export APPOSTERS_TOKEN=apo_...          # from Account - API tokens
API=https://api.apposters.com
H="Authorization: Bearer $APPOSTERS_TOKEN"

curl -s "$API/agent/me" -H "$H"
# -> {"user": {"id": "...", "email": "you@example.com"}, "auth": "token", "token": {...}}

Quick start: from a repository to a running SaaS

The whole path in six calls. Only step 4 costs money: Embed App, which runs your app. You pay for it yourself on Stripe's page - the API hands you the link and never sees a card. Each step is explained in the sections below.

J="Content-Type: application/json"

# 1. Create a project from the repository
curl -s -X POST "$API/app/sites" -H "$H" -H "$J" \
  -d '{"github_url": "https://github.com/you/your-app", "name": "Your App"}'
# -> 201 {"id": "SITE_ID", "slug": null, ...}
SITE=SITE_ID

# 2. Generate the product site: a landing page, About, FAQ and a sign-in page
curl -s -X POST "$API/app/sites/$SITE/generate" -H "$H" -H "$J" \
  -d '{"kind": "template", "mode": "saas", "pages": ["about", "faq", "auth"]}'
# -> 202 {"job_id": "JOB_ID", "status": "running", ...}
JOB=JOB_ID
curl -s "$API/app/jobs/$JOB" -H "$H"
# -> {"status": "done", "next_job_id": "...", ...}  poll every few seconds, follow next_job_id

# 3. Check that the repository can run here
curl -s "$API/app/sites/$SITE/repo-check" -H "$H"

# 4. Unlock Embed App: open the Stripe link in a browser and pay
curl -s -X POST "$API/billing/embed/checkout" -H "$H" -H "$J" -d "{\"site_id\": \"$SITE\"}"
# -> {"id": "cs_...", "url": "https://checkout.stripe.com/..."}

# 5. Set the app up and deploy it
curl -s -X PUT "$API/app/sites/$SITE/deployment" -H "$H" -H "$J" -d '{"port": 3000, "build_mode": "auto"}'
curl -s -X POST "$API/app/sites/$SITE/deployment/deploy" -H "$H"
# -> 202 {"job_id": "...", "run_id": "..."}

# 6. Pick the address and publish the site
curl -s -X POST "$API/app/sites/$SITE/slug" -H "$H" -H "$J" -d '{"slug": "your-app"}'
curl -s -X POST "$API/app/sites/$SITE/publish" -H "$H" -H "$J" -d '{}'
# -> {"url": "https://your-app.apposters.com", ...}   the app answers at https://your-app.apposters.com/app/

Only need a page about the repository, without the app? Generate a landing page or a website in step 2, skip steps 3 to 5 and publish: nothing on that path costs money.

Projects and pages

Create a project

CallWhat it does
POST /app/sites{"github_url": "...", "name": "...", "design": "..."} -> 201 with the project. Its id is what every other call takes. Any form of a GitHub link works. name is the product's name on every page (the repository's name if left out).
GET /app/designsThe 30 designs to pick from, no token needed: id, name, a one-line description, the project type it suits (type) and scheme (light or dark). Leave design out and Apposters picks the one that matches the repository's description and topics.

Private repositories

Apposters reads a public repository like any visitor. For a private one, check first and connect GitHub if it cannot see it:

CallWhat it does
GET /app/github/repo?url=...Whether Apposters can read the repository: exists, private.
POST /app/github/connect{"repo": "https://github.com/you/your-app"} -> {"url": "..."}: open it in a browser and authorize GitHub.
GET /app/githubconnected: true once that is done.
DELETE /app/githubDisconnect, which also revokes the access on GitHub.

A private repository can only become a SaaS: its site is about the product and says nothing about the code. The other types answer 422 with "code": "private_repo".

Extensions and mobile apps: start from store pages

A browser extension or a mobile app needs no repository: create the project from its pages in the stores, one link per store. Extensions: the Chrome Web Store, Firefox Add-ons, Microsoft Edge Add-ons and Opera add-ons. Mobile apps: the App Store and Google Play.

CallWhat it does
POST /app/sites{"extension_urls": ["https://chromewebstore.google.com/detail/..."]} for an extension, or {"mobile_urls": ["https://apps.apple.com/app/...", "https://play.google.com/store/apps/details?id=..."]} for an app, with name and design as for a repository -> 201. The name and the description come from the store when left out. One source per project: store links together with github_url, or both lists, answer 422 with "code": "two_sources"; a link that is not a store page, not_a_store_link.
GET /app/extension-store?url=...What the store says about an extension link before you create anything: store, label, and exists with name, summary, developer, icon, rating and users. GET /app/mobile-store?url=... is the same for an app.
PUT /app/sites/{site_id}/extension-stores{"urls": ["...", "..."]}: the project's whole list of stores, replaced. PUT /app/sites/{site_id}/mobile-stores for an app. Nothing is regenerated: generate again to put the new store's button on the pages.

Such a project is a website or a landing, written from the store listings, with an install or download button for every store on each page. A SaaS answers 422 with "code": "extension_no_saas" or mobile_no_saas, and the app calls answer 409 with extension_site or mobile_site: the product runs in browsers and on phones, not on a server.

Generate the site

POST /app/sites/{site_id}/generate -> 202 {"job_id": "..."}. The AI writes the pages from the repository's README and metadata, in the project's design. Three project types:

# SaaS: a product site about what the app does; its buttons open the app at /app/
{"kind": "template", "mode": "saas", "pages": ["about", "faq", "auth"], "community": false}

# Website: a landing page about the repository plus the pages you list
{"kind": "template", "mode": "website", "pages": ["about", "faq"]}

# Landing page: one page about the repository
{"kind": "template", "mode": "landing"}

pages is any of about, faq and auth (the sign-in page); the landing page is always made. "community": true adds a community forum for the people who register, linked from the menu. A SaaS is for running the app with Embed App; a landing page and a website are free to publish and can become a SaaS later.

Your own wishes: add "instructions": "...", up to 2000 characters, with what the pages should say beyond the repository, in your words - for example "Add a pricing section. On the FAQ page, answer whether it is free." The landing page, About and FAQ each take the part meant for them, and a wish that names no page goes on the landing page; the sign-in page ignores it. It is not saved with the project: send it again with any later generation that should follow it. A longer text answers 422 with "code": "instructions_too_long".

Wait for it

CallWhat it does
GET /app/jobs/{job_id}status: running, done, error, aborted or cancelled; error says why. The pages are made one after another: when a job is done and has next_job_id, follow that job the same way. A page takes a few minutes; poll every few seconds. A job is forgotten ten minutes after it ends.
GET /app/jobs/{job_id}/streamThe same job as server-sent events, if you would rather watch the page being written: meta, then delta ({"i": n, "t": "text"}), then done or error. After a dropped connection, reconnect with ?from= the next i and nothing is lost.
POST /app/jobs/{job_id}/cancelStop it. Pages finished before it stay.

Read and change

CallWhat it does
GET /app/sitesAll your projects, newest first, with their address, visits and the state of their app.
GET /app/sites/{site_id}One project. wizard is its type and pages (null for a landing page), deployment a summary of its app.
PATCH /app/sites/{site_id}Any of name, description, ga_id (your Google Analytics ID), design (an id, or "" for the automatic pick), logo_url, auth_redirect_to_app. A new design shows after the next generation.
GET /app/sites/{site_id}/versions?kind=templateEvery version of a page, without the HTML. kind: template (the landing page), about, faq, auth.
GET /app/versions/{version_id}One version, with its html.
POST /app/sites/{site_id}/versions{"kind": "template", "html": "...", "name": "What changed"}: your own HTML (up to 5 MB) becomes the current version.
PUT /app/sites/{site_id}/actual{"kind": "template", "version_id": "..."}: make an earlier version current again.
GET /app/sites/{site_id}/membersThe people who registered on your published site.
DELETE /app/sites/{site_id}Delete the project and its versions; the published site stays up. Add ?purge=1 to take the site down too. A hosted app goes with the project, its data included.

Generate again: {"kind": "template", "regenerate": true} to the same generate call remakes the landing page and keeps the project type. To change the type, send the whole new plan with "regenerate": true: the landing page and every page of the plan are made again, and the old versions stay in the history. Add instructions to change something specific: {"kind": "about", "instructions": "..."} remakes only the About page that way. Changes go live when you publish again.

Your own pages and the menu

Pages you write yourself, with no AI: a title and text (or your HTML) inside the landing page's header and footer, at https://your-app.apposters.com/{path}. Up to 20 per project.

CallWhat it does
POST /app/sites/{site_id}/custom-pages{"title": "Changelog", "body": "...", "path": "changelog", "menu_label": "Changelog"} -> 201 with the page. body is plain text - paragraphs and links - up to 50,000 characters, or HTML with "body_format": "html"; html is a whole page of your own instead, up to 5 MB. path is made from the title when left out: a-z, 0-9 and -, up to 60 characters, not about, faq, auth, app or community. A 21st page answers 409 with "code": "too_many_pages".
GET /app/sites/{site_id}/custom-pagesThe project's own pages, without their text.
GET /app/sites/{site_id}/custom-pages/{page_id}One page: status (draft, changed, published), url once it is live, and html, the page as it will be published.
PATCH /app/sites/{site_id}/custom-pages/{page_id}Any of the same fields; "html": null goes back to the title and text. The address stays: a different path answers 422 with "code": "path_fixed".
POST /app/sites/{site_id}/custom-pages/{page_id}/publishPut it live. The landing page has to be published first; publishing the landing page again republishes these pages too.
DELETE /app/sites/{site_id}/custom-pages/{page_id}Delete it, from the live site too, with the menu items that pointed at it.
GET /app/sites/{site_id}/menuThe site's menu: every link, with in, the pages whose menu has it.
PUT /app/sites/{site_id}/menu{"items": {"faq": true, "community": false}, "custom_pages": {"PAGE_ID": true}}: true puts the link in the menu of every page, false takes it off them all, links not named stay as they are. items are about, faq, community and auth. No AI and no generation used: each changed page gets a new version, and publishing puts it live.

Running the app (Embed App)

Embed App builds your repository and runs it at /app/ on the project's own address, for example https://your-app.apposters.com/app/, or on your domain. The /app prefix is taken off before a request reaches the app, so an app that serves at / works as it is; one that routes in the browser needs its base path set to /app. Setting up, deploying, fixing, starting, restarting and adding a database answer 402 until Embed App is paid for; reading, stopping, logs, metrics, settings and removing always work. An account's first app is the exception: it runs free for 7 days from its first deploy, and after that the same calls answer 402 with "code": "trial_ended" until it is paid for.

Check the repository first

GET /app/sites/{site_id}/repo-check?ref=HEAD&path=Dockerfile reads the repository without building it:

Set it up and deploy

CallWhat it does
PUT /app/sites/{site_id}/deploymentCreate (201) or change (200) the app's setup; every field is optional. build_mode: dockerfile (the default, with dockerfile_path), auto (no Dockerfile needed, see above) or bare (a plain Linux box from base_image - ubuntu:24.04, debian:bookworm-slim, alpine:3.20, node:22-bookworm or python:3.12-bookworm - that you set up in the terminal on the Embed App screen). port: what the app listens on, 3000 by default, passed in as PORT; listen on 0.0.0.0. ref: branch, tag or commit (HEAD is the default branch). health_path: what must answer before traffic switches over, / by default. volume_path: where the app keeps data that survives deploys, for example /data. root_dir: with build_mode: "auto", the folder of a monorepo the app lives in, like apps/web (repo-check?root=apps/web checks that folder first); empty is the repository's root. A project without an address gets one here, from its name.
PUT /app/sites/{site_id}/deployment/env{"env": {"DATABASE_URL": "...", "OLD_KEY": null}}: adds and changes the keys you send, null removes one, the rest stay. A running app restarts with them at once. With build_mode: "auto" they reach the build too, so set VITE_... and NEXT_PUBLIC_... values before deploying.
GET /app/sites/{site_id}/deployment/envThe keys, with masked values: a value is never shown back after it is saved.
POST /app/sites/{site_id}/deployment/deployBuild and start -> 202 {"job_id": "...", "run_id": "..."}. Follow GET /app/jobs/{job_id} (or its /stream for the build log) until finished_at is set. If a new build does not come up, the previous one keeps serving. Pushed a new commit? Deploy again.
GET /app/sites/{site_id}/deploymentThe setup and the state: status (configured, building, starting, running, stopped, failed), url, last_run. A failed run has last_run.diagnosis: title, detail and fix, what to do about it.
POST /app/sites/{site_id}/deployment/fixLet the AI fix the Dockerfile after a failure and deploy again, up to three attempts. The fix is kept on the Apposters side; your repository is never changed.
DELETE /app/sites/{site_id}/deployment/overrideForget the AI's fix and build the repository's own Dockerfile again.
DELETE /app/sites/{site_id}/deployment/ai-dockerfileForget the Dockerfile the AI wrote for a repository Apposters does not recognize (and the AI's fix of it); the next deploy has the AI write a new one.

While it runs

CallWhat it does
GET /app/sites/{site_id}/deployment/logs?tail=500The app's output, plain text, up to 5000 lines.
GET /app/sites/{site_id}/deployment/metricsCPU, memory, network, and disk: storage.used_mb against storage.limit_mb.
GET /app/sites/{site_id}/deployment/runsThe last 20 deploys.
POST /app/sites/{site_id}/deployment/restartRestart. POST /app/sites/{site_id}/deployment/stop and POST /app/sites/{site_id}/deployment/start work the same way.
POST /app/sites/{site_id}/deployment/reset-data{"confirm": "your-app"}, the app's slug as GET /app/sites/{site_id}/deployment shows it: empty the data volume and start clean. Cannot be undone.
DELETE /app/sites/{site_id}/deploymentRemove the app: the container, the image and the data.

Sign-in in front of the app: with a sign-in page published and the app deployed, PATCH /app/sites/{site_id} with {"auth_redirect_to_app": true} sends people who sign in on your site straight to the app, and lets only them use it.

A database next to it

CallWhat it does
POST /app/sites/{site_id}/deployment/addons{"kind": "postgres"} or {"kind": "redis"}: PostgreSQL 16 or Redis 7 in a container of its own on the app's private network, with its own volume. By the time it answers, the database is up, its address is in the app's Environment and a running app has been restarted with it: env_set names the variables written (DATABASE_URL or REDIS_URL, plus the ones the repository's settings name for their parts, like DB_HOST), env_kept the ones you had set yourself and were left alone. GET /app/sites/{site_id}/deployment lists them in addons, and what can be added in addons_available.
DELETE /app/sites/{site_id}/deployment/addons/{kind}?confirm=your-appRemove it and its data; confirm is the app's slug, as for reset-data. Only the variables that still hold its address are taken out of Environment.

The database's data counts toward the app's disk. Adding one needs Embed App, like deploying; removing never does.

Publishing

CallWhat it does
GET /app/subdomain-check?slug=your-app{"available": true}, or false with a reason: invalid, reserved or taken.
POST /app/sites/{site_id}/slug{"slug": "your-app"} -> {"slug": "your-app", "url": "https://your-app.apposters.com"}. 3 to 60 characters of a-z, 0-9 and -. Renaming a published site moves it, its app and its members to the new address and frees the old one: links to the old address stop working.
POST /app/sites/{site_id}/publish{} -> {"url": "...", "pages": [...]}. Every generated page goes live at once, with sign-in at /auth. "discourse": true also opens the community forum (on by default when the project was generated with "community": true). Publishing is free.
POST /app/sites/{site_id}/publish-page{"kind": "about"}: put one changed page live without touching the others.

Publishing also writes the site's sitemap.xml and robots.txt, link-preview tags and the analytics tag, and lets search engines know about the pages.

Payments

Generating, publishing, the address on apposters.com and a hosted app's free tier - 512 MB of memory, one CPU and 3 GB of disk for its image and data together - cost nothing. These do:

Product{product}What you get
Embed AppembedYour app built and running at /app/. One purchase covers one app.
Memorymemory1, 2, 4, 8 or 16 GB for one app instead of 512 MB. One unit is 1 GB.
Disk spacedisk5, 10, 20, 40 or 80 GB for one app instead of 3 GB. One unit is 5 GB.
Custom domaindomainThe project on your own domain. One purchase covers one domain.

The prices are on the Pricing page and in GET /billing/prices (no token needed). You always pay on Stripe's page in a browser; the API starts the payment and checks it, and never takes card details.

CallWhat it does
GET /billingEmbed App and Custom domain for your account: paid, required (has to be paid before use), price_label. GET /billing/{product} is one of them.
POST /billing/{product}/checkout{"site_id": "..."} -> {"id": "cs_...", "url": "https://checkout.stripe.com/..."}. Open url and pay. For a second app or domain add "additional": true.
POST /billing/{product}/confirm{"session_id": "cs_..."} -> {"paid": true} once Stripe has the payment (false means not yet). You can also just wait: GET /billing/{product} turns paid: true by itself.
GET /billing/account/summaryWhat the account has bought and how much of it is in use.
GET /app/sites/{site_id}/deployment/resourcesThe app's memory and disk now (limit_mb), what it already pays for (units) and what more would cost (steps).

More memory or disk for an app, either together with Embed App or on its own once the app is set up. The number is the size the app should end up with, not an addition, and you pay only for the units you do not have yet:

POST /billing/embed/checkout    {"site_id": "...", "resources": {"memory": 2, "disk": 1}}
POST /billing/memory/checkout   {"site_id": "...", "units": 4}
POST /billing/disk/checkout     {"site_id": "...", "units": 2}

Confirm them the same way. Both take effect at once: a running app's memory limit is raised in place, no deploy needed. Signs an app needs them: a failed deploy whose last_run.diagnosis.limit.kind is memory, or a deploy answered 409 with "code": "storage_full". Lowering or cancelling what you pay for is done in the browser, under Manage payments in Account.

Custom domain

CallWhat it does
PUT /app/sites/{site_id}/domain{"domain": "www.example.com"} -> records, the DNS records to add at your DNS provider: a CNAME to your apposters.com address, or for a bare domain an A record together with a TXT record that proves the domain is yours. The domain has to point here directly (at Cloudflare: DNS only, not proxied).
POST /app/sites/{site_id}/domain/verifyChecks DNS now; dns.message says what is still missing. Once the records are found, the HTTPS certificate is issued by itself, usually within minutes.
GET /app/sites/{site_id}/domainlive: true when the site answers on the domain, its app at https://www.example.com/app/ included.
DELETE /app/sites/{site_id}/domainRemove the domain. Always free; the apposters.com address keeps working.

Connecting a domain and checking its DNS are paid for with the domain product (see Payments).

Growth

The Growth screen of a project, for a script: ways to bring the first users, the badges the project earned, and an email sign-up popup. All free.

CallWhat it does
GET /app/sites/{site_id}/growthWhere the project stands: featured (asked, and whether it is in Featured Projects), x_post, hacker_news - a ready Show HN title (up to 50 characters) and the url to submit - and parsers_vc.
PATCH /app/sites/{site_id}/growth{"featured": true, "x_post": true}: ask for a place in Featured Projects on the apposters.com homepage and for a post on x.com/apposters; false takes the request back. The Apposters team decides on both.
POST /app/sites/{site_id}/growth/parsers-vcAsk for a page in the Parsers VC startup catalog with a dofollow link to the site. Only for a site live on its own domain; 409 otherwise.
GET /app/sites/{site_id}/badgesThe Apposters badges the project earned - a place in Featured Projects, a top three place there or among the fastest growing projects of the week or of the last 30 days: kind, place, label, reason, earned_on, shown.
PATCH /app/sites/{site_id}/badges{"kind": "growth_week", "shown": true}: show the badge in the strip above the site's menu, on every page, or take it off with false.
GET /app/sites/{site_id}/email-popupThe email sign-up popup: enabled, settings next to their defaults, subscribers (how many) and a preview_url.
PATCH /app/sites/{site_id}/email-popup{"enabled": true, "settings": {"title": "Get the news", "placement": "bottom-right", "trigger": "scroll", "scroll_percent": 50}}: turn it on or off and change its words, colors, place (center, bottom-right, bottom-left, bottom), when it opens (delay, scroll, exit), devices and pages. A setting that is refused answers 422 with a sentence saying why, and nothing is saved.
GET /app/sites/{site_id}/subscribersThe addresses the popup collected, newest first: email, created_at.

Donations

A donation popup on the project's pages, where a visitor sets the amount and pays it into your own Stripe account; Apposters takes no fee. Connecting Stripe is yours to do in the browser, on the project's Monetization screen or in Account: POST /app/stripe/connect and DELETE /app/stripe answer a token 403 with "code": "session_required".

CallWhat it does
GET /app/stripeWhether your Stripe account is connected: connected, and account with its name and whether it can take payments.
GET /app/sites/{site_id}/donationsThe popup: enabled, live (on the site now), title, amount, currency, url (the Stripe payment form), settings next to their defaults, and the currencies to pick from.
PUT /app/sites/{site_id}/donations{"enabled": true, "title": "Support Us", "amount": 5, "currency": "usd", "settings": {"placement": "bottom-right", "quick_amounts": [5, 10, 25]}}, every field optional. amount, 1 to 10,000, is what the popup starts at. 409 with "code": "stripe_not_connected" until Stripe is connected; a refused setting is 400 with "code": "invalid" and a sentence saying why.

Tokens

CallWhat it does
GET /agent/meWho the token belongs to, and the token itself: name, expires_at.
GET /app/tokensAll of the account's tokens, without their secrets: name, the last characters (hint), last_used_at, expires_at, and source - account for one you created, agent for one an AI agent got with a code.
DELETE /app/tokens/{token_id}Revoke a token. It stops working on its next request.
DELETE /agent/tokenRevoke the token this call is made with: the sign-out for a script that is done.

New tokens are created only in the browser, in Account: a token cannot make another one, so a leaked token cannot outlive its revocation. For the same reason a token gets 403 with "code": "session_required" on the Stripe billing portal. An AI agent does not need you to copy a token at all: its guide signs you in with a short code you read off a page.

Limits

WhatLimit
Generation2 at a time and 30 a day per account (the last 24 hours). Over that, 429: try again later.
App buildsOne at a time per account, 20 a day. While other people's builds run, yours waits its turn (last_run.status: "queued").
A hosted app512 MB of memory, one CPU and 3 GB of disk unless more is bought. The image and the app's data share that disk. No GPU: a project that needs one is refused before the build (needs-gpu).
Apps and domainsOne app per Embed App purchase and one domain per Custom domain purchase; past that, 409 with "code": "quota_reached".
Your own pages20 per project; text up to 50,000 characters, HTML up to 5 MB.
Tokens50 working tokens per account.

Ready to script it?

Create a token in your account, or hand the agent guide to your AI agent.

Create an API token Agent guide

Missing something, or found a call that does not work as written? Write to support@apposters.com or read the FAQ.