How it works
When you sign in at onyxiq.in/login, a session cookie namedsb-[project-ref]-auth-token is set in your browser. The API reads this cookie on every request to verify your identity and check your credit balance.
In the browser, the cookie is attached automatically to same-origin requests — no extra steps required.
In cURL or scripts, you must copy the cookie value from your browser and pass it with each request.
Getting the cookie for cURL
1
Sign in
Go to onyxiq.in/login and complete sign-in.
2
Open DevTools
Open your browser’s DevTools (F12), go to Application → Cookies, and select
https://onyxiq.in.3
Copy the cookie value
Find the cookie named
sb-[ref]-auth-token and copy its value.4
Pass it in your request
Add the cookie to your request using the
-H "Cookie: ..." header (see example below).Example request
[ref] with the project ref in the cookie name you copied (e.g. sb-abcdefgh-auth-token) and [token] with the full cookie value.
