Rate Limits

Oathe Scan API limits: 10 scans a month with no account, 200 with a free API key, 2,000 on Premium. What's limited, what's not, and how to handle 429 responses.

What Is Limited

Limits apply only to audit submissions (POST /api/submit).

RuleThreshold
Cooldown between submissions60 seconds
Scans a month without an account10
Scans a month with a free API key200
Scans a month on Premium2,000, then $0.05 a scan
Scans a month on EnterpriseUnlimited

The cooldown prevents burst submissions. The monthly count resets on the 1st of each month (UTC). Free stops at 200. Premium keeps going past 2,000. Plans are on pricing. Most workflows only need one submission at a time, followed by polling or WebSocket for results.

Get a Free API Key

No account needed for 10 scans a month. A free API key gives you 200.

Sign up with Google, GitHub or email. Then open your dashboard and press Create Key under API Keys. The key is shown once, so copy it. Your dashboard also shows how many scans you’ve used this month.

Send the key with each submission:

curl -X POST https://audit-engine.oathe.ai/api/submit \
  -H "Authorization: Bearer $OATHE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"skill_url": "https://github.com/owner/repo"}'

Premium

Premium is $30 a month for 2,000 scans, $0.05 a scan after that, and priority access to Oathe Cloud. Sign in, then press Upgrade to Premium on your dashboard. Your API keys keep working; the new limit applies straight away. Enterprise is unlimited: email [email protected].

What Is Not Limited

All read-only endpoints are unrestricted:

  • GET /api/audit/{audit_id}
  • GET /api/skill/{owner}/{repo}/latest
  • GET /api/skill/{owner}/{repo}/summary
  • GET /api/audits/search

You can poll status, fetch reports, and query summaries as frequently as needed.

Deduplicated Requests

If you submit a repository URL that is already queued or currently being audited, Oathe returns the existing audit_id instead of creating a new audit. This deduplicated response does not count against your rate limit.

{
  "audit_id": "existing-abc123",
  "status": "processing",
  "deduplicated": true
}

This means retrying a submission for the same repo is safe and free.

429 Response Format

When you submit again inside the 60-second cooldown, the API responds with HTTP 429 Too Many Requests:

{
  "statusCode": 429,
  "name": "rate_limited",
  "message": "Rate limited. Please wait before retrying."
}

The response includes a Retry-After header with the number of seconds to wait before the next allowed submission:

HTTP/1.1 429 Too Many Requests
Retry-After: 45
Content-Type: application/json

When you’ve used your 10 scans for the month without an account, the error reads “Anonymous scan limit (10/month) reached. Create a free API key for 200 scans/month.” Waiting 60 seconds won’t clear that one. Add a free API key, or wait for the start of next month.

When a free API key has used its 200 scans, the error reads “You’ve used all 200 scans for this month. Upgrade to Premium for 2,000 scans/month.” Upgrade on your dashboard, or wait for the start of next month.

Handling 429 in Code

import time
import requests

response = requests.post(
    "https://audit-engine.oathe.ai/api/submit",
    json={"skill_url": "https://github.com/owner/repo"}
)

if response.status_code == 429:
    wait = int(response.headers.get("Retry-After", 60))
    time.sleep(wait)
    response = requests.post(
        "https://audit-engine.oathe.ai/api/submit",
        json={"skill_url": "https://github.com/owner/repo"}
    )

Best Practice

Before submitting a new audit, check whether a recent result already exists:

GET https://audit-engine.oathe.ai/api/skill/{owner}/{repo}/summary

If the summary endpoint returns a current (non-stale) result, you may not need to submit at all. This avoids unnecessary submissions and keeps you well within your limits.