Deutsch
cURL
curl --request POST \ --url https://api.langdock.com/export/models \ --header 'Authorization: Bearer <token>' \ --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": "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" } } }
API-Endpunkt zum Exportieren von KI-Modell-Nutzungsdaten einschließlich Token-Verbrauch, Kosten und Antwortzeiten
API key as Bearer token. Format "Bearer YOUR_API_KEY"
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
End date and timezone for the export
Export successful
Successful response from usage export endpoints
Indicates if the export was successful
true
Export data information
War diese Seite hilfreich?