Skip to main content
GET
Get model activity

Authorizations

Authorization
string
header
required

Create an API key in the console. Required when accounts are enabled.

Path Parameters

model_id
string
required

Query Parameters

days
integer
default:30
Required range: 1 <= x <= 90

Response

Successful Response

How callers used a model: its calls by day, through its family or by its number.

model
string
required

The model by its number, such as router@4.

days
integer
required
start
string
required
end
string
required
requests
integer
required

Calls in the period that asked for it and it answered.

fallbacks
integer
required

Calls in the period that asked for it and another model answered, while it couldn't.

first_call_at
number | null
required

When it first answered a call that asked for it, or null.

last_call_at
number | null
required

When it last answered a call that asked for it, or null.

last_call_via
enum<string> | null
required

Whether that last call named its family or the model itself.

Available options:
family,
model
daily
ModelActivityDay · object[]
required
kept_warm
KeptWarm · object[]
required

The stretches it was kept warm, through its own keep warm or its family's, as keep warm billed them in the period, oldest first. Empty where keep warm is free.