Create a site and get its install snippet
Creates a site and returns everything needed to install tracking, so provisioning is one round-trip. Requires an ALL-SITES key: a single-site key gets 403 key_not_scoped, since the new site would be outside its own scope. A duplicate url is 409 site_exists — unlike the dashboard, which permits it: for an agent a duplicate is nearly always a retry that lost its response. The first non-hobby site starts the trial subscription exactly as the dashboard does. Send an Idempotency-Key to make retries safe.
Request
- Base URLhttps://statable.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Replays the stored response for 24 hours instead of creating a second site. Reuse with a different body is 409 idempotency_conflict.
Request body
Example request
{
"url": "https://example.com",
"timezone": "Europe/Kyiv"
}Response
The created site, with its script URL and snippet.
Changes
No recorded changes to this operation across all 1 revision of this API.