Deutsch
cURL
curl --request POST \ --url https://api.langdock.com/export/assistants \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "from": { "date": "2024-01-01T00:00:00.000Z", "timezone": "UTC" }, "to": { "date": "2024-01-31T23:59:59.999Z", "timezone": "UTC" } } '
{ "success": true, "data": { "filePath": "assistants-usage/workspace-id/assistants-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" } } }
API-Endpunkt zum Exportieren von Assistenten-Nutzungsdaten einschließlich Nachrichtenzahlen, aktiven Nutzern und Trends
API key as Bearer token with USAGE_EXPORT_API scope. Format "Bearer YOUR_API_KEY"
Request body for usage export endpoints
Start date and timezone for the export
Anzeigen untergeordnete attribute
Start date in ISO 8601 format
"2024-01-01T00:00:00.000Z"
Timezone for the date range
"UTC"
End date and timezone for the export
End date in ISO 8601 format
"2024-01-31T23:59:59.999Z"
Export successful
Successful response from usage export endpoints
Indicates if the export was successful
true
Export data information
Path to the generated export file
"assistants-usage/workspace-id/assistants-usage-2024-01-01-2024-01-31-abc12345.csv"
Signed URL to download the export file
"https://storage.example.com/signed-url"
Type of data exported
assistants
users
workflows
projects
models
"assistants"
Number of records in the export
1250
Actual date range of the exported data
Start date of the export
End date of the export
War diese Seite hilfreich?