Download an organization's events record as JSON lines
const url = 'https://example.com/v1/accounts/example/events:export';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/accounts/example/events:export \ --header 'X-API-Key: <X-API-Key>'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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The organization’s UUID, or - for the API key’s own
The organization’s UUID, or - for the API key’s own
Query Parameters
Section titled “Query Parameters ”RFC 3339; events created at or after it
RFC 3339; events created at or after it
RFC 3339; events created before it
RFC 3339; events created before it
Responses
Section titled “ Responses ”One qualia.v1 Event as protojson per line, oldest first. Personal data: member events carry usernames and emails.
Example generated
exampleInvalid or missing credentials
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Not an admin of the organization
A malformed or empty time range
The events record is unavailable