quota_limits
quota_limits

Get a team's quota-limit state

Return the current quota-limit state for the team identified in the URL, keyed by QuotaResource value. Used by the LLM gateway to gate billable products on AI credits exhaustion.

get/api/projects/{project_id}/quota_limits/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/quota_limits/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Response

limitedobject required

Per-resource limit state for every QuotaResource value, e.g. ai_credits, posthog_code_credits. Also carries the informational Desktop component resources (posthog_code_token_credits, sandbox_compute_credits, sandbox_compute_cpu_millicore_seconds, sandbox_compute_memory_mib_seconds) with usage in their native units, a null limit, and limited always false — they are never quota-enforced; only the combined posthog_code_credits is.

code_usage_billing_activeboolean required

Whether the team's organization pays for PostHog Desktop usage: billing grants the posthog_code_usage product feature only on the Desktop usage product's paid plan, synced into the organization's available features. Consumers gate paid-tier Desktop behavior on this; an org unknown to billing reads as not paying. Always false for deactivated organizations.

Changes

No recorded changes to this operation across all 1 revision of this API.