Create Site
Create a site (a domain) under an existing application. The embed + all
collection config live on the application (application_id, required); only
the domain, name, tags and the optional per-domain overrides are set here. To
create a standalone site, create its application first (POST /applications),
then add the domain here.
Authorization
bearerAuth API token generated from the fastmon dashboard (Account → API Token). Send as Authorization: Bearer fm_... or paste the full token (including the fm_ prefix) into the Authorize dialog.
In: header
Path Parameters
uuidRequest Body
application/json
Create a site (a domain / analytics unit) under an existing application.
A site is pure domain/analytics; the embed + all collection config live on the
application (application_id, required). Only the domain, a display name, tags,
and the three per-domain overrides are set here. Each override is NULL by
default = inherit the application's value; a non-null value overrides it.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/sites" \ -H "Content-Type: application/json" \ -d '{ "application_id": "48ac72d0-a829-4896-a067-dcb1c2b0f30c", "name": "string", "domain": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6", "application_id": "48ac72d0-a829-4896-a067-dcb1c2b0f30c", "name": "string", "domain": "string", "is_active": true, "tags": [], "data_retention_days": 0, "store_stitch": true, "count_visitors_by": "stitch"}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}{ "error": { "code": "string", "message": "string", "request_id": "string", "doc_url": "string", "details": {} }}