96 lines
4.1 KiB
Markdown
96 lines
4.1 KiB
Markdown
# OmniRush.ai — reversed API notes
|
||
|
||
Extracted from site bundles: `omnirush-api-BCDm5SzM.js`, `registration-LBv3GV6_.js`,
|
||
`console-auth-Bd6xK1Ee.js`, `button-DFWc89vJ.js`.
|
||
|
||
## Endpoint table
|
||
|
||
| Method | Path | Auth | Purpose |
|
||
|---|---|---|---|
|
||
| GET | `/omnirush/registration/options` | – | captcha config, allowed domains, consent version, approval mode |
|
||
| GET | `/omnirush/auth/check?email=` | – | email availability |
|
||
| POST | `/omnirush/register/start` | – | magic-link signup (no password) |
|
||
| POST | `/omnirush/register/password` | – | password signup (the one used here) |
|
||
| POST | `/omnirush/register` | session | signed-in flow only → `session_required` if anonymous |
|
||
| POST | `/omnirush/me/verify-email` | session | submit 6-digit code |
|
||
| POST | `/omnirush/me/verify-email/resend` | session | resend code (empty body) |
|
||
| GET | `/omnirush/me` | session | profile: `approval_state`, `email_verified` |
|
||
| POST | `/omnirush/auth/password` | – | login `{email, password}` |
|
||
| POST | `/omnirush/auth/magic-link` | – | send magic link `{email, redirect_path}` |
|
||
| POST | `/omnirush/auth/exchange` | – | magic-link token → session `{token}` |
|
||
| GET | `/omnirush/activate/status` | – | activation status |
|
||
| POST | `/omnirush/activate` | – | `{token}` from invite/activation email |
|
||
| GET | `/omnirush/auth/discord` | – | Discord SSO start (hCaptcha Enterprise on Discord side) |
|
||
| GET | `/omnirush/auth/discord/callback` | – | Discord SSO callback |
|
||
|
||
## Signup payload (`/omnirush/register/password`)
|
||
|
||
```json
|
||
{
|
||
"email": "user@allowed-domain",
|
||
"display_name": "Max Bauer",
|
||
"domain": "devops-sre",
|
||
"occupation": "Backend developer",
|
||
"referral_source": "search",
|
||
"consent_version": "2026-10-07",
|
||
"accept_consent": true,
|
||
"password": "...",
|
||
"captcha_token": "<recaptcha v3 token, action=signup>"
|
||
}
|
||
```
|
||
|
||
- Optional header: `X-OmniRush-Client-Signals: ch=windows&gl=d3d11&font=segoe&touch=0`
|
||
(client fingerprint hint; requests pass without it too).
|
||
- Optional fields: `redirect_path`, `referral_code`.
|
||
- `password_confirm` is client-side only (stripped by the payload builder `KS`).
|
||
- Response 200: `{expires_at, redirect_path, consent_required}` + session cookie (~30 days).
|
||
|
||
## Error codes seen
|
||
|
||
| Code | Meaning |
|
||
|---|---|
|
||
| `session_required` | endpoint needs a logged-in session (e.g. `/omnirush/register` anonymously) |
|
||
| `captcha_failed` | token invalid/expired or wrong `action` (must be `signup`) |
|
||
| `email_domain_not_allowed` | mailbox domain not in allowed list |
|
||
| `signups_paused` | registration closed |
|
||
| `consent_version_outdated` | send current `consent_version` from options |
|
||
|
||
## reCAPTCHA v3 specifics
|
||
|
||
- sitekey `6LcwStMtAAAAAIIYIMlD3G53LRtZcxUE3_BZumMc`, action `signup`, invisible.
|
||
- 2captcha `userrecaptcha` + `version=v3`, ~$0.003/solve, token in ~7 s (rare 60 s).
|
||
- Server verifies score/action via siteverify → tokens with wrong action are rejected
|
||
even though they are structurally valid.
|
||
- Token TTL ~120 s: solve → register immediately (script retries once on `captcha_failed`).
|
||
|
||
## Approval / activation gate
|
||
|
||
`auto_approve: false` — every new account is `pending` human review, and
|
||
`/omnirush/me` shows `waiting: {reason: "needs_link", link_options: ["discord","github"]}`
|
||
with `model_access: false` until a Discord or GitHub account is linked
|
||
(min age 1 day for activation; 30 days + ≥1 public repo for the 5M/day boost).
|
||
|
||
Fresh-account usage (from `/omnirush/me`):
|
||
|
||
```json
|
||
{"usage": {
|
||
"token_limit": 500000, "period": "day", "grant_model": "daily",
|
||
"week": {"limit": 15000000},
|
||
"new_account": {"discord_daily": 5000000, "github_daily": 5000000, "week_cap": 15000000}
|
||
}}
|
||
```
|
||
|
||
Login while pending works: `POST /omnirush/auth/password {email, password}` → 200 + session.
|
||
|
||
## Models
|
||
|
||
| id | display | notes |
|
||
|---|---|---|
|
||
| `gpt-6-astra` | GPT 6 Astra | default, reasoning `low/high/xhigh/max` |
|
||
| `gpt-5.6-sol` | GPT-5.6 Sol | reasoning `low/high/xhigh/max` |
|
||
| `meta-muse-spark`, `muse-spark-1.1/1.2/1.3` | Meta Muse | family "Meta Muse" |
|
||
|
||
No web chat (`web_chat: false`); desktop clients for macOS / Linux / WSL at
|
||
`/omnirush/download/<platform>`. The platform QC-judges uploaded coding-session traces
|
||
(`quality.tier`, spins, leaderboard).
|