# Download an organization's events record as JSON lines

`GET /v1/accounts/{account_id}/events:export`

Every event the organization's record holds, in record order: its
workspaces' (deleted ones included), as the Events API returns them, one
per line. Events past the organization's
retention window are not in the record and not in the download.

The download is the record as of the request. A download that breaks
partway ends without its final chunk, never as a shorter file that looks
whole: retry it.

- Base URL: `https://junction-api.qualiastudios.dev`
- Authentication: an API key in the `X-API-Key` header, or `Authorization: Bearer …`

## Parameters

- `account_id` (path, string, required): The organization's UUID, or `-` for the API key's own
- `start_time` (query, string | null): RFC 3339; events created at or after it
- `end_time` (query, string | null): RFC 3339; events created before it

## Responses

- `200` One qualia.v1 Event as protojson per line, oldest first. Personal data: member events carry usernames and emails.: `application/jsonl` `string`
- `401` Invalid or missing credentials: `application/json` `ErrorResponse`
- `403` Not an admin of the organization
- `422` A malformed or empty time range
- `503` The events record is unavailable

## Schemas

```yaml
ErrorResponse:
  properties:
    detail:
      type: string
      description: Error message describing what went wrong
  type: object
  required:
    - detail
  title: ErrorResponse
  description: Standard error response.
```
