Get an organization usage export
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const usageExport = await client.organizations.usageExports.retrieve({ organizationId: '<organizationId>', exportId: '<exportId>',});console.log(usageExport);curl -X GET 'https://app.flora.ai/api/v1/organizations/<organizationId>/usage-exports/<exportId>' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns the status of a usage export and, once completed, its CSV download URLs. Only the user who requested an export can read it; other exports return 404. Exports are kept for seven days. Requires an organization with multiple workspaces enabled, and the credential’s user must hold billing permissions in that organization. An API key works for the organization that owns its workspace; an OAuth token works for any organization the user administers. Other organizations return 403.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Organization identifier
Organization identifier
Usage export identifier
Usage export identifier
Responses
Section titled “ Responses ”Export returned.
object
Usage export identifier
Organization identifier
Queued and running exports have no files yet; poll until completed or failed
UTC calendar day in YYYY-MM-DD form
UTC calendar day in YYYY-MM-DD form
Workspaces included in the export
When the export was requested (ms since epoch)
CSV parts to download; empty until the export completes
object
1-based part number; large exports are split
CSV filename
Direct download URL for this CSV part
Data rows in this part
Size of this part in bytes
Example
{ "export_id": "export_abc123", "organization_id": "org_abc123", "status": "queued", "start_date": "2026-08-01", "end_date": "2026-08-01"}