The organization's newest archive
An organization that has never built an archive has no newest one; that is not an error, so it answers 204.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
The newest archive, whatever its state.
application/json- response
id*stringuuidstatus*OrganizationExportStatusbuilding, ready or failed, and expired once the seven days an archive is kept are over (it then has no
data to download).
"building""ready""failed""expired"createdAt*stringdate-timerequestedBy*stringThe id of the person who asked for the archive.
builtAt?stringWhen the build ended, finished or failed. Absent while it builds.
date-timesizeBytes?integerThe size of the zip. Absent until the archive is ready.
int64counts*error?stringWhy a build failed. Absent otherwise.
curl -X GET 'https://wardn.example.com/api/v1/organization/exports/latest'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "building", "createdAt": "2019-08-24T14:15:22Z", "requestedBy": "string", "builtAt": "2019-08-24T14:15:22Z", "sizeBytes": 0, "counts": { "snapshots": 0, "auditEntries": 0, "settingsGroups": 0 }, "error": "string"}Ask for an archive of the organization's data POST
Starts building a zip archive of the organization's audit history, snapshots with their resources and sign-offs,
One archive of the organization's data GET
`status` is `building`, `ready`, `failed`, or `expired` once its seven days are over and its data was removed.