Staticbot logoStaticbot.dev
    Platform

    Staticbot REST API

    Automate every part of your deployment pipeline. The Staticbot v1 API gives scripts, CI systems, and AI agents programmatic control over migrations, stacks, and deployments.

    Authentication

    All API requests are authenticated with a bearer token. Generate an API key in the Staticbot dashboard under Developer → API Keys.

    # Every request requires this header Authorization: Bearer sk-your-api-key

    Keys are prefixed with sk- and scoped to a single organization. They never expire but can be revoked at any time.

    Base URL

    https://app.staticbot.dev/api/v1

    API Reference

    Browse endpoints, view request/response schemas, and try requests directly.

    Quick Example

    Deploy a Vite app end-to-end:

    # 1. Find a template
    curl https://app.staticbot.dev/api/v1/templates \
    -H "Authorization: Bearer sk-..."
    # 2. Create a stack with your domain
    curl -X POST https://app.staticbot.dev/api/v1/stacks \
    -H "Authorization: Bearer sk-..." \
    -d '{"name":"My App","templateId":"...","domainOption":{"type":"CUSTOM_DOMAIN","domainName":"example.com"}}'
    # 3. Create and start a deployment
    curl -X POST https://app.staticbot.dev/api/v1/deployments \
    -H "Authorization: Bearer sk-..." \
    -d '{"stackId":"..."}'
    curl -X POST https://app.staticbot.dev/api/v1/deployments/<id>/start \
    -H "Authorization: Bearer sk-..."
    # 4. Poll for status
    curl https://app.staticbot.dev/api/v1/deployments/<id> \
    -H "Authorization: Bearer sk-..."

    Built for automation

    Org-scoped keys

    Each key is tied to one organization. Create multiple keys per org and revoke any individually.

    Low latency

    JSON responses with stable schemas. No pagination surprises — list endpoints return all records.

    AI-agent ready

    Designed to be called by scripts and AI agents. Predictable status enums and clear error messages.

    Ready to automate?

    Create an API key from the dashboard and start building in minutes.