AptlyStar

Box

Manage files, folders, and e-signatures with Box

使用说明

Integrate Box into your workflow to manage files, folders, and e-signatures. Upload and download files, search content, create folders, send documents for e-signature, track signing status, and more.

工具

box_upload_file

Upload a file to a Box folder

输入

参数类型必填描述
parentFolderIdstring是The ID of the folder to upload the file to (use "0" for root)
filefile否The file to upload (UserFile object)
fileContentstring否Legacy: base64 encoded file content
fileNamestring否Optional filename override

输出

参数类型描述
idstringFile ID
namestringFile name
sizenumberFile size in bytes
sha1stringSHA1 hash of file content
createdAtstringCreation timestamp
modifiedAtstringLast modified timestamp
parentIdstringParent folder ID
parentNamestringParent folder name

box_download_file

Download a file from Box

输入

参数类型必填描述
fileIdstring是The ID of the file to download

输出

参数类型描述
filefileDownloaded file stored in execution files
contentstringBase64 encoded file content

box_get_file_info

Get detailed information about a file in Box

输入

参数类型必填描述
fileIdstring是The ID of the file to get information about

输出

参数类型描述
idstringFile ID
namestringFile name
descriptionstringFile description
sizenumberFile size in bytes
sha1stringSHA1 hash of file content
createdAtstringCreation timestamp
modifiedAtstringLast modified timestamp
createdByobjectUser who created the file
modifiedByobjectUser who last modified the file
ownedByobjectUser who owns the file
parentIdstringParent folder ID
parentNamestringParent folder name
sharedLinkjsonShared link details
tagsarrayFile tags
commentCountnumberNumber of comments

box_list_folder_items

List files and folders in a Box folder

输入

参数类型必填描述
folderIdstring是The ID of the folder to list items from (use "0" for root)
limitnumber否Maximum number of items to return per page
offsetnumber否The offset for pagination
sortstring否Sort field: id, name, date, or size
directionstring否Sort direction: ASC or DESC

输出

参数类型描述
entriesarrayList of items in the folder
↳ typestringItem type (file, folder, web_link)
↳ idstringItem ID
↳ namestringItem name
↳ sizenumberItem size in bytes
↳ createdAtstringCreation timestamp
↳ modifiedAtstringLast modified timestamp
totalCountnumberTotal number of items in the folder
offsetnumberCurrent pagination offset
limitnumberCurrent pagination limit

box_create_folder

Create a new folder in Box

输入

参数类型必填描述
namestring是Name for the new folder
parentFolderIdstring是The ID of the parent folder (use "0" for root)

输出

参数类型描述
idstringFolder ID
namestringFolder name
createdAtstringCreation timestamp
modifiedAtstringLast modified timestamp
parentIdstringParent folder ID
parentNamestringParent folder name

box_delete_file

Delete a file from Box

输入

参数类型必填描述
fileIdstring是The ID of the file to delete

输出

参数类型描述
deletedbooleanWhether the file was successfully deleted
messagestringSuccess confirmation message

box_delete_folder

Delete a folder from Box

输入

参数类型必填描述
folderIdstring是The ID of the folder to delete
recursiveboolean否Delete folder and all its contents recursively

输出

参数类型描述
deletedbooleanWhether the folder was successfully deleted
messagestringSuccess confirmation message

box_copy_file

Copy a file to another folder in Box

输入

参数类型必填描述
fileIdstring是The ID of the file to copy
parentFolderIdstring是The ID of the destination folder
namestring否Optional new name for the copied file

输出

参数类型描述
idstringFile ID
namestringFile name
sizenumberFile size in bytes
sha1stringSHA1 hash of file content
createdAtstringCreation timestamp
modifiedAtstringLast modified timestamp
parentIdstringParent folder ID
parentNamestringParent folder name

Search for files and folders in Box

输入

参数类型必填描述
querystring是The search query string
limitnumber否Maximum number of results to return
offsetnumber否The offset for pagination
ancestorFolderIdstring否Restrict search to a specific folder and its subfolders
fileExtensionsstring否Comma-separated file extensions to filter by (e.g., pdf,docx)
typestring否Restrict to a specific content type: file, folder, or web_link

输出

参数类型描述
resultsarraySearch results
↳ typestringItem type (file, folder, web_link)
↳ idstringItem ID
↳ namestringItem name
↳ sizenumberItem size in bytes
↳ createdAtstringCreation timestamp
↳ modifiedAtstringLast modified timestamp
↳ parentIdstringParent folder ID
↳ parentNamestringParent folder name
totalCountnumberTotal number of matching results

box_update_file

Update file info in Box (rename, move, change description, add tags)

输入

参数类型必填描述
fileIdstring是The ID of the file to update
namestring否New name for the file
descriptionstring否New description for the file (max 256 characters)
parentFolderIdstring否Move the file to a different folder by specifying the folder ID
tagsstring否Comma-separated tags to set on the file

输出

参数类型描述
idstringFile ID
namestringFile name
descriptionstringFile description
sizenumberFile size in bytes
sha1stringSHA1 hash of file content
createdAtstringCreation timestamp
modifiedAtstringLast modified timestamp
createdByobjectUser who created the file
modifiedByobjectUser who last modified the file
ownedByobjectUser who owns the file
parentIdstringParent folder ID
parentNamestringParent folder name
sharedLinkjsonShared link details
tagsarrayFile tags
commentCountnumberNumber of comments

box_sign_create_request

Create a new Box Sign request to send documents for e-signature

输入

参数类型必填描述
sourceFileIdsstring是Comma-separated Box file IDs to send for signing
signerEmailstring是Primary signer email address
signerRolestring否Primary signer role: signer, approver, or final_copy_reader (default: signer)
additionalSignersstring否JSON array of additional signers, e.g. [{"email":"user@example.com","role":"signer"}]
parentFolderIdstring否Box folder ID where signed documents will be stored (default: user root)
emailSubjectstring否Custom subject line for the signing email
emailMessagestring否Custom message in the signing email body
namestring否Name for the sign request
daysValidnumber否Number of days before the request expires (0-730)
areRemindersEnabledboolean否Whether to send automatic signing reminders
areTextSignaturesEnabledboolean否Whether to allow typed (text) signatures
signatureColorstring否Signature color: blue, black, or red
redirectUrlstring否URL to redirect signers to after signing
declinedRedirectUrlstring否URL to redirect signers to after declining
isDocumentPreparationNeededboolean否Whether document preparation is needed before sending
externalIdstring否External system reference ID

输出

参数类型描述
idstringSign request ID
statusstringRequest status (converting, created, sent, viewed, signed, cancelled, declined, expired, error_converting, error_sending, finalizing, error_finalizing)
namestringSign request name
shortIdstringHuman-readable short ID
signersarrayList of signers
sourceFilesarraySource files for signing
emailSubjectstringCustom email subject line
emailMessagestringCustom email message body
daysValidnumberNumber of days the request is valid
createdAtstringCreation timestamp
autoExpireAtstringAuto-expiration timestamp
prepareUrlstringURL for document preparation (if preparation is needed)
senderEmailstringEmail of the sender

box_sign_get_request

Get the details and status of a Box Sign request

输入

参数类型必填描述
signRequestIdstring是The ID of the sign request to retrieve

输出

参数类型描述
idstringSign request ID
statusstringRequest status (converting, created, sent, viewed, signed, cancelled, declined, expired, error_converting, error_sending, finalizing, error_finalizing)
namestringSign request name
shortIdstringHuman-readable short ID
signersarrayList of signers
sourceFilesarraySource files for signing
emailSubjectstringCustom email subject line
emailMessagestringCustom email message body
daysValidnumberNumber of days the request is valid
createdAtstringCreation timestamp
autoExpireAtstringAuto-expiration timestamp
prepareUrlstringURL for document preparation (if preparation is needed)
senderEmailstringEmail of the sender

box_sign_list_requests

List all Box Sign requests

输入

参数类型必填描述
limitnumber否Maximum number of sign requests to return (max 1000)
markerstring否Pagination marker from a previous response

输出

参数类型描述
signRequestsarrayList of sign requests
↳ idstringSign request ID
↳ statusstringRequest status (converting, created, sent, viewed, signed, cancelled, declined, expired, error_converting, error_sending, finalizing, error_finalizing)
↳ namestringSign request name
↳ shortIdstringHuman-readable short ID
↳ signersarrayList of signers
↳ sourceFilesarraySource files for signing
↳ emailSubjectstringCustom email subject line
↳ emailMessagestringCustom email message body
↳ daysValidnumberNumber of days the request is valid
↳ createdAtstringCreation timestamp
↳ autoExpireAtstringAuto-expiration timestamp
↳ prepareUrlstringURL for document preparation (if preparation is needed)
↳ senderEmailstringEmail of the sender
countnumberNumber of sign requests returned in this page
nextMarkerstringMarker for next page of results

box_sign_cancel_request

Cancel a pending Box Sign request

输入

参数类型必填描述
signRequestIdstring是The ID of the sign request to cancel

输出

参数类型描述
idstringSign request ID
statusstringRequest status (converting, created, sent, viewed, signed, cancelled, declined, expired, error_converting, error_sending, finalizing, error_finalizing)
namestringSign request name
shortIdstringHuman-readable short ID
signersarrayList of signers
sourceFilesarraySource files for signing
emailSubjectstringCustom email subject line
emailMessagestringCustom email message body
daysValidnumberNumber of days the request is valid
createdAtstringCreation timestamp
autoExpireAtstringAuto-expiration timestamp
prepareUrlstringURL for document preparation (if preparation is needed)
senderEmailstringEmail of the sender

box_sign_resend_request

Resend a Box Sign request to signers who have not yet signed

输入

参数类型必填描述
signRequestIdstring是The ID of the sign request to resend

输出

参数类型描述
messagestringSuccess confirmation message

On this page