---
title: "Get group credits limits"
method: GET
path: "/api/v0/organization/usage/limits/groups"
tags: ["Organization"]
---

# Get group credits limits

`GET /api/v0/organization/usage/limits/groups`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/organization/usage/limits/groups`
- Auth: HTTP bearer

Returns the directory-group credits limits mapped for the organization. Each mapping applies the mapped limit to every synced member of the group, between their individual override and the global limit. Members of several mapped groups get the highest mapped limit.

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- GetGroupLimits200ResponseBody
  - `groupLimits` object[], required: Directory groups with mapped credits limits
    - `groupId` string, required: Stable WorkOS directory group id. Rename-proof: renaming the group in your identity provider never changes this id, so the mapping survives.
    - `name` string, nullable, required: Directory group display name from the IdP, or null when the group is no longer present in the synced directory
    - `limit` integer, nullable, required: Credits limit mapped to this group, or null if no limit is mapped

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-14** `9fb2e1b1ec61`: 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
  - the `groupLimits/items/groupId` response's property pattern `^[A-Za-z0-9_-]{1,256}$` was removed for the status `200`
- **2026-11-12** `b6a46c415079`: 16 info
  - added the new optional `header` request parameter `X-Factory-Org-Id`
  - added the non-success response with the status `402`
  - added the non-success response with the status `451`
  - added the non-success response with the status `503`
  - …12 more
- **2026-10-09** `05f8b3340ba5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/organization/usage/limits/groups/get.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
