Files

118 lines
4.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# API map — Proximus (proximus.sh / api.proximus.sh)
Reverse engineered 31 Oct 2026 from the public site and its Next.js chunks.
Everything below was verified with live requests; statuses quoted are the ones
actually observed.
## Web (proximus.sh)
| Endpoint | Method | Auth | Notes |
|---|---|---|---|
| `/api/csrf` | GET | none | sets cookie `proximus-csrf`, returns `{"ok":true,"csrfToken":"<32B>"}`. Same value in both places, `Max-Age=28800`, `SameSite=strict`, `Secure`. |
| `/api/contact` | POST | `x-csrf-token` header + cookie | the grant/contact form |
| `/api/waitinglist` | POST | `x-csrf-token` header + cookie | waiting-list intake |
| `/api/auth/sign-up` | POST | `x-csrf-token` | early-access signup (server action; 405 on GET) |
| `/api/proximus.sh/v1/*` | — | Bearer | see below, different host |
### POST /api/contact
```json
{
"name": "Elena Marchetti",
"email": "someone@example.com",
"organization": "Northwind Payment Security",
"reason": "Partnership",
"message": "Applying for a Proxy Grants allocation ...",
"website": "",
"requestId": "b7d3f0a2-1c1f-4f6f-9d1a-7a2f0f1c9a11"
}
```
Rules that are enforced (all confirmed by error responses):
- `requestId`: must parse as a UUID, otherwise `400 {"ok":false,"error":"Invalid UUID"}`.
- `website`: honeypot field. Present and empty. (Server-side behaviour for a
filled value is not published; do not test it on someone else's site.)
- `reason` enum: `Product and early access`, `Enterprise and self-hosting`,
`Partnership`, `Security research`, `Security review`, `Other`.
- `name` <= 120 chars, `email` <= 254, `organization` <= 160, `message` <= 4000.
Success: `200 {"ok":true,"copySent":true}` — the site also mails a copy to the
address you submitted, so the address must be one you can read.
Failure modes observed:
| Status | Body | Meaning |
|---|---|---|
| 200 | `{"ok":true,"copySent":true}` | stored + copy mailed |
| 200 | `{"ok":true,"copySent":false}` | stored, copy mail failed |
| 400 | `{"ok":false,"error":"Invalid UUID"}` | bad `requestId` |
| 429 | `{"errorCode":"common.rate_limited"}` | over the per-subnet window |
| 503 | `{"ok":false,"error":"Your message could not be sent..."}` | their transactional mail is down |
Headers on every response: `x-ratelimit-limit: 3`, `x-ratelimit-remaining`,
`x-ratelimit-reset` (seconds). The window is ~600 s and the counter did **not**
reset when rotating IPv6 addresses inside one /64 — treat it as per subnet.
### POST /api/waitinglist
```json
{
"name": "…", "email": "…", "kind": "company",
"organization": "…", "role": "Security Engineer",
"teamSize": "2-10", // 1 | 2-10 | 11-50 | 51-200 | 201+
"interests": ["pentesting", "load-testing", "proxy-ai", "compute",
"transaction-api", "website-scans"],
"useCase": "…", // 10..2000 chars, required
"consent": true,
"website": ""
}
```
Success: `200 {"ok":true}`. The waiting-list reference/access code is delivered
by email — while the site's mail provider is broken, entries are stored but no
code ever arrives and `/api/auth/sign-up` stays unreachable.
## Customer API (api.proximus.sh)
`GET /` → `{"service":"Proximus API","base_url":"https://api.proximus.sh","version":"v1",
"documentation":"https://www.proximus.sh/documentation","authentication":"Bearer API key"}`
Every route without a key:
```
401 {"ok":false,"errorCode":"common.unauthorized","title":"API key required",
"error":"Provide an active API key in the Authorization: Bearer ***","status":401}
```
| Route | Method | Scope (from docs) |
|---|---|---|
| `/v1/review/action` | POST | `review:write` |
| `/v1/policy/evaluate` | POST | `policy:evaluate` |
| `/v1/web/session` | POST | `web:write` |
| `/v1/reviews/{request_id}` | GET | `reviews:read` |
| `/v1/integrations/{id}/events` | POST | `monitor:write` |
| `/v1/evidence/commit` | POST | `evidence:write` |
| `/v1/evidence/{id}` | GET | `evidence:read` |
| `/v1/graph/query` | GET | `graph:read` |
| `/v1/compute/catalog` | GET | security-compute catalogue |
Keys are issued in the dashboard only: no public signup, no sandbox key.
## Billing shape (from /pricing)
- 1 credit = $0.10 base. Packages: 10 000 = $950, 25 000 = $2 250,
50 000 = $4 250 (−5/−10/−15 %). Minimum 100 credits ($10).
- Paid in USDC or SOL on Solana; network fees separate.
- Credits meter: dashboard API reviews (1 review = 1 credit), pentesting
compute, load tests, model chat.
- Transaction-security API is billed to end users (0.005–0.5 % of the payment),
no subscription.
- Proxy Grants: $5 000–$15 000 in credits for fintech-security teams at Solana
and Hyperliquid hackathons; application = the contact form.
## What is deliberately not in this repo
No captcha bypass (there is no captcha on these routes today), no email
verification bypass, no key derivation: the dashboard issues keys, and a key
cannot be computed from an account id.