cURL
curl --request GET \ --url https://api.example.com/external/v1/external_billing_data_export
Export billing event data for invoicing and reporting
GET /external/v1/external_billing_data_export
start_date
end_date
curl -X GET "https://your-instance.firstwork.com/external/v1/external_billing_data_export?start_date=2025-01-01&end_date=2025-01-31" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "status": "success", "data": { "period": { "start": "2025-01-01T00:00:00Z", "end": "2025-01-31T23:59:59Z" }, "events": [ { "id": "event-uuid", "type": "application_created", "timestamp": "2025-01-15T10:30:00Z", "metadata": { "hiring_flow": "Software Engineer", "source": "api" } } ], "summary": { "total_events": 1250, "by_type": { "application_created": 450, "sms_sent": 320, "email_sent": 480 } } } }