/api/v1/ai/caps (GET)
GET
/api/v1/ai/caps
const url = 'https://example.com/api/v1/ai/caps?scope=me';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/ai/caps?scope=me'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”scope
string
locationId
string format: uuid
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
caps
required
Array<object>
object
id
required
string format: uuid
scope
required
string
target
required
object
id
required
string | null
label
required
string
tokensPerMinute
number
tokensPerDay
number
tokensPerMonth
number
monthlyCap
object
amount
required
string
currency
required
string
used
required
object
tokens
required
number
cost
required
Array<object>
object
currency
required
string
amount
required
string
unknownCostCalls
required
number
notCounted
required
Array<string>
percent
required
number | null
state
required
string
pausedUntil
string
reason
string
cappedByAccount
required
boolean
rowVersion
required
number
canEdit
required
boolean
suggested
object
monthlyCap
object
amount
required
string
currency
required
string
tokensPerMonth
number
Example
{ "caps": [ { "scope": "instance", "task": "extraction", "state": "active", "reason": "manual" } ]}