Skip to main content
Every fluxguard.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Account

get

account.get Get the organisation account: plan, credits, site count and flags Risk: read
Input: empty object flags maps each severity label to the colour the console shows it in; the same labels appear as aiFlagged on a change. Output

Categories

create

categories.create Create a site category; sites are assigned to it in the Fluxguard console Risk: write
Input Creates a site category. Page categories exist separately and the API cannot create them. Output

list

categories.list List the site categories change notifications can be limited to Risk: read
Input: empty object Fluxguard indexes categories by id and leaves the id out of each value, so the plugin restores it as an id field. An account with no categories answers {}. Output

Monitoring

addPage

monitoring.addPage Add a URL for monitoring, creating a site and session when none is given Risk: write
Input siteId and sessionId must be given together. The API answers 400 when only one is set, and 400 when siteNickname or a category option is set alongside an existing site, so the plugin rejects both cases before sending. Output

deletePage

monitoring.deletePage Stop monitoring a page: Fluxguard hides it and everything captured for it, and the id still resolves with status ignore Risk: destructive · Irreversible
Input Answers 204. Fluxguard keeps the row with status: 'ignore' rather than removing it, so the id keeps resolving. Output

deleteSite

monitoring.deleteSite Delete a site with all of its sessions, pages and captured versions Risk: destructive · Irreversible
Input Answers 204. Deleting an already-deleted site answers 204 too. Output

getPage

monitoring.getPage Get one monitored page with its version counts and categories Risk: read
Input An unknown site, session or page answers 204 with no body, not 404, so the plugin throws instead of returning an empty page. A deleted page still answers 200 with status: 'ignore'. Output

startCrawl

monitoring.startCrawl Start capturing a session now; the capture runs in the background and spends account credits Risk: write
Input Answers 204 with no body. The crawl runs in the background and spends account credits; read the capture with monitoring.getPage. Output

Webhooks

create

webhooks.create Add a webhook URL. Every later change event is POSTed to it, so a live URL starts receiving data immediately Risk: write
Input Only url is honoured. siteCategories and categories are silently ignored, so assign categories in the console instead. Output

delete

webhooks.delete Remove a webhook so its URL stops receiving change events Risk: destructive
Input The id travels in the request body. A query parameter is ignored and a request without a body answers 400, so the plugin always sends { id }. Deleting an unknown id answers 204. Output

list

webhooks.list List the webhook URLs change events are posted to Risk: read
Input: empty object Each webhook’s secret is its own HMAC signing key for deliveries, and Fluxguard shows the same value behind the key icon beside the webhook URL in Account Settings. Pass it as webhookSecret, or store it with keys.set_webhook_signature, to verify incoming deliveries. Output

sample

webhooks.sample Get a sample delivery built from this account, to inspect the payload shape Risk: read
Input: empty object Returns an array of example changes from your own account, or seeded data on a new one. Output