Sites

Register a site

Adds a website to this workspace so it can send tracking data. Owners and admins only; limited by the plan's site capacity.

post/sites

Request

  • Base URL: https://api.onelence.com/v1
  • URL: https://api.onelence.com/v1/sites
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://api.onelence.com/oauth/authorize, token URL https://api.onelence.com/oauth/token, scopes: tracking:write)
    • HTTP bearer

Query parameters

dry_runboolean

true returns a preview of the change and applies nothing.

Headers

Idempotency-Keystring

8 to 200 visible ASCII characters. Retries with the same key and request return the stored response for 24 hours.

Request body

domainstring required

Domain such as example.com.

Response

With dry_run=true: what would change. Nothing is applied.

object'preview' required
capabilitystring required

Changes

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