Authentication
Watchlists and alerts require a session JWT — either from SIWE wallet sign-in or from email/password login through the Developer Console. Pass the token as a bearer header:- SIWE (Sign-In With Ethereum): Connect your Web3 wallet at app.revalonlabs.xyz. The app handles the SIWE handshake and issues a session JWT cookie automatically.
- Email/password: Register and log in via the Developer Console or the
/api/v1/auth/loginendpoint to get a JWT.
API keys (
X-API-Key) do not grant access to watchlists or alerts. These endpoints require a user session.Watchlists
A watchlist is a named collection of markets or canonical questions. You can create as many as you need and add or remove items at any time.List your watchlists
Endpoint:GET /api/v1/watchlists
Create a watchlist
Endpoint:POST /api/v1/watchlists
The request body requires a name field.
Add a market to a watchlist
Endpoint:POST /api/v1/watchlists/{id}/items
You can add a canonical question, a specific market, or both. Pass the relevant UUID(s) in the request body:
Remove an item from a watchlist
Endpoint:DELETE /api/v1/watchlists/{watchlist-id}/items/{item-id}
Update a watchlist name
Endpoint:PATCH /api/v1/watchlists/{id}
Delete a watchlist
Endpoint:DELETE /api/v1/watchlists/{id}
Alerts
Alerts let you define a condition on a market so you’re notified when a price threshold is crossed. You associate an alert with a canonical question or a specific market, then provide atype and a condition object describing when to fire.
List your alerts
Endpoint:GET /api/v1/alerts
Create an alert
Endpoint:POST /api/v1/alerts
The request body requires:
Update an alert
Endpoint:PATCH /api/v1/alerts/{id}
You can update the type, condition, or toggle is_active to pause or resume an alert without deleting it.
Delete an alert
Endpoint:DELETE /api/v1/alerts/{id}
