Skip to main content
The ExportsResource provides methods to create, list, and retrieve data exports from projects or datasets.

List exports

Retrieve a paginated list of all exports.
const response = await avala.exports.list({
  limit: 50
});

Parameters

limit
number
Maximum number of results to return
cursor
string
Cursor for pagination

Returns

items
Export[]
Array of export objects
nextCursor
string | null
Cursor for the next page of results
previousCursor
string | null
Cursor for the previous page of results
hasMore
boolean
Whether there are more results available

Create an export

Create a new export for a project or dataset.
const exportJob = await avala.exports.create({
  project: "project_uid"
});

Parameters

project
string
The UID of the project to export
dataset
string
The UID of the dataset to export

Returns

uid
string
The unique identifier for the export
status
string | null
The current status of the export (e.g., “pending”, “processing”, “completed”)
downloadUrl
string | null
The URL to download the export file once completed
createdAt
string | null
The timestamp when the export was created
updatedAt
string | null
The timestamp when the export was last updated

Get an export

Retrieve a specific export by its unique identifier.
const exportJob = await avala.exports.get("export_uid");

Parameters

uid
string
required
The unique identifier of the export

Returns

Returns an Export object with the same fields as the create response.

Build docs developers (and LLMs) love