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

Alarms

create

alarms.create Creates a new alarm with destinations. Risk: write
Input
Output

delete

alarms.delete Deletes an alarm and all its destinations. Risk: destructive
Input Output

list

alarms.list Returns alarms for the organization. Risk: read
Input Output: object[]

test

alarms.test Sends a test notification to all configured channels. Risk: destructive
Input Output

update

alarms.update Updates an existing alarm and its destinations. Risk: write
Input
Output

Analytics

compile

analytics.compile Validate and compile one analytics query without running it, returning the SQL it would run. API key scope: read:data. Risk: read
Input
Output

listQueryTypes

analytics.listQueryTypes List the analytics query types (summary_metrics, top_pages, …), their allowed filters and the date presets. Risk: read
Input Output

listWebsites

analytics.listWebsites List the websites this API key can query, with their IDs for analytics.query. API key scope: read:data. Risk: read
Input: empty object Output

query

analytics.query Run one analytics report, or a batch of up to 25, for a website, link, uptime monitor or organization, with a date range or preset, filters, granularity, sorting and page/limit pagination. Check each parameter’s success field: one can fail while the others succeed. API key scope: read:data. Risk: read
Input
Output

Annotations

create

annotations.create Creates a new annotation. Requires website update permission. Risk: write
Input
Output

delete

annotations.delete Soft-deletes an annotation. Requires website delete permission. Risk: destructive
Input Output

getById

annotations.getById Returns a single annotation added in Databuddy by id. GitHub markers have no saved copy, so their ids are refused with a bad request. Requires website read permission. Risk: read
Input Output

githubMarkers

annotations.githubMarkers Returns how far a website’s GitHub chart markers reach, the production environments its linked repository deploys to, and the website’s choice of environments and releases. Requires website read permission. Risk: read
Input Output

list

annotations.list Returns a website’s annotations on a chart type, newest first, with the successful production deploys and published releases of its linked GitHub repository from the last 365 days, as far back as GitHub could be read (annotations.githubMarkers says how far). from, to and sources narrow the list; limit keeps the newest. GitHub markers are read-only. Requires website read permission. Risk: read
Input
Output: object[]

update

annotations.update Updates an annotation. Members can update their own annotations; owners, admins and API keys can update any. Risk: write
Input Output

Api Keys

revokeSelf

apiKeys.revokeSelf Permanently revokes the API key sending the request, so an agent can discard a key it no longer needs or suspects has leaked. Any valid key can call this, whatever its scopes. This cannot be undone. The key that sends the request stops working at once, for every caller. Risk: destructive
Input: empty object Output

self

apiKeys.self Returns the API key sending the request: its name, organization, scopes, website access, expiry and rate limit. Never returns the secret. Any valid key can call this, whatever its scopes. Risk: read
Input: empty object Output

verify

apiKeys.verify Validates an API key (from header or body) and optionally checks scopes. Can be used without auth to test a key. Through this plugin the call still needs a configured key; pass the key to check as secret. Risk: read
Input Output: object

Autocomplete

get

autocomplete.get Returns autocomplete suggestions for analytics filters. Risk: read
Input Output

Events

group

events.group Set traits on an account such as a company or workspace (Basket /group). API key scope: track:events. Risk: write
Input Output

identify

events.identify Link a visitor to your own user ID and set the profile’s traits (Basket /identify). API key scope: track:events. Risk: write
Input Output

track

events.track Record custom events through the Basket API (basket.databuddy.cc/track), one or many in one request. Events that fail validation come back in rejected; the others are stored. API key scope: track:events. Risk: write
Input
Output

Flags

create

flags.create Creates a new feature flag. Requires feature flags plan and scope update permission. Risk: write
Input
Output

delete

flags.delete Soft-deletes a flag (archives it). Requires scope delete permission. Risk: destructive
Input Output

experimentResults

flags.experimentResults Compares goal conversion across a flag’s variants for visitors the random split assigned, against the control arm, since the versions or their split last changed. With several variants, significance uses Holm’s correction. Boolean flags have no random split and are never significant. Requires website read permission. Risk: read
Input Output

getById

flags.getById Returns a single flag by id. Requires scope read permission. Risk: read
Input Output

getByKey

flags.getByKey Returns a single active flag by key. Requires scope read permission. Risk: read
Input Output

list

flags.list Returns all flags for a website or organization. Requires scope read permission. Risk: read
Input Output: object[]

listChanges

flags.listChanges Returns a flag’s latest 50 configuration changes, newest first, with who made each one and the flag’s settings before and after. Requires scope read permission. Risk: read
Input Output: object[]

stats

flags.stats Returns recent feature flag evaluation stats for a website. Requires scope read permission. Risk: read
Input Output: object[]

update

flags.update Updates an existing flag. Requires scope update permission. Risk: write
Input
Output

Funnels

bulkAnalytics

funnels.bulkAnalytics Returns conversion analytics for several funnels over one period. A funnel that can’t be measured reports why instead of failing the rest. Requires website read permission. Risk: read
Input
Output: object

create

funnels.create Creates a new funnel. Requires funnels feature and website update permission. Risk: write
Input
Output

delete

funnels.delete Soft-deletes a funnel. Requires website delete permission. Risk: destructive
Input Output

getAnalytics

funnels.getAnalytics Returns funnel conversion analytics. Requires website read permission. Risk: read
Input
Output

funnels.getAnalyticsByLink Returns funnel analytics for the visitors who arrived through one of the organization’s short links: those whose landing page carried the source, medium and campaign UTMs the link’s destination sets. A link whose destination sets none has no visitors to follow. Requires website read permission. Risk: read
Input Output

getAnalyticsByReferrer

funnels.getAnalyticsByReferrer Returns funnel analytics broken down by referrer. Requires website read permission. Risk: read
Input
Output

getById

funnels.getById Returns a single funnel by id; website is resolved from the funnel. Requires website read permission. Risk: read
Input Output

list

funnels.list Returns all funnels for a website. Requires website read permission. Risk: read
Input Output: object[]

update

funnels.update Updates an existing funnel. Requires website update permission. Risk: write
Input
Output

Goals

bulkAnalytics

goals.bulkAnalytics Returns conversion analytics for multiple goals. Requires website read permission. Risk: read
Input
Output: object

create

goals.create Creates a new conversion goal. Requires goals feature and website update permission. Risk: write
Input
Output

delete

goals.delete Soft-deletes a goal. Requires website delete permission. Risk: destructive
Input Output

getAnalytics

goals.getAnalytics Returns conversion analytics for a single goal. Requires website read permission. Risk: read
Input
Output

getById

goals.getById Returns a single goal by id; website is resolved from the goal. Requires website read permission. Risk: read
Input Output

list

goals.list Returns all goals for a website. Requires website read permission. Risk: read
Input Output: object[]

update

goals.update Updates an existing goal. Requires website update permission. Risk: write
Input
Output

create

linkFolders.create Creates a folder used to organize short links. Requires write:links scope. Risk: write
Input Output

delete

linkFolders.delete Deletes a link folder and moves contained links to Unfiled. Requires write:links scope. Risk: destructive
Input Output

list

linkFolders.list Returns folders used to organize short links inside an organization. Requires read:links scope. Risk: read
Input Output: object[]

update

linkFolders.update Updates a link folder. Requires write:links scope. Risk: write
Input Output

clickCounts

links.clickCounts Returns lifetime clicks and clicks in the last 7 days for up to 100 of the organization’s links in one call. Links that aren’t the organization’s are left out. Requires read:links scope. Risk: read
Input Output: object[]

conversions

links.conversions For one short link and range: the visitors who arrived on the organization’s website through it, matched on exactly the UTMs its destination sets (a visit carrying any UTM the link leaves unset doesn’t match), and how many of them reached each active goal and each step of the most recently changed funnels. sameUtms lists the organization’s other links to that website with the same UTMs, whose visitors can’t be told apart and are counted here too. For revenue from the same visitors, read revenue_overview filtered by arrived_via_link with this link’s ID. Status untagged means the destination sets no UTMs; elsewhere means it isn’t one of the organization’s websites. Requires read:links scope and website read permission. Risk: read
Input Output: object

create

links.create Creates a new short link. To file it, pass folderId for an existing folder, or folder ({ name, slug? }) to use the folder with that slug and create it if missing; the slug defaults to one derived from name. Requires write:links scope. Risk: write
Input
Output

delete

links.delete Deletes a link by id. Requires write:links scope. Risk: destructive
Input Output

get

links.get Returns a single link by id; the organization is resolved from the link. Requires read:links scope. Risk: read
Input Output

list

links.list Returns up to the 1000 most recent links for the organization. Optional organizationId defaults to the active organization from the session. Use the paginated endpoint for larger organizations. Requires read:links scope. Risk: read
Input Output: object[]

paginated

links.paginated Returns a page of links for the organization with server-side search, sort, type filter, and offset pagination. Set includeTotal only when an exact filtered count is needed. Requires read:links scope. Risk: read
Input Output

update

links.update Updates an existing link. Requires write:links scope. Risk: write
Input Output

Organizations

clearExpiredInvitations

organizations.clearExpiredInvitations Deletes expired and accepted invitations for an organization. Risk: write
Input Output

getBillingContext

organizations.getBillingContext Returns billing context for the requested website or active organization, with a free-tier fallback. Risk: read
Input Output

getEmailNotificationSettings

organizations.getEmailNotificationSettings Returns email notification settings for an organization. Risk: read
Input Output

getPendingInvitations

organizations.getPendingInvitations Returns pending invitations for an organization. Risk: read
Input Output: object[]

getPlanUsage

organizations.getPlanUsage Returns the organization’s usage against its plan limits: counted resources and projected monthly uptime checks. Null when billing is off. Risk: read
Input Output

updateAvatarSeed

organizations.updateAvatarSeed Updates organization avatar seed. Requires org update permission. Risk: write
Input Output

updateEmailNotificationSettings

organizations.updateEmailNotificationSettings Updates email notification settings for an organization. Requires org update permission. Risk: write
Input
Output

Replays

events

replays.events Returns a page of download URLs for a session’s recording. With allParts, pages run through the whole recording in playback order, with the session metadata on the first page: pass nextCursor as cursor until it is null. Without it, a page covers one part: select partId from parts and pass nextCursor as cursor within that part; metadataOnly returns status without download URLs. Requires website read permission and replay enabled. API key scope: read:data. Risk: read
Input Output

issues

replays.issues Groups the last week’s unanswered clicks in processed recordings by page and element, most widespread first. Requires website read permission and replay enabled for the website. API key scope: read:data. Risk: read
Input Output

list

replays.list Lists recordings by identified-user email, profile id, current traits, recording start time, and behavior. Requires website read permission (read:data for API keys) and replay enabled. Check hasMore and truncated before treating results as exhaustive. Risk: read
Input
Output

recorded

replays.recorded Returns the given session ids that have a processed recording, so other pages can link to the replay. Empty when session replay is off for the website. Requires website read permission. API key scope: read:data. Risk: read
Input Output

status

replays.status Returns a session recording’s parts and how it ended, without download URLs or session metadata, so a viewer can tell when more footage has arrived. Requires website read permission and replay enabled. API key scope: read:data. Risk: read
Input Output

Sql

query

sql.query Runs one read-only ClickHouse SELECT or WITH query over the selected websites. Pass websiteId or websiteIds. All sites must belong to one organization and the caller needs read permission for each (read:data for API keys). Returns up to limit rows (default 10000, at most 50000); truncated is true when the query had more. Queries stop after 20 seconds, 5 GB read, or a 10 MB result. GET /sql/schema lists the tables and columns. Risk: read
Input Output

schema

sql.schema Lists the analytics tables and columns POST /sql/query can read, with column types and the counting rules for each table. Risk: read
Input: empty object Output

Status Page

addMonitor

statusPage.addMonitor Adds a monitor to a status page. Requires write:status_pages scope. Risk: write
Input Output: any

create

statusPage.create Creates a status page. Requires write:status_pages scope. Risk: write
Input Output: any

createAssetUploadUrl

statusPage.createAssetUploadUrl Returns a short-lived presigned URL for uploading a status page logo or favicon. Requires write:status_pages scope. Risk: write
Input Output: any

createIncident

statusPage.createIncident Creates a new status page incident. Requires write:status_pages scope. Publishes the incident on the public status page. Risk: destructive
Input
Output: any

customDomain

statusPage.customDomain Returns the custom domain, the DNS records it needs, and whether each one is in place. Requires read:status_pages scope. Risk: read
Input Output: any

delete

statusPage.delete Deletes a status page. Requires write:status_pages scope. Risk: destructive
Input Output: any

deleteIncident

statusPage.deleteIncident Deletes a status page incident. Requires write:status_pages scope. Risk: destructive
Input Output: any

get

statusPage.get Returns status page details including monitors. Requires read:status_pages scope. Risk: read
Input Output: any

getByDomain

statusPage.getByDomain Get public status page by custom domain. Risk: read
Input Output

getBySlug

statusPage.getBySlug Get public status page. Risk: read
Input Output

list

statusPage.list Lists status pages for an organization. Requires read:status_pages scope. Risk: read
Input Output: any

listIncidents

statusPage.listIncidents Lists incidents for a status page. Requires read:status_pages scope. Risk: read
Input Output: any

listPublic

statusPage.listPublic List public status pages for sitemap generation. Risk: read
Input: empty object Output: object[]

removeMonitor

statusPage.removeMonitor Removes a monitor from a status page. Requires write:status_pages scope. Risk: write
Input Output: any

reorderMonitors

statusPage.reorderMonitors Sets the display order of every monitor on a status page. Requires write:status_pages scope. Risk: write
Input Output: any

setCustomDomain

statusPage.setCustomDomain Sets the hostname a status page should be served on, or removes it when null. The domain serves the page only after verifyCustomDomain reports it active. Requires write:status_pages scope. Risk: write
Input Output: any

transfer

statusPage.transfer Transfers a status page to another organization. Requires write:status_pages scope on source and target. Risk: destructive
Input Output

update

statusPage.update Updates status page details. Requires write:status_pages scope. Risk: write
Input Output: any

updateIncident

statusPage.updateIncident Posts an update to a status page incident. Requires write:status_pages scope. Publishes the update on the public status page. Risk: destructive
Input Output: any

updateMonitorSettings

statusPage.updateMonitorSettings Updates visibility settings for a status page monitor. Requires write:status_pages scope. Risk: write
Input Output: any

verifyCustomDomain

statusPage.verifyCustomDomain Checks the ownership TXT record and connects the custom domain. It goes live once its DNS points at Databuddy; until then the status is connecting. Requires write:status_pages scope. Risk: write
Input Output: any

Target Groups

create

targetGroups.create Creates a new target group. Requires feature flag update permission. Risk: write
Input
Output

delete

targetGroups.delete Soft-deletes a target group. Requires feature flag delete permission. Risk: destructive
Input Output

list

targetGroups.list Returns all target groups for a website. Requires feature flag read permission. Risk: read
Input Output: object[]

update

targetGroups.update Updates an existing target group. Requires feature flag update permission. Risk: write
Input
Output

Tracker

getCurrentVersions

tracker.getCurrentVersions Returns the current tracker script versions with SRI hashes. Risk: read
Input: empty object Output: object[]

listVersions

tracker.listVersions Returns all tracker script versions. Risk: read
Input Output: object[]

Uptime

createSchedule

uptime.createSchedule Creates an uptime monitor. Requires write:monitors scope. Risk: write
Input
Output

deleteSchedule

uptime.deleteSchedule Deletes an uptime schedule. Requires write:monitors scope. Risk: destructive
Input Output

getSchedule

uptime.getSchedule Returns schedule with BullMQ scheduler status. Requires read:monitors scope. Risk: read
Input Output

getScheduleByWebsiteId

uptime.getScheduleByWebsiteId Returns uptime schedule for a website with BullMQ scheduler status. Requires read:monitors scope. Risk: read
Input Output

listSchedules

uptime.listSchedules Returns uptime schedules for one organization or all accessible organizations. Requires read:monitors scope. Risk: read
Input Output: object[]

manualCheck

uptime.manualCheck Triggers an immediate uptime check for a monitor. Monitor must not be paused. Requires write:monitors scope. Risk: write
Input Output

pauseSchedule

uptime.pauseSchedule Pauses an uptime schedule. Requires write:monitors scope. Risk: write
Input Output

resumeSchedule

uptime.resumeSchedule Resumes an uptime schedule. Requires write:monitors scope. Risk: write
Input Output

transfer

uptime.transfer Transfers an uptime monitor to another organization. Requires write:monitors scope on source and target. Risk: destructive
Input Output

updateSchedule

uptime.updateSchedule Updates an uptime schedule. Requires write:monitors scope. Risk: write
Input Output

Visitor Data

delete

visitorData.delete Erases everything stored about one visitor of a website: events, identity, traits, and replays. While earlier deletions are still being applied, answers 429 with Retry-After and records nothing; send the same request again then. Requires visitor data delete permission (delete:visitor_data or manage:websites for API keys). Risk: destructive
Input Output

deleteGroup

visitorData.deleteGroup Erases what was recorded for one group of a website, such as a deleted customer organization: page views, custom events, and outgoing link clicks whose group_<type> property is the key, the group’s traits, and the account labels and review derived from them. The people in the group are not erased; delete each one’s visitor data separately. An event carrying the key is erased whole, including any other group properties it has. While earlier deletions are still being applied, answers 429 with Retry-After and records nothing; send the same request again then. Requires visitor data delete permission (delete:visitor_data or manage:websites for API keys). Risk: destructive
Input Output

deletionStatus

visitorData.deletionStatus Reports whether a visitor data deletion has finished. Completed means the reapply window closed and nothing the request covers remains. Requires visitor data delete permission (delete:visitor_data or manage:websites for API keys). Risk: read
Input Output

export

visitorData.export Exports everything stored about one visitor of a website, for an access or portability request. Requires website delete permission. API key scope: manage:websites. Risk: read
Input Output

groupDeletionStatus

visitorData.groupDeletionStatus Reports whether a group data deletion has finished. Completed means the reapply window closed and nothing the request covers remains. Requires visitor data delete permission (delete:visitor_data or manage:websites for API keys). Risk: read
Input Output

Websites

agentInstallProgress

websites.agentInstallProgress Reads the latest install report a coding agent posted for a website, or for one setup session when setupSession is given. Requires website read permission. Risk: read
Input Output

checkAgentSetup

websites.checkAgentSetup Requests the website’s homepage and llms.txt as GPTBot and reports whether each request was recorded through @databuddy/sdk/agents or a Vercel log drain, the HTTP status each request got, and which bot protection blocked it. Also reports the homepage status for a regular browser, so a bot rule can be told apart from a site that is down. Requires website read permission. Risk: read
Input Output

checkAiRobots

websites.checkAiRobots Reads the website’s robots.txt and reports, for each AI crawler user agent, whether it is allowed, partly blocked, or blocked, and since when a blocked crawler has been blocked. Requires website read permission. Risk: read
Input Output

create

websites.create Creates a website. Requires organization create permission. Risk: write
Input Output

delete

websites.delete Deletes a website. Requires delete permission. Risk: destructive
Input Output

exportDownload

websites.exportDownload Downloads analytics export. Requires read permission. Risk: read
Input Output

getById

websites.getById Returns a website by id. Requires website read permission. Risk: read
Input Output

getPublicSummary

websites.getPublicSummary Returns minimal public-overview metadata for a website (id, domain, name, status, reporting timezone). Public websites only. Risk: read
Input Output

isTrackingSetup

websites.isTrackingSetup Checks if tracking is set up for a website. Requires website read permission. Risk: read
Input Output

list

websites.list Returns websites for the active organization. Risk: read
Input Output: object[]

listWithCharts

websites.listWithCharts Returns websites with chart data and active users. Risk: read
Input Output

setupStatus

websites.setupStatus What a website sent for each feature over the last 30 days: page views and how many came from identified visitors, Web Vitals, errors, custom events from browsers and from servers, outgoing link clicks, AI crawler reads reported by its server, payments and how many carry a visitor, session recordings, and accounts sent with group(). Requires website read permission. Risk: read
Input Output

togglePublic

websites.togglePublic Toggles website public/private. Requires update permission. Making a website public lets anyone read its overview analytics. Risk: destructive
Input Output

trackingRequests

websites.trackingRequests What a website sent over the last 7 days: events counted, and event requests turned away (one request can carry several events), grouped by why: bots, excluded by its own rules, from another domain, outside its IP allowlist, unreadable data with the most common field problem, or other. Requires website read permission. Risk: read
Input Output

transfer

websites.transfer Transfers a website to another organization. Risk: destructive
Input Output

transferToOrganization

websites.transferToOrganization Transfers website to target organization. Risk: destructive
Input Output

update

websites.update Updates a website. Requires update permission. Risk: write
Input Output

updateSettings

websites.updateSettings Updates website settings. Requires update permission. Risk: write
Input
Output