Skip to navigation

Get the rate limits

The rate limits of the caller, for each minute. A workspace key gets the numbers of its workspace and of the key; it ignores Rasen-Workspace. An organisation key with Rasen-Workspace gets the numbers of that workspace and of the key in it. The workspace must be in the key’s workspace list. An empty or malformed value is 400 invalid_request with details.field Rasen-Workspace. A workspace outside the key’s organisation or list is the hidden 404 not_found. An organisation key without Rasen-Workspace gets the numbers of its organisation and does not need the organisation operations option. Before the plan switch is on, tier is standard; in announced, pending holds the plan numbers and their start date. After that start date passes, until Rasen turns the switch on, the standard numbers still apply and pending is null. When the switch is on, tier is the plan code and pending holds a later limit version with its date, or null. Counted as a read of the workspace and the key, or as an organisation read. Needs usage.read.

Authentication

AuthorizationBearer

An organisation-owned key whose secret starts ra_org_. The Owner or an Admin of an organisation that Rasen has invited makes it in the app; no API operation makes, changes, rotates or revokes a key. On a workspace operation send the workspace ID in the Rasen-Workspace header; without it the answer is 400 invalid_request with details.field Rasen-Workspace. A workspace outside the organisation or outside the key’s workspace list is 404 not_found. An organisation that is not invited gets 403 organisation_api_not_enabled.

Headers

Rasen-WorkspacestringOptional

The workspace of this operation, for an organisation key only, and then required. A workspace key ignores it and always acts in its own workspace. A missing, empty or malformed value with an organisation key is 400 invalid_request with details.field Rasen-Workspace; a workspace outside the key’s organisation or workspace list is the hidden 404 not_found.

Response headers

X-Request-IdstringOptional
Safe server request correlation ID.
RateLimit-LimitintegerOptional
Requests allowed in the current window for the tightest applicable limit.
RateLimit-RemainingintegerOptional
Requests left in the current window.
RateLimit-ResetintegerOptional
Seconds until the current window resets.

Response

The rate limits.
tierstring

standard, or the plan code whose numbers apply now (flex is Pay as you go). Open response vocabulary. Preserve unknown values.

switchstring

The plan switch. off: the standard numbers. announced: the standard numbers, and pending holds the plan numbers until their start date; after it, until Rasen turns the switch on, pending is null. on: the plan numbers. Open response vocabulary.

scopestring

workspace: the numbers of one workspace and of the key in it. organisation: the numbers of the organisation of an organisation key. Open response vocabulary.

activeobject
The numbers that are enforced now.
pendingobject or null

Null, or the numbers that will be enforced, with effective_at.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error