/api/user/export

Export, download, and delete a data archive (export) as the current user.

Info

This endpoint requires authentication.

GET
Request

Retrieve a list of your exports, or download a specific export by its ID.

Query Parameters

NameTypeDescription
idstring(Optional) Export ID. If provided, downloads that specific export file.

Response (list exports)

Status: 200 OK

Content-Type: application/json

An array of exports:

PropertyTypeDescription
idstringUnique export ID.
userIdstringUser ID that owns this export.
pathstringRelative path of the export archive.
filesnumberNumber of files included in the export.
sizestringSize of the archive (bytes, as string).
completedbooleantrue if the export is complete and downloadable.
createdAtstringISO timestamp when the export started.
updatedAtstringISO timestamp when the export was updated.

Response (download export)

Status: 200 OK

Content-Type: application/zip

The binary data of the ZIP archive.

Error Responses

  • 404 Not Found

    The export doesn't exist

  • 400 Bad Request

    The export has not completed yet, or the ID is invalid.

POST
Request

Initiate a new export of your data.

Response

Status: 200 OK

Content-Type: application/json

PropertyTypeDescription
runningbooleantrue if export job has started.

Error Responses

  • 400 Bad Request

    There are no files to export...

DELETE
Request

Delete an export by its ID. This will delete it form the database and remove the archive file. Usually the archive file is stored in the temporary directory which may be cleaned up on restarts of a docker container.

Query Parameters

NameTypeDescription
idstringRequired. The export ID to delete.

Response

Status: 200 OK

Content-Type: application/json

PropertyTypeDescription
deletedbooleantrue if export was deleted.

Error Responses

  • 404 Not Found

    The export doesn't exist.

  • 400 Bad Request

    No export ID provided.



Last updated: 5/28/2025
Edit this page on GitHub