Skip to content

Error Codes

All errors return a JSON body with a detail field explaining the issue.

{ "detail": "Invalid API key" }
CodeMeaningCommon Cause
200OKRequest succeeded
400Bad RequestMissing required parameter, invalid wallet address
401UnauthorizedMissing or invalid X-API-Key on a Pro-only endpoint
422Unprocessable EntityParameter validation failed (e.g. limit out of range)
429Too Many RequestsRate limit exceeded
500Internal Server ErrorUpstream data source unavailable
503Service UnavailableServer overloaded or in maintenance

When you exceed the rate limit, the response body will include:

{ "detail": "Rate limit exceeded. Try again in 60 seconds." }
TierLimit
Free (Anonymous)100 requests / hour (per IP)
Pro10,000 requests / hour (per API key)

Rate limits reset on a rolling 1-hour window.


Endpoints that require a Pro key return 401 if:

  • The X-API-Key header is missing
  • The key is invalid or expired
  • The key doesn’t have Pro tier access

Affected endpoints: /prediction/elon, /signals/elon, /portfolio/elon


The /meta/elon/tweets endpoint accepts limit and offset query parameters for Pro users. Invalid values produce a 422:

Terminal window
# This will 422 — limit max is 100
curl -H "X-API-Key: ps_pro_..." \
"https://polystrike.xyz/api/v1/meta/elon/tweets?limit=500"

Valid ranges:

  • limit: 1–100 (Pro only; free tier is fixed at 15)
  • offset: 0 or any non-negative integer

A 200 response with "data": [] means there are no active Elon tweet markets right now. This is normal between events. Check back when a new market opens on Polymarket.