Skip to main content
GET
Get the install snippets

Authorizations

Authorization
string
header
required

Send your API key in the Authorization header as Bearer API_KEY. Account API keys work in every workspace you belong to: send X-Notra-Organization-Id with the workspace id or slug to choose one. Workspace endpoints require it when you belong to more than one workspace; GET /v1/me/workspaces works without it. Organization keys only accept their own workspace there.

Query Parameters

projectId
string

Return the web key for one project. Omit for the oldest project's web key.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]{1,100}$

Response

Setup fetched successfully

ingestUrl
string
required

Endpoint the tracking snippet posts events to.

snippet
string
required

Install snippet for the default framework (Next.js).

snippets
object
required
drainUrls
object
required

Endpoints a Vercel log drain or Cloudflare Logpush job posts request logs to, authenticated with the tracking token.

organization
object
required
webKey
string

Public key for the notra.js browser script, bound to one project. Safe to put in page HTML; it only records human page views on that project's tracked domains and survives token rotation. Only present when web analytics is enabled for the workspace and it has a project.

webSnippet
string

Script tag that installs notra.js with the public key, pinned to the current build with its Subresource Integrity hash and crossorigin="anonymous". Build an auto-updating tag from webScript.url instead if you want new builds without copying the tag again. Only present when web analytics is enabled for the workspace.

webScript
object

notra.js: the auto-updating URL and the current build pinned with Subresource Integrity. Only present when web analytics is enabled for the workspace.

webPlusScript
object

notra.plus.js (notra.js with JavaScript error reporting), auto-updating and pinned. Only present when web analytics is enabled for the workspace.