Use Box to manage files and folders, search content, and send documents for e-signature through Box Sign. The actions below cover file metadata and signing status as well as uploads and downloads.
Connection guides: Service accounts .
Sim requests these scopes when someone connects a Box account. For a self-hosted deployment, register your own app with the provider using the settings below. See Integrations and OAuth for setup.
Setting Value Redirect URI <NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/boxEnvironment variables BOX_CLIENT_ID, BOX_CLIENT_SECRET
Scope Description root_readwriteRead and write all files and folders in Box account sign_requests.readwriteCreate and manage Box Sign e-signature requests
Manage files, folders, and e-signatures. Upload and download files, search content, create folders, send documents for e-signature, track signing status, and more.
Upload a file to a Box folder
Inputs and outputsParameter Type Required Description parentFolderIdstring Yes The ID of the folder to upload the file to (use "0" for root) filefile No The file to upload (UserFile object) fileNamestring No Optional filename override
Parameter Type Description idstring File ID namestring File name sizenumber File size in bytes sha1string SHA1 hash of file content createdAtstring Creation timestamp modifiedAtstring Last modified timestamp parentIdstring Parent folder ID parentNamestring Parent folder name
Download a file from Box
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to download
Parameter Type Description filefile Downloaded file stored in execution files
Get detailed information about a file in Box
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to get information about
Parameter Type Description idstring File ID namestring File name descriptionstring File description sizenumber File size in bytes sha1string SHA1 hash of file content createdAtstring Creation timestamp modifiedAtstring Last modified timestamp createdByobject User who created the file ↳ id string User ID ↳ name string User name ↳ login string User email/login modifiedByobject User who last modified the file ↳ id string User ID ↳ name string User name ↳ login string User email/login ownedByobject User who owns the file ↳ id string User ID ↳ name string User name ↳ login string User email/login parentIdstring Parent folder ID parentNamestring Parent folder name sharedLinkjson Shared link details tagsarray File tags commentCountnumber Number of comments
List files and folders in a Box folder
Inputs and outputsParameter Type Required Description folderIdstring Yes The ID of the folder to list items from (use "0" for root) limitnumber No Maximum number of items to return per page offsetnumber No The offset for pagination sortstring No Sort field: id, name, date, or size directionstring No Sort direction: ASC or DESC
Parameter Type Description entriesarray List of items in the folder ↳ type string Item type (file, folder, web_link) ↳ id string Item ID ↳ name string Item name ↳ size number Item size in bytes ↳ createdAt string Creation timestamp ↳ modifiedAt string Last modified timestamp totalCountnumber Total number of items in the folder offsetnumber Current pagination offset limitnumber Current pagination limit
Create a new folder in Box
Inputs and outputsParameter Type Required Description namestring Yes Name for the new folder parentFolderIdstring Yes The ID of the parent folder (use "0" for root)
Parameter Type Description idstring Folder ID namestring Folder name createdAtstring Creation timestamp modifiedAtstring Last modified timestamp parentIdstring Parent folder ID parentNamestring Parent folder name
Delete a file from Box
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to delete
Parameter Type Description deletedboolean Whether the file was successfully deleted messagestring Success confirmation message
Delete a folder from Box
Inputs and outputsParameter Type Required Description folderIdstring Yes The ID of the folder to delete recursiveboolean No Delete folder and all its contents recursively
Parameter Type Description deletedboolean Whether the folder was successfully deleted messagestring Success confirmation message
Copy a file to another folder in Box
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to copy parentFolderIdstring Yes The ID of the destination folder namestring No Optional new name for the copied file
Parameter Type Description idstring File ID namestring File name sizenumber File size in bytes sha1string SHA1 hash of file content createdAtstring Creation timestamp modifiedAtstring Last modified timestamp parentIdstring Parent folder ID parentNamestring Parent folder name
Search for files and folders in Box
Inputs and outputsParameter Type Required Description querystring Yes The search query string limitnumber No Maximum number of results to return offsetnumber No The offset for pagination ancestorFolderIdstring No Restrict search to a specific folder and its subfolders fileExtensionsstring No Comma-separated file extensions to filter by (e.g., pdf,docx) typestring No Restrict to a specific content type: file, folder, or web_link
Parameter Type Description resultsarray Search results ↳ type string Item type (file, folder, web_link) ↳ id string Item ID ↳ name string Item name ↳ size number Item size in bytes ↳ createdAt string Creation timestamp ↳ modifiedAt string Last modified timestamp ↳ parentId string Parent folder ID ↳ parentName string Parent folder name totalCountnumber Total number of matching results
Update file info in Box (rename, move, change description, add tags)
Inputs and outputsParameter Type Required Description fileIdstring Yes The ID of the file to update namestring No New name for the file descriptionstring No New description for the file (max 256 characters) parentFolderIdstring No Move the file to a different folder by specifying the folder ID tagsstring No Comma-separated tags to set on the file
Parameter Type Description idstring File ID namestring File name descriptionstring File description sizenumber File size in bytes sha1string SHA1 hash of file content createdAtstring Creation timestamp modifiedAtstring Last modified timestamp createdByobject User who created the file ↳ id string User ID ↳ name string User name ↳ login string User email/login modifiedByobject User who last modified the file ↳ id string User ID ↳ name string User name ↳ login string User email/login ownedByobject User who owns the file ↳ id string User ID ↳ name string User name ↳ login string User email/login parentIdstring Parent folder ID parentNamestring Parent folder name sharedLinkjson Shared link details tagsarray File tags commentCountnumber Number of comments
Create a new Box Sign request to send documents for e-signature
Inputs and outputsParameter Type Required Description sourceFileIdsstring Yes Comma-separated Box file IDs to send for signing signerEmailstring Yes Primary signer email address signerRolestring No Primary signer role: signer, approver, or final_copy_reader (default: signer) additionalSignersstring No JSON array of additional signers, e.g. [{"email":"user@example.com ","role":"signer"}] parentFolderIdstring No Box folder ID where signed documents will be stored (default: user root) emailSubjectstring No Custom subject line for the signing email emailMessagestring No Custom message in the signing email body namestring No Name for the sign request daysValidnumber No Number of days before the request expires (0-730) areRemindersEnabledboolean No Whether to send automatic signing reminders areTextSignaturesEnabledboolean No Whether to allow typed (text) signatures signatureColorstring No Signature color: blue, black, or red redirectUrlstring No URL to redirect signers to after signing declinedRedirectUrlstring No URL to redirect signers to after declining isDocumentPreparationNeededboolean No Whether document preparation is needed before sending externalIdstring No External system reference ID
Parameter Type Description idstring Sign request ID statusstring Request status (converting, created, sent, viewed, signed, cancelled, declined, expired, error_converting, error_sending, finalizing, error_finalizing) namestring Sign request name shortIdstring Human-readable short ID signersarray List of signers ↳ email string Signer email address ↳ role string Signer role (signer, approver, final_copy_reader) ↳ hasViewedDocument boolean Whether the signer has viewed the document ↳ signerDecision json Signer decision details (type, finalized_at, additional_info) ↳ embedUrl string URL for embedded signing experience ↳ order number Order in signing sequence sourceFilesarray Source files for signing ↳ id string File ID ↳ type string File type ↳ name string File name emailSubjectstring Custom email subject line emailMessagestring Custom email message body daysValidnumber Number of days the request is valid createdAtstring Creation timestamp autoExpireAtstring Auto-expiration timestamp prepareUrlstring URL for document preparation (if preparation is needed) senderEmailstring Email of the sender
Get the details and status of a Box Sign request
Inputs and outputsParameter Type Required Description signRequestIdstring Yes The ID of the sign request to retrieve
Parameter Type Description idstring Sign request ID statusstring Request status (converting, created, sent, viewed, signed, cancelled, declined, expired, error_converting, error_sending, finalizing, error_finalizing) namestring Sign request name shortIdstring Human-readable short ID signersarray List of signers ↳ email string Signer email address ↳ role string Signer role (signer, approver, final_copy_reader) ↳ hasViewedDocument boolean Whether the signer has viewed the document ↳ signerDecision json Signer decision details (type, finalized_at, additional_info) ↳ embedUrl string URL for embedded signing experience ↳ order number Order in signing sequence sourceFilesarray Source files for signing ↳ id string File ID ↳ type string File type ↳ name string File name emailSubjectstring Custom email subject line emailMessagestring Custom email message body daysValidnumber Number of days the request is valid createdAtstring Creation timestamp autoExpireAtstring Auto-expiration timestamp prepareUrlstring URL for document preparation (if preparation is needed) senderEmailstring Email of the sender
List all Box Sign requests
Inputs and outputsParameter Type Required Description limitnumber No Maximum number of sign requests to return (max 1000) markerstring No Pagination marker from a previous response
Parameter Type Description signRequestsarray List of sign requests ↳ id string Sign request ID ↳ status string Request status (converting, created, sent, viewed, signed, cancelled, declined, expired, error_converting, error_sending, finalizing, error_finalizing) ↳ name string Sign request name ↳ shortId string Human-readable short ID ↳ signers array List of signers ↳ email string Signer email address ↳ role string Signer role (signer, approver, final_copy_reader) ↳ hasViewedDocument boolean Whether the signer has viewed the document ↳ signerDecision json Signer decision details (type, finalized_at, additional_info) ↳ embedUrl string URL for embedded signing experience ↳ order number Order in signing sequence ↳ sourceFiles array Source files for signing ↳ id string File ID ↳ type string File type ↳ name string File name ↳ emailSubject string Custom email subject line ↳ emailMessage string Custom email message body ↳ daysValid number Number of days the request is valid ↳ createdAt string Creation timestamp ↳ autoExpireAt string Auto-expiration timestamp ↳ prepareUrl string URL for document preparation (if preparation is needed) ↳ senderEmail string Email of the sender countnumber Number of sign requests returned in this page nextMarkerstring Marker for next page of results
Cancel a pending Box Sign request
Inputs and outputsParameter Type Required Description signRequestIdstring Yes The ID of the sign request to cancel
Parameter Type Description idstring Sign request ID statusstring Request status (converting, created, sent, viewed, signed, cancelled, declined, expired, error_converting, error_sending, finalizing, error_finalizing) namestring Sign request name shortIdstring Human-readable short ID signersarray List of signers ↳ email string Signer email address ↳ role string Signer role (signer, approver, final_copy_reader) ↳ hasViewedDocument boolean Whether the signer has viewed the document ↳ signerDecision json Signer decision details (type, finalized_at, additional_info) ↳ embedUrl string URL for embedded signing experience ↳ order number Order in signing sequence sourceFilesarray Source files for signing ↳ id string File ID ↳ type string File type ↳ name string File name emailSubjectstring Custom email subject line emailMessagestring Custom email message body daysValidnumber Number of days the request is valid createdAtstring Creation timestamp autoExpireAtstring Auto-expiration timestamp prepareUrlstring URL for document preparation (if preparation is needed) senderEmailstring Email of the sender
Resend a Box Sign request to signers who have not yet signed
Inputs and outputsParameter Type Required Description signRequestIdstring Yes The ID of the sign request to resend
Parameter Type Description messagestring Success confirmation message