GET/organization/projects/{project_id}/rate_limits

List rate limits for a project

Lists the rate limits configured for a project, with each result describing limits for a model. Use limit to set the number of results and after or before to navigate the list using cursors.

4 parameters
project_idstringrequired
The ID of the project.
limitintegeroptional
Maximum number of rate limit objects to return. Defaults to 100 when omitted.
Default:100
afterstringoptional
Object ID cursor that starts the list after the specified object.
beforestringoptional
Object ID cursor that returns the list before the specified object.

4 status codes
200Returns a list of project rate limit objects with pagination metadata, including the first and last object IDs and whether more results are available.
objectstringrequired
Allowed:list
dataarray<object>required
first_idstringoptional
last_idstringoptional
has_morebooleanrequired
400Returned when the rate limit listing parameters are invalid.
errorobjectrequired
403Returned when the caller does not have permission to perform this operation.
errorobjectrequired
Details about the permission error.
404Returned when the project or pagination cursor was not found.

One documented failure

  • project_not_found

    The project proj_abc was not found

errorobjectrequired

Error handling

A 400 is returned when the listing parameters are invalid. A 403 is returned when the caller lacks permission, and a 404 when the project or pagination cursor is not found. The project_id path parameter identifies the project; use the after and before query parameters as cursors for the list.