List files
client.file.list(FileListParams { limit, offset } query?, RequestOptionsoptions?): FileListResponse { data, object, totalCount }
GET/v1/files
Returns a paginated list of files in your workspace. Use offset and limit to paginate through results. See List endpoints for more information about pagination.
Required scope: files:read
Rate limit category: Search
Parameters
Returns
List files
import Lightfield from 'lightfield';
const client = new Lightfield({
apiKey: 'My API Key',
});
const fileListResponse = await client.file.list();
console.log(fileListResponse.data);{
"data": [
{
"id": "id",
"completedAt": "completedAt",
"createdAt": "createdAt",
"expiresAt": "expiresAt",
"filename": "filename",
"mimeType": "mimeType",
"sizeBytes": -9007199254740991,
"status": "PENDING"
}
],
"object": "object",
"totalCount": 0
}Returns Examples
{
"data": [
{
"id": "id",
"completedAt": "completedAt",
"createdAt": "createdAt",
"expiresAt": "expiresAt",
"filename": "filename",
"mimeType": "mimeType",
"sizeBytes": -9007199254740991,
"status": "PENDING"
}
],
"object": "object",
"totalCount": 0
}