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
Output
create
account.create
Sign up a new user on a server with signup enabled (anonymous call)
Risk: write
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
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
requestPasswordReset
account.requestPasswordReset
Email a password reset link to the account (server needs email sending)
Risk: destructive
Output
resetPassword
account.resetPassword
Set a new password with the token from a reset link
Risk: write
Output
updateSettings
account.updateSettings
Change account preferences: language, date/time format and notification sound, minimum priority, auto-delete
Risk: write
notification full type
notification full type
usage
account.usage
Read the account view: tier limits, messages/emails/calls used and remaining, and the daily reset time
Risk: read
limits full type
limits full type
stats full type
stats full type
Billing
cancelSubscription
billing.cancelSubscription
Cancel the paid subscription at the end of the period
Risk: destructive · Irreversible
createPortalSession
billing.createPortalSession
Get a Stripe billing portal URL for the account
Risk: write
createSubscription
billing.createSubscription
Start a paid subscription; returns a Stripe checkout URL
Risk: destructive
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
tiers full type
tiers full type
updateSubscription
billing.updateSubscription
Switch the paid subscription to another tier or interval (charges or prorates)
Risk: destructive
Output
Emails
add
emails.add
Add an email address to the account and send it a verification link
Risk: destructive
Output
delete
emails.delete
Remove an email address from the account
Risk: destructive
Output
resendVerification
emails.resendVerification
Send the verification link for a pending email address again
Risk: destructive
Output
setPrimary
emails.setPrimary
Make a verified email address the primary one
Risk: write
Output
verify
emails.verify
Confirm an email address with the token from its verification link
Risk: write
Output
Files
download
files.download
Download a message attachment stored on the server (/file/{id}) and return the file
Risk: read
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
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
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
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
messages full type
messages full type
send
messages.send
Publish a notification to a topic; every subscriber gets a push, so the send cannot be undone
Risk: destructive · Irreversible
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.
actions full type
actions full type
actions full type
actions full type
attachment full type
attachment full type
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
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
actions full type
actions full type
attachment full type
attachment full type
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
Publishes with
sequence_id set. The server keeps both versions and every subscriber is notified again.
actions full type
actions full type
actions full type
actions full type
attachment full type
attachment full type
Phone Numbers
add
phoneNumbers.add
Add a phone number to the account with the code it received
Risk: write
Output
delete
phoneNumbers.delete
Remove a verified phone number from the account
Risk: destructive
Output
sendVerification
phoneNumbers.sendVerification
Send a verification code to a phone number by SMS or call (needs a tier with calls)
Risk: destructive
Output
Reservations
add
reservations.add
Reserve a topic for the account and set what everyone else may do on it
Risk: write
Output
delete
reservations.delete
Release a reserved topic, optionally deleting its cached messages
Risk: destructive
Output
Server
config
server.config
Read the server feature flags: login, signup, payments, calls, emails, reservations, web push
Risk: read
health
server.health
Read server health (healthy flag and role)
Risk: read
metrics
server.metrics
Read Prometheus metrics as text (servers with metrics enabled)
Risk: read
ready
server.ready
Read whether the server is ready for traffic (load balancer check)
Risk: read
stats
server.stats
Read server-wide totals: message count and rate per second
Risk: read
version
server.version
Read the server version, commit and build date
Risk: read
Subscriptions
add
subscriptions.add
Add a topic subscription to the account (synced to the web app and phone apps)
Risk: write
Output
delete
subscriptions.delete
Remove a synced topic subscription from the account
Risk: write
Output
update
subscriptions.update
Change a synced subscription’s display name
Risk: write
Output
Tiers
create
tiers.create
Admin: create a tier with message, email, call, reservation and attachment limits
Risk: write
Output
delete
tiers.delete
Admin: delete a tier that no user is on
Risk: destructive · Irreversible
Output
list
tiers.list
Admin: list tiers with their limits and user counts
Risk: read
tiers full type
tiers full type
update
tiers.update
Admin: change a tier’s limits
Risk: write
Output
Tokens
create
tokens.create
Create an access token for the signed-in account (returned once, tk_…)
Risk: write
Output
delete
tokens.delete
Revoke an access token (the given one, or the one making the call)
Risk: destructive · Irreversible
Without
token, revokes the token the call is made with.
Output
update
tokens.update
Change an access token’s label or expiry
Risk: write
Output
Topics
checkAuth
topics.checkAuth
Check that the credential may read the topic(s); 200 with success true, 401/403 otherwise
Risk: read
Output
Users
create
users.create
Admin: create a user with a password or bcrypt hash and an optional tier
Risk: write
Output
createToken
users.createToken
Admin: create an access token for a user (returned once)
Risk: write
Output
delete
users.delete
Admin: delete a user and their tokens and grants
Risk: destructive · Irreversible
Output
deleteToken
users.deleteToken
Admin: revoke one of a user’s access tokens
Risk: destructive · Irreversible
Output
grantAccess
users.grantAccess
Admin: grant a user (or ”*” everyone) read/write/deny access to a topic or pattern
Risk: write
Output
list
users.list
Admin: list users (or one by username) with role, tier and topic grants
Risk: read
Output
users full type
users full type
listTokens
users.listTokens
Admin: list a user’s access tokens
Risk: read
Output
tokens full type
tokens full type
resetAccess
users.resetAccess
Admin: remove a user’s topic grants (one topic or all)
Risk: destructive
Output
resetPassword
users.resetPassword
Admin: make a password reset link for a user, optionally emailing it
Risk: destructive
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
Output
Web Push
subscribe
webPush.subscribe
Register or update a browser push subscription for topics
Risk: write
Output
unsubscribe
webPush.unsubscribe
Remove a browser push subscription
Risk: write
Output