v2
admin
copilot
admin

Get User Rate Limit Tier

Get a user's current rate-limit tier. Admin-only.

Returns 404 if the user does not exist in the database.

get/api/copilot/admin/rate_limit/tier

Query parameters

user_idstring required

Response

Successful Response

user_idstring required
tier'NO_TIER' | 'TRIAL' | 'BASIC' | 'PRO' | 'MAX' | 'BUSINESS' | 'ENTERPRISE' required

Subscription tiers with increasing cost allowances.

Mirrors the SubscriptionTier enum in schema.prisma. Once prisma generate is run, this can be replaced with::

from prisma.enums import SubscriptionTier

Changes

Changed in 1 of the 165 revisions of this API.1

    • ●

      added the new TRIAL enum value to the response property for the response status

      response-property-enum-value-added