Origins

Add an origin

Adds an origin the site's recorder may send from. It is normalised to exactly what a browser sends (lower case, no default port, no path). HTTPS is required except on localhost and loopback addresses, which are for development and need no verification. A public origin stays pending until its DNS TXT record is verified. Needs analytics.sites.write.

post/v1/sites/{siteId}/origins

Request

  • Base URL: https://api.ironfang.com/analytics
  • URL: https://api.ironfang.com/analytics/v1/sites/{siteId}/origins
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

originstring required

Example request

{
  "origin": "https://shop.example.com"
}

Response

Origin added

Example response

{
  "origin": {
    "dns_record": {
      "name": "_ironfang-analytics.shop.example.com"
    },
    "origin": "https://shop.example.com"
  }
}

Changes

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