/api/v1/ai/calls
GET
/api/v1/ai/calls
const url = 'https://example.com/api/v1/ai/calls?scope=me&limit=20&hasImage=true&dir=asc';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/calls?scope=me&limit=20&hasImage=true&dir=asc'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”scope
string
locationId
string format: uuid
cursor
string
limit
integer
at
string
location
Any of:
Array<string>
task
Any of:
string
Array<string>
model
Any of:
string
Array<string>
provider
Any of:
string
Array<string>
outcome
Any of:
string
Array<string>
paidBy
Any of:
string
Array<string>
hasImage
string
tokens
string
cost
string
currency
string
thing
Any of:
Array<string>
q
string
not
Any of:
string
Array<string>
dir
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
at
required
string
requestId
required
string
attempt
required
number
task
required
string
providerKind
required
string
model
required
string
location
object
id
required
string format: uuid
name
required
string
paidBy
required
object
scope
required
string
label
required
string
fellBack
required
boolean
sent
required
boolean
tokens
required
object
estimate
required
number | null
input
required
number | null
output
required
number | null
reasoning
required
number | null
cached
required
number | null
images
required
object
count
required
number
tokensEach
required
number | null
bytes
required
number | null
latencyMs
required
number | null
finishReason
required
string | null
outcome
required
string
errorCode
required
string | null
cost
object
amount
required
string
currency
required
string
source
required
string
priceVersion
required
number | null
moneyHidden
boolean
links
required
object
extractionId
string format: uuid
thingId
string format: uuid
threadId
string format: uuid
next_cursor
required
string | null
Example
{ "items": [ { "task": "extract_thing", "providerKind": "openai", "person": "background", "paidBy": { "scope": "instance" }, "outcome": "ok", "cost": { "source": "provider" }, "moneyHidden": true } ]}