# expirable_file.available

An ExpirableFile is available to download.

## Payload schema

- `object`
  - `api_version` (`any`)
  - `context` (`object`) - Present only when `source` is `api`. Identifies the acting project and API key.
    - `developer_platform_api_key_id` (`string | null`) - format: `uuid`
    - `developer_platform_project_id` (`string | null`) - format: `uuid`
  - `created_at` (`string`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
  - `data` (`object`)
    - `object` (`object`)
      - `attachment_url` (`string | null`) - format: `uri`; The temporary signed download URL, or null while Carebit generates the file and download URL.
      - `created_at` (`string`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
      - `expires_at` (`string`) - format: `date-time`; The time after which Carebit can delete the file.
      - `id` (`string`) - format: `uuid`; The resource's unique identifier, formatted as an RFC 4122 version 4 UUID.
      - `object` (`any`) - Discriminator value emitted at `object`.
      - `status` (`string`) - enum: `processing`, `succeeded`; Whether Carebit is still creating the report or the file is ready to download.
      - `title` (`string`) - enum: `account_balances`, `audio_recordings`, `billing_codes`, `booked_services`, `bookings`, `bookings_summary_for_child_organizations`, `bookings_with_invoices`, `bookings_without_invoices`, `care_episodes`, `cari_credits_usage`, `credit_notes`, `creditors`, `debtors`, `debtors_per_invoice`, `end_of_year_accounts_zip`, `expenses`, `financial_summary`, `indemnity_bookings`, `indemnity_income`, `invoice_line_items`, `issued_invoices`, `issued_invoices_summary_for_child_organizations`, `leads_and_enquiries`, `patient_referrals`, `patient_registrations`, `prescriptions_report`, `product_sales_audit_log`, `product_sales_report`, `product_stock_levels_report`, `profit_and_loss`, `recall_bookings`, `received_payments`, `received_payments_for_invoice_line_items`, `received_payments_summary_for_child_organizations`, `referral_summary`, `refunds`, `remittance_adjustments`, `service_variants`, `tasks_due_per_staff_member`, `tasks_raised`; The report type used as the title of the ExpirableFile.
      - `updated_at` (`string`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
  - `developer_platform_project_id` (`string | null`) - format: `uuid`; The project ID whose credential caused the change. Null for `dashboard` events.
  - `id` (`string`) - Event identifier prefixed with `evt_`.
  - `livemode` (`boolean`) - `false` for test-event deliveries.
  - `object` (`any`)
  - `source` (`string`) - enum: `api`, `dashboard`; Origin of the change. `api` means a Developer Platform mutation; `dashboard` means a Carebit-initiated change.
  - `type` (`any`)

### Example payload

```json
{
  "id": "evt_00000000-0000-4000-8000-000000000012",
  "object": "event",
  "api_version": "v1",
  "created_at": "2026-01-01T09:00:00Z",
  "data": {
    "object": {
      "id": "00000000-0000-4000-8000-000000000019",
      "object": "expirable_file",
      "attachment_url": "https://files.example.invalid/reports/bookings.csv?signature=test",
      "created_at": "2026-01-01T09:00:00Z",
      "expires_at": "2026-01-02T09:00:00Z",
      "status": "succeeded",
      "title": "bookings",
      "updated_at": "2026-01-01T09:00:00Z"
    }
  },
  "developer_platform_project_id": null,
  "livemode": false,
  "source": "dashboard",
  "type": "expirable_file.available"
}
```
