Skip to main content
New to Corsair? See API access, authentication, and error handling.

Account

get

account.get Retrieve information about the account that owns the API key Risk: read
Input: empty object Output

getToken

account.getToken Retrieve metadata about the API token used to make the request Risk: read
Input: empty object Output

Events

create

events.create Create an event (deprecated: returns 410 Gone; track directly on site) Risk: write
Input Output

delete

events.delete Delete an event by ID (deprecated: returns 410 Gone) Risk: destructive
Input Output

deleteByName

events.deleteByName Remove an event’s currency setting by name (the event and its completions stay; set it again with events.setCurrency) Risk: write
Input Output

get

events.get Retrieve a single event by ID (deprecated: returns 410 Gone) Risk: read
Input Output

list

events.list List all events tracked by a site with pagination Risk: read
Input Output

setCurrency

events.setCurrency Set or update the currency for an event by name Risk: write
Input Output

update

events.update Update an event by ID (deprecated: returns 410 Gone) Risk: write
Input Output

wipe

events.wipe Wipe event completion data (deprecated: returns 410 Gone) Risk: destructive
Input Output

Milestones

create

milestones.create Create a new milestone for a site Risk: write
Input Output

delete

milestones.delete Permanently delete a milestone from a site Risk: destructive
Input Output

get

milestones.get Retrieve a single milestone by its ID Risk: read
Input Output

list

milestones.list List all milestones for a site with pagination Risk: read
Input Output

update

milestones.update Update a milestone name or date by its ID Risk: write
Input Output

Reports

aggregation

reports.aggregation Generate custom aggregation reports across pageviews or events Risk: read
Input
Output: Record<string, string \| number \| null>[]

currentVisitors

reports.currentVisitors Get real-time current visitor count and optional page/referrer breakdown Risk: read
Input Output: object

Sites

create

sites.create Create a new site entity in Fathom Analytics Risk: write
Input Output

delete

sites.delete Permanently delete a site and all associated analytics data Risk: destructive
Input Output

get

sites.get Retrieve details of a single site by its ID Risk: read
Input Output

list

sites.list List all sites owned by the account with pagination Risk: read
Input Output

update

sites.update Update site settings such as name, sharing, or timezone Risk: write
Input Output

wipe

sites.wipe Wipe all data from a site (deprecated: returns 410 Gone) Risk: destructive
Input Output