/api/v1/ and return JSON. This page covers the conventions that apply to every request you make.
Base URLs
| Environment | Base URL |
|---|---|
| Production | https://api.predexy.com |
| Staging | https://staging-api.predexy.com |
API version
The current version is 1.0.0. Every endpoint path begins with/api/v1/. The two health endpoints — GET /health and GET /ready — sit at the root with no version prefix.
Request format
SetContent-Type: application/json on all requests that include a body. Query parameters are accepted as standard URL-encoded key-value pairs.
Authentication
Predexy supports three authentication methods depending on the endpoint group:| Method | Credential | Used for |
|---|---|---|
| Session JWT | Authorization: Bearer <jwt> or pdx_access cookie | Web app, discovery, arbitrage, watchlists, alerts, wallet tracker, console |
| SIWE session | predex_siwe cookie | Wallet-connected product routes |
| API key | X-API-Key: pdx_... header | External arbitrage endpoint for trading bots and paid integrations |
Health endpoints
Two liveness probes are available with no authentication required:GET /health— returns200 OKwhen the API server process is running.GET /ready— returns200 OKwhen the database and dependencies are reachable.
Response envelope
Successful responses wrap the payload in adata key. List endpoints additionally include a meta object with pagination details:
data as an object rather than an array. Some endpoints include additional top-level keys (for example, tokens on auth responses).
Error envelope
All errors follow the same shape:INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, RATE_LIMITED, INTERNAL_ERROR, INVALID_API_KEY, and QUOTA_EXCEEDED. See Error reference for the full list.
Pagination
List endpoints acceptlimit and offset query parameters and return pagination state in meta:
Maximum items to return per page. Range 1–200.
Number of items to skip. Use this to page through results.
Rate limits
All responses include rate-limit headers:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per window |
X-RateLimit-Remaining | Requests remaining in the current window |
X-RateLimit-Reset | Unix timestamp when the window resets |
| Tier | Requests / min | Burst |
|---|---|---|
| Product read (unauthenticated) | 120 | 40 |
| Authenticated session | 60 | 20 |
| API key | 600 | 50 |
Key sections
Markets & Discovery
Browse canonical questions with index prices, divergence metrics, and platform slugs.
Arbitrage
Scored arbitrage opportunities with session auth or API key access.
Account
Register, log in, manage watchlists, set price alerts, and track wallet positions.
Console
Create and revoke API keys, and inspect usage statistics and request logs.
