Skip to main content
GET
/
v1
/
workspaces
/
{workspaceID}
/
activity
Get workspace activity
curl --request GET \
  --url https://ai.liara.ir/v1/workspaces/{workspaceID}/activity \
  --header 'Authorization: <api-key>'
[
  {
    "date": "<string>",
    "data": [
      {
        "model": "<string>",
        "total_tokens": 123,
        "total_cost_tomans": 123,
        "request_count": 123
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345"

Path Parameters

workspaceID
string
required

The workspace ID

Pattern: ^[a-f0-9]{24}$

Query Parameters

filter
enum<string>
default:day

Time filter for activity aggregation

Available options:
twoMonth,
month,
day,
hour,
week
key
string

Filter by API key name

Required string length: 3 - 15

Response

Activity data

date
string

Date of activity

data
object[]