Bundle Recipients

A BundleRecipient is a person who has had a bundle shared with them via email invite. A Bundle can be re-shared with a Bundle Recipient by sending a create request with the inbox_id, recipient email address, and share_after_create => true.

SDK Method

files_sdk.bundle_recipient.list()

Return Object

ListObj[BundleRecipient]

Authorization Requirement

Available to all authenticated keys or sessions.

Method Arguments

ArgumentDescription
user_id
int64
User ID. Provide a value of 0 to operate the current session's user.
bundle_id
int64
Required
List recipients for the bundle with this ID.

Additional Arguments

Example Request

import files_sdk

try:
  bundle_recipients = files_sdk.bundle_recipient.list({
    "bundle_id": 1
  })
  for bundle_recipient in bundle_recipients.auto_paging_iter():
    # Operate on bundle_recipient
except files_sdk.error.NotAuthenticatedError as err:
  print(f"Authentication Error Occurred ({type(err).__name__}):", err)
except files_sdk.error.Error as err:
  print(f"Unknown Error Occurred ({type(err).__name__}):", err)

SDK Method

files_sdk.bundle_recipient.create()

Return Object

BundleRecipient

Authorization Requirement

Available to all authenticated keys or sessions.

Method Arguments

ArgumentDescription
user_id
int64
User ID. Provide a value of 0 to operate the current session's user.
bundle_id
int64
Required
Bundle to share.
recipient
string
Required
Email addresses to share this bundle 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 files_sdk

try:
  bundle_recipient = files_sdk.bundle_recipient.create({
    "bundle_id": 1,
    "recipient": "johndoe@gmail.com"
  })
  # Operate on bundle_recipient
except files_sdk.error.NotAuthenticatedError as err:
  print(f"Authentication Error Occurred ({type(err).__name__}):", err)
except files_sdk.error.Error as err:
  print(f"Unknown Error Occurred ({type(err).__name__}):", err)

The BundleRecipient Object

Some of the methods above return a BundleRecipient 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 bundle.
recipient
string
The recipient's email address.
sent_at
date-time
When the Bundle was shared with this recipient.
workspace_id
int64
Workspace ID. 0 means the default workspace.