NotIf Documentation Pricing App

Accounts and access

No account is needed to publish to a public topic or read it. An account lets you protect your topics, create tokens for your scripts and keep your subscriptions from one device to another.

Create an account

  1. Open usenotif.com/signup.
  2. Choose a username and a password of at least 8 characters.
  3. Click "Create an account".

A username has up to 64 characters: letters, digits, and -, _, ., +, @. No email is asked for when you sign up.

For an existing account, use "Sign in". There is no automatic password reset: keep your password somewhere safe.

You can also create an account with the API:

curl -d '{"username":"marie","password":"a-long-password"}' https://usenotif.com/v1/account

Your account page

Once you are signed in, click your name in the menu.

Access tokens

A token replaces your password in your scripts. You can delete it at any time without touching your password.

In "Access tokens", enter a label, then click "Create token". This token does not expire. "Copy" copies it and "Delete" deletes it.

A token looks like tk_uqajawmzifopsbzarkiem6qzrzelx. Each account can have 60. Beyond that, the one that expires soonest is replaced.

To create a token with the API:

curl -u marie:a-long-password -d '{"label":"backup","expires":0}' https://usenotif.com/v1/account/token

expires is a Unix timestamp, and 0 means no expiry. Without this field, the token expires after 72 hours.

To delete a token:

curl -u marie:a-long-password -X DELETE https://usenotif.com/v1/account/token/tk_yourtoken

Authenticate

Three methods work, both for publishing and for subscribing.

Token (Bearer)

This is the preferred method.

curl -H "Authorization: Bearer tk_yourtoken" -d "Hello" https://usenotif.com/my-private-topic

Username and password (Basic)

curl -u marie:a-long-password -d "Hello" https://usenotif.com/my-private-topic

You can also pass a token with Basic, with an empty username. This is useful for tools that only accept a username and a password.

curl -u :tk_yourtoken -d "Hello" https://usenotif.com/my-private-topic

auth parameter

If you cannot add a header, pass the Authorization header in the address, base64-encoded without the trailing =.

AUTH=$(printf 'Bearer tk_yourtoken' | base64 | tr -d '=')
curl -d "Hello" "https://usenotif.com/my-private-topic?auth=$AUTH"

This parameter also works for /ws, /sse and /publish. Addresses often end up in logs: use a token that is easy to delete there rather than your password.

Errors

A wrong token or password, or an expired token, returns error 401, even on a public topic. Valid credentials without access rights return error 403.

Reserved topics

By default, a topic is public: anyone who knows its name can read it and publish to it. A reservation makes you the owner of the name, and you decide what others can do. A reservation requires a paid plan.

In "Reserved topics", enter the topic name, choose the access for everyone else, then click "Reserve".

Option on screen API value You Everyone else
"Only me" deny-all Read and publish No access
"Others can read" read-only Read and publish Read
"Others can publish" write-only Read and publish Publish
"Others can read and publish" read-write Read and publish Read and publish

With the API, the default access is deny-all:

curl -H "Authorization: Bearer tk_yourtoken" -d '{"topic":"my-private-topic","everyone":"deny-all"}' https://usenotif.com/v1/account/reservation

A name already reserved by someone else is refused (error 409). To change the access for everyone else, send the reservation again with another value.

A reservation gives the same rights to everyone except you. To share a topic with specific people, use a team.

To release a topic, click "Release". It becomes public again. Its messages already stored stay readable until they expire, unless you release the topic with the API using the X-Delete-Messages: true header:

curl -X DELETE -H "Authorization: Bearer tk_yourtoken" -H "X-Delete-Messages: true" https://usenotif.com/v1/account/reservation/my-private-topic

Emails and phone

In "E-mail addresses", enter your address and click "E-mail me a code". Enter the code you received, then click "Verify address". A verified address allows Email: yes when publishing and the email steps of an escalation.

In "Phone numbers", enter your number in international format, such as +15551234567, and click "Text me a code". Enter the code you received by text message, then click "Verify number". A verified number lets you receive calls and the text messages of an escalation.

Change your password

In "Password", enter the current password and the new one, then click "Change password". The new one must have at least 8 characters. Your tokens stay valid.

Delete your account

Click "Delete account" and confirm with your password. This cannot be undone. It removes your account, your tokens, your reserved topics and any team you own. It also cancels your paid plan right away. The privacy policy explains what remains after deletion and what to do if you no longer have access to the account.