Usage Export
Export user usage data
Changed onExport detailed usage data for all users in the workspace (subject to privacy settings)
post/export/users
Request
- Base URLhttps://api.langdock.com
- URLhttps://api.langdock.com/export/users
- AuthHTTP bearer
Request body
Example request
{
"from": {
"date": "2024-01-01T00:00:00.000Z",
"timezone": "UTC"
},
"to": {
"date": "2024-01-31T23:59:59.999Z",
"timezone": "UTC"
}
}Response
Export successful
Example response
{
"success": true,
"data": {
"filePath": "agents-usage/workspace-id/agents-usage-2024-01-01-2024-01-31-abc12345.csv",
"downloadUrl": "https://storage.example.com/signed-url",
"dataType": "assistants",
"recordCount": 1250,
"dateRange": {
"from": "2024-01-01T00:00:00.000Z",
"to": "2024-01-31T23:59:59.999Z"
}
}
}Changes
- info
endpoint added
- info