Skip to main content
WapNotify uses JWT (JSON Web Tokens) for API authentication. Tokens are signed with HS256 and expire after 7 days.

Get a token

Call the login endpoint with your workspace user credentials:
Response:
Store the token value — you’ll include it in every subsequent request.

Use the token

Add the token to the Authorization header of every request:

Token expiry

Tokens expire after 7 days. After expiry, requests return 401 Unauthorized. Call /api/auth/login again to get a new token. There is no refresh token mechanism — re-authenticate when the token expires.

Get current user info

To verify a token and retrieve the authenticated user’s details:
Response:

Error responses