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

Account

changePassword

account.changePassword Change the signed-in account password; the old one stops working Risk: destructive
Input Output

create

account.create Sign up a new user on a server with signup enabled (anonymous call) Risk: write
Input Signup must be enabled on the server, and ntfy refuses it from a signed-in user: use the plugin with anonymous: true and no key. Output

delete

account.delete Delete the signed-in account, its tokens and reservations, confirmed with the current password Risk: destructive · Irreversible
Input Confirmed with the current password. The server marks the account for removal, so it can stay listed (and keep its tier) for a while. Output

login

account.login Sign in with username:password and get a new session token Risk: write
Input: empty object Output

requestPasswordReset

account.requestPasswordReset Email a password reset link to the account (server needs email sending) Risk: destructive
Input Output

resetPassword

account.resetPassword Set a new password with the token from a reset link Risk: write
Input Output

updateSettings

account.updateSettings Change account preferences: language, date/time format and notification sound, minimum priority, auto-delete Risk: write
Input
Output

usage

account.usage Read the account view: tier limits, messages/emails/calls used and remaining, and the daily reset time Risk: read
Input: empty object Anonymous callers get an IP-based view; with a token it is the account tier. No per-topic stats exist on ntfy.sh. Output

Billing

cancelSubscription

billing.cancelSubscription Cancel the paid subscription at the end of the period Risk: destructive · Irreversible
Input: empty object Output

createPortalSession

billing.createPortalSession Get a Stripe billing portal URL for the account Risk: write
Input: empty object Output

createSubscription

billing.createSubscription Start a paid subscription; returns a Stripe checkout URL Risk: destructive
Input Returns a Stripe checkout URL to open; nothing is charged until checkout is completed. Output

tiers

billing.tiers List the paid tiers with their prices and limits, plus the free tier (servers with payments only) Risk: read
Input: empty object Output

updateSubscription

billing.updateSubscription Switch the paid subscription to another tier or interval (charges or prorates) Risk: destructive
Input Output

Emails

add

emails.add Add an email address to the account and send it a verification link Risk: destructive
Input Output

delete

emails.delete Remove an email address from the account Risk: destructive
Input Output

resendVerification

emails.resendVerification Send the verification link for a pending email address again Risk: destructive
Input Output

setPrimary

emails.setPrimary Make a verified email address the primary one Risk: write
Input Output

verify

emails.verify Confirm an email address with the token from its verification link Risk: write
Input Output

Files

download

files.download Download a message attachment stored on the server (/file/{id}) and return the file Risk: read
Input Takes the id at the end of attachment.url (/file/<id>) and returns the file: text as text, other files as base64. Output

Messages

clear

messages.clear Mark a message as read and dismissed on subscribers (sends a message_clear event) Risk: write
Input Sends a message_clear event: subscribers mark the message read and dismissed. The cache entry stays until it expires. Output

delete

messages.delete Delete a message by sequence id, sending a delete event to subscribers; the cache entry is removed Risk: destructive · Irreversible
Input Sends a message_delete event. A scheduled message that has not gone out is cancelled and removed from the server; a delivered one stays cached with the delete event after it, and clients that support it remove the notification. Republishing the same sequenceId revives the sequence. Output

poll

messages.poll Read cached messages from one or more topics, optionally including scheduled ones, with since/filters Risk: read
Input Reads the server-side cache (12h on ntfy.sh, 10 MB replay cap per topic). Poll filters: message, title, id match text; priority is an OR list, tags an AND list. A multi-topic comma list (up to 150 topics) interleaves by time. Output

send

messages.send Publish a notification to a topic; every subscriber gets a push, so the send cannot be undone Risk: destructive · Irreversible
Input Publishes as JSON to the server root. email and call also email or phone someone (servers with those features). message defaults to ‘triggered’ server-side. delay accepts 10s to 3d on ntfy.sh; self-hosted servers may differ.
Output

sendFile

messages.sendFile Upload a file as a message attachment (PUT /{topic}); every subscriber gets a push, so the send cannot be undone Risk: destructive · Irreversible
Input Uploads the file as the request body (PUT /{topic}) with the other options as X- headers. The answer carries attachment with its name, size, type, expiry and URL. The server needs an attachment cache; ntfy.sh limits files by tier. Output

update

messages.update Publish a new version of a message under an existing sequence id; the server keeps both versions and notifies again Risk: destructive
Input Publishes with sequence_id set. The server keeps both versions and every subscriber is notified again.
Output

Phone Numbers

add

phoneNumbers.add Add a phone number to the account with the code it received Risk: write
Input Output

delete

phoneNumbers.delete Remove a verified phone number from the account Risk: destructive
Input Output

sendVerification

phoneNumbers.sendVerification Send a verification code to a phone number by SMS or call (needs a tier with calls) Risk: destructive
Input Output

Reservations

add

reservations.add Reserve a topic for the account and set what everyone else may do on it Risk: write
Input Output

delete

reservations.delete Release a reserved topic, optionally deleting its cached messages Risk: destructive
Input Output

Server

config

server.config Read the server feature flags: login, signup, payments, calls, emails, reservations, web push Risk: read
Input: empty object Output

health

server.health Read server health (healthy flag and role) Risk: read
Input: empty object No special rights needed, but corsair still sends the token. Output

metrics

server.metrics Read Prometheus metrics as text (servers with metrics enabled) Risk: read
Input: empty object Output

ready

server.ready Read whether the server is ready for traffic (load balancer check) Risk: read
Input: empty object Output

stats

server.stats Read server-wide totals: message count and rate per second Risk: read
Input: empty object Server-wide totals, not per-account. Output

version

server.version Read the server version, commit and build date Risk: read
Input: empty object Output

Subscriptions

add

subscriptions.add Add a topic subscription to the account (synced to the web app and phone apps) Risk: write
Input Output

delete

subscriptions.delete Remove a synced topic subscription from the account Risk: write
Input Output

update

subscriptions.update Change a synced subscription’s display name Risk: write
Input Output

Tiers

create

tiers.create Admin: create a tier with message, email, call, reservation and attachment limits Risk: write
Input Output

delete

tiers.delete Admin: delete a tier that no user is on Risk: destructive · Irreversible
Input Output

list

tiers.list Admin: list tiers with their limits and user counts Risk: read
Input: empty object Output

update

tiers.update Admin: change a tier’s limits Risk: write
Input Output

Tokens

create

tokens.create Create an access token for the signed-in account (returned once, tk_…) Risk: write
Input Output

delete

tokens.delete Revoke an access token (the given one, or the one making the call) Risk: destructive · Irreversible
Input Without token, revokes the token the call is made with. Output

update

tokens.update Change an access token’s label or expiry Risk: write
Input Output

Topics

checkAuth

topics.checkAuth Check that the credential may read the topic(s); 200 with success true, 401/403 otherwise Risk: read
Input Output

Users

create

users.create Admin: create a user with a password or bcrypt hash and an optional tier Risk: write
Input Output

createToken

users.createToken Admin: create an access token for a user (returned once) Risk: write
Input Output

delete

users.delete Admin: delete a user and their tokens and grants Risk: destructive · Irreversible
Input Output

deleteToken

users.deleteToken Admin: revoke one of a user’s access tokens Risk: destructive · Irreversible
Input Output

grantAccess

users.grantAccess Admin: grant a user (or ”*” everyone) read/write/deny access to a topic or pattern Risk: write
Input Output

list

users.list Admin: list users (or one by username) with role, tier and topic grants Risk: read
Input Output

listTokens

users.listTokens Admin: list a user’s access tokens Risk: read
Input Output

resetAccess

users.resetAccess Admin: remove a user’s topic grants (one topic or all) Risk: destructive
Input Output

resetPassword

users.resetPassword Admin: make a password reset link for a user, optionally emailing it Risk: destructive
Input Returns a reset link holding a token; the server needs a base URL configured. sendEmail also emails it. Output

update

users.update Admin: change a user’s password or tier Risk: write
Input Output

Web Push

subscribe

webPush.subscribe Register or update a browser push subscription for topics Risk: write
Input Output

unsubscribe

webPush.unsubscribe Remove a browser push subscription Risk: write
Input Output