Inbox Uploads

An InboxUpload is a log record about upload operations that happened in your Inbox.

List Inbox Uploads

SDK Method

InboxUpload.list()

Return Object

InboxUpload[]

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Folder Admin permissions.

Additional Arguments

Example Request

import InboxUpload from 'files.com/lib/models/InboxUpload';
import * as FilesErrors from 'files.com/lib/Errors';

try {
  const inboxUploads = await InboxUpload.list();
  for (const inboxUpload of inboxUploads) {
    // Operate on inboxUpload
  }
} catch (err) {
  if (err instanceof FilesErrors.NotAuthenticatedError) {
    console.error(`Authentication Error Occurred (${err.constructor.name}): ${err.error}`);
  } else if (err instanceof FilesErrors.FilesError) {
    console.error(`Unknown Error Occurred (${err.constructor.name}): ${err.error}`);
  } else {
    throw err;
  }
}

The InboxUpload Object

Some of the methods above return a InboxUpload object. The attributes of this object are listed below.

AttributeDescription
inbox_registration
InboxRegistration
path
string
Upload path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
created_at
date-time
Upload date/time