How sessions work
When you sign in at prixo.ai, a secure HttpOnly session cookie is set in your browser. This cookie is sent automatically on every subsequent request from the same browser, including calls to the PRIXO API. Your session is refreshed on each request, so you rarely need to re-authenticate. For programmatic access outside a browser, you must first sign in through the web interface, copy your session cookie, and include it manually in your HTTP requests.Sign-in methods
PRIXO supports two ways to authenticate:- Phone OTP — Enter your Saudi phone number on the sign-in page and verify with the one-time passcode sent to you.
- Google OAuth — Click “Continue with Google” on the sign-in page and complete the Google sign-in flow. Your session is established automatically on return.
Making authenticated requests
Once you have a session cookie, include it in theCookie header of your requests. The example below shows how to call the search endpoint from the command line after signing in through the browser:
YOUR_SESSION_COOKIE with the full cookie string from your browser’s DevTools (Application → Cookies → prixo.ai).
Public vs. authenticated endpoints
Not every endpoint requires a session. Here is a quick reference:
Public endpoints are read-only. You can call them freely without a session cookie to explore restaurants, compare prices, and browse trending queries.
Unauthorized responses
If you call an authenticated endpoint without a valid session, the API returns:/login depending on the request context. Re-authenticate through the web interface to obtain a fresh session cookie.
Session lifetime
Session management is fully automatic when you use PRIXO from a browser. Your session is refreshed on every request, so you stay signed in as long as you are active. For scripted access, refresh your cookie if you receive a401 response — this means your session has expired and you need to sign in again.
PRIXO does not currently offer developer API keys or OAuth tokens for third-party integrations. The API is designed for browser-based usage. If you need server-to-server access, use a session cookie obtained from a signed-in browser session.