graphlife Docs graphlife.app

Accounts and access

4. Rate limits and fixed limits

Rate limits are held in the server's memory and reset when the process restarts. The per-route limits below are fixed; the per-account and per-credential allowances for graph calls can be changed by the operator (section 13). A refused request answers 429 rate_limited with a Retry-After header and the same number of seconds in error.retryAfter. Limits "per client address" use the connecting IP address, or the right-most entry of X-Forwarded-For when TRUST_PROXY=true is set. If the server runs behind a reverse proxy or load balancer and TRUST_PROXY is not set to true, every request appears to come from the proxy and all clients share one bucket.

Route Limit
POST/v1/accounts/signup 10 per 15 minutes per client address
POST/v1/accounts/login 10 per 15 minutes per client address
POST/v1/accounts/me/export 1 per 24 hours per account
POST/oauth/register 20 per hour per client address
POST/oauth/authorize (sign-in and consent form) 30 per 15 minutes per client address
POST/oauth/token 120 per 15 minutes per client address
POST/oauth/revoke 120 per 15 minutes per client address
POST/v1/sso/device 30 per 15 minutes per client address
GET/v1/sso/start (OAuth sign-in link) 30 per 15 minutes per client address
GET/v1/sso/callback 60 per 15 minutes per client address
Graph calls made with a session token on POST /v1/live, POST /v1/live/{tool}, GET /v1/live/tools or POST /v1/live/mcp 20 per second per account, burst of 60, shared by all of the account's sessions (default)
Graph calls made with an API key or OAuth access token on the same endpoints 100 per second per key or token, burst of 1,000 (default)

API keys and OAuth tokens are not subject to the per-account session limit; each has its own allowance. Some integration routes have limits of their own (export, extraction, webhook tests, asking a question); they are listed under Rate limits in the integration API chapter. POST /v1/accounts/token/refresh, POST /v1/accounts/password and POST /v1/sso/device/poll are not rate limited.

Fixed limits in this area:

Limit Value
Minimum password length (as submitted) 8 characters
Session access token lifetime 1 hour
Session refresh token lifetime 30 days
SSO session maximum age before a new sign-in is required 24 hours by default (SSO_SESSION_HOURS)
OAuth authorization code lifetime 5 minutes, single use
OAuth access token lifetime 30 days
OAuth redirect URIs per client 10
API key expiry, when set After now and at most 10 years ahead
Overlap of a rotated API key's previous secret 0 seconds to 7 days
SSO flow lifetime 10 minutes, single use
Organisation invite lifetime 7 days
Organisations one account may own 3
Organisations one account may create per calendar month (UTC) 5
Graphs per organisation 100
Organisation name / graph label length 1 to 120 characters
Audit retention an organisation may set 30 to 3650 days
Audit page size 1 to 500 events (default 100)
Account deletion grace period 72 hours
Maximum request body about 66.7 MiB (roughly 70 MB)