APIAPI reference
Workspace spending policies
GET /v1/limits
GET /v1/limits
Signed-in session with limits:read or usage:read. All matching policies apply cumulatively.
Authorization
This operation requires a bearer credential. The description defines additional role, scope or first-party-session restrictions; an API key does not grant those permissions by itself.
Request body
No request body.
Responses
| HTTP | Details | Type |
|---|---|---|
| 200 | Successful Response | application/json: SpendLimitList |
| 401 | Unauthorized | application/problem+json: ProblemDetails |
| 403 | Forbidden | application/problem+json: ProblemDetails |
| 404 | Not Found | application/problem+json: ProblemDetails |
| 422 | Unprocessable Entity | application/problem+json: ProblemDetails |
Response: SpendLimitList
| Property | Type | Required | Details |
|---|---|---|---|
items | SpendLimit[] | yes | |
currency | string | yes | |
microusd_per_usd | integer | yes |
Full schema
{
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/SpendLimit"
},
"type": "array",
"title": "Items"
},
"currency": {
"type": "string",
"const": "USD",
"title": "Currency"
},
"microusd_per_usd": {
"type": "integer",
"const": 1000000,
"title": "Microusd Per Usd"
}
},
"type": "object",
"required": [
"items",
"currency",
"microusd_per_usd"
],
"title": "SpendLimitList"
}This page is generated from OpenAPI; examples are schemas, not a fabricated successful response.