Organizations API rate limits

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed
  • Status: Experiment

Version history

  • Introduced in GitLab 17.5 with a flag named allow_organization_creation. Disabled by default. This feature is an experiment.
  • Changed in GitLab 18.4. Feature flag allow_organization_creation consolidated and renamed to organization_switching.
  • Feature flag changed to org_stage_experimental in GitLab 19.4. Disabled by default. Feature flag organization_switching removed.

[!flag] The availability of this feature is controlled by a feature flag. For more information, see the history.

Requests over the rate limit are logged into the auth.log file.

For example, if you set a limit of 400 for POST /organizations, requests to the API endpoint that exceed a rate of 400 within one minute are blocked. Access to the endpoint is restored after one minute.

You can configure the per minute rate limit per user for requests to the POST /organizations API. The default is 10.

Organization user limits

The following organization user endpoints have fixed, per-minute rate limits for each authenticated user that you cannot change. The limits apply to the user making the request, not to the user being added or removed:

Endpoint Limit
GET /organizations/:id/users 120
POST /organizations/:id/users 20
PUT /organizations/:id/users/:user_id 20
DELETE /organizations/:id/users/:user_id 20

Change the rate limit

Prerequisites:

  • Administrator access.

To change the rate limit:

  1. In the upper-right corner, select Admin.
  2. In the left sidebar, select Settings > Network.
  3. Expand Organizations API rate limits.
  4. Change the value of any rate limit. The rate limits are per minute per user. To disable a rate limit, set the value to 0.
  5. Select Save changes.