Flags API reference

Flags API · Limits

get/v1/workspaces/{workspace_id}/limitsAuth

Get Flags limits and usage

The preview limits that apply to this workspace and how much of the counted ones it uses.

Path parameters

workspace_id*string · uuid

Id of the workspace.

Response · 200 Limits and usage.

limits*array

The preview limits. A write past one answers 422 `LIMIT_EXCEEDED`.

usage*object

Current usage of the counted limits.

Example

Request

GET https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/limits
Authorization: Bearer YOUR_TOKEN

Response

{
  "limits": [
    {
      "limit": "projects",
      "scope": "workspace",
      "max": 3
    }
  ],
  "usage": {}
}