Inbox Recipients

An InboxRecipient is a person who has had an inbox shared with them via email invitation.

List Inbox Recipients

SDK Function

InboxRecipient.list()

Return Object

ListIterator<InboxRecipient>

Authorization Requirement

Available to all authenticated keys or sessions.

Function Arguments

ArgumentDescription
inbox_id
int64
Required
List recipients for the inbox with this ID.

Additional Arguments

Example Request

import com.files.ListIterator;
import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.InboxRecipient;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  parameters.put("inbox_id", 1);
  
  ListIterator<InboxRecipient> inboxRecipients = InboxRecipient.list(parameters);
  for (InboxRecipient inboxRecipient : inboxRecipients.listAutoPaging()) {
    // Operate on inboxRecipient
  }
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

Create Inbox Recipient

SDK Function

InboxRecipient.create()

Return Object

InboxRecipient

Authorization Requirement

Available to all authenticated keys or sessions.

Function Arguments

ArgumentDescription
inbox_id
int64
Required
Inbox to share.
recipient
string
Required
Email address to share this inbox with.
name
string
Name of recipient.
company
string
Company of recipient.
note
string
Note to include in email.
share_after_create
boolean
Set to true to share the link with the recipient upon creation.

Example Request

import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.InboxRecipient;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  parameters.put("inbox_id", 1);
  parameters.put("recipient", "johndoe@gmail.com");
  
  InboxRecipient inboxRecipient = InboxRecipient.create(parameters);
  // Operate on inboxRecipient
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

The InboxRecipient Object

Some of the functions above return a InboxRecipient object. The attributes of this object are listed below.

AttributeDescription
company
string
The recipient's company.
name
string
The recipient's name.
note
string
A note sent to the recipient with the inbox.
recipient
string
The recipient's email address.
sent_at
date-time
When the Inbox was shared with this recipient.