Sites

Atomically ensure a site exists

Idempotent agent operation backed by a transaction and global canonical-domain uniqueness.

post/api/sites/ensure

Request

  • Base URL: https://slimlytics.com
  • URL: https://slimlytics.com/api/sites/ensure
  • Auth: HTTP bearer

Request body

namestring required
domainstring required
timezonestring
allowedOriginsstring[]
retentionDaysinteger

Example request

{
  "domain": "example.com"
}

Response

Existing site reused

createdboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.