All things API and SDK related
Recently active
We need to extract a full list of all folders in our Box repository for external security analysis. We thought using a query of NOT XXX might do so, but NOT seems to require a predecessor criteria, How can we use the API to return a full list of all folders even if we need to do multiple iterations?
Hello,I'm creating an user via .NET SDK (boxClient.Users.CreateUserAsync method) but user is being created with different email address. In the body request I'm setting email as <personal information-redacted> but in the result I'm getting something like "AppUser_2317968_daP2ZOIUIW@boxdeveditition.com". How I can create user with proper email address?Best regards,Damian Kochmański
I have problem about Access Token, I am trying to use Box API to upload file to box drive from other web, the problem is access tokens expire after 60min. And my app was built for normal User who don’t know how to get Access Token.Is there a work around about it ? Or is there anyway I can make that process to be automatic ?! My company have box drive Account paid version, Can that give me unexpired token !?
Hello,I am getting this error when I try to authorize using client id and secret client id : tulqzn7d3r33gqg90mblowikphufuo84It’s app access only and also the app is authorized.
I am trying to implement a particular functionality where i am trying to retrieve the download url of a file in one of the folders using box’s api.I have created a box application with OAuth 2.0 with JSON Web Tokens (Server Authentication).below mentioned is my application’s scope:Application AccessAll UsersApplication ScopesManage groups Manage retention policies Manage signature requests Read and write all files and folders stored in Box Manage app users Enable integrations Manage enterprise properties Manage users Manage Relay Admin can make calls on behalf of users Manage webhooks v2 Generate user access tokens I am using boxsdk python to write my functions / api’s. Below is my code snippet which mentions how my client is initialized and the api where i am facing the issue “Message: Access denied - insufficient permission”.user_to_impersonate = client.user(user_id='[USER_ID]')user_client = client.as_user(user_to_impersonate)def get_download_url(): """ API endpoint to get the
Hi All, we had a box developer sandbox created from enterprise admin user to integrate box sign service. we accidently deleted that that sandbox, we want to recover that because sandbox admin was not a enterprise user eg. myName+boxsign@companydomain.com within that sanbox/ admin user there is many important data, how can we recover that recently deleted sandbox. Any help is appreciated.
Hi community - we recently implemented Box GxP for Box Sign and we are used to having DocuSign send us the signing log as an appendix to the signed document itself. With Box Sign, the document is separated from the signing log though you can download the latter from clicking on the three dots inside the Box Sign details screen for the document. To that end, I want to know if there is a way to download the Box Sign log as an API call or somehow magic it so that both documents can be downloaded simultaneously. I don’t necessarily need them joined like DocuSign would do but I definitely need to be able to pull down that Box Signing log with each document. If it exists in the details screen, my assumption is there must be a way to retrieve it via the API. Any and all suggestions are welcome!! Nate
1. Data is available in reports but not via APIDespite being able to output data for events after December 13, 2024, using the BOX report feature, I am unable to retrieve the same data via the BOX API. The API consistently returns only events up to December 13, 2024. Could you help clarify why this is happening and how to resolve it?2. Scheduled executions do not save data after December 13When I set up scheduled executions of my script to fetch event data, no events after December 13, 2024, are saved in my system. Could you explain why the API is not retrieving or saving these events during automated runs, even though the data exists in the reports? // Function to fetch events from BOX API using the current stream_positionfunction fetchBoxEvents() { const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); const scriptProperties = PropertiesService.getScriptProperties(); const accessToken = scriptProperties.getProperty("BOX_ACCESS_TOKEN"); if (!accessToken) { Logger
I encountered a 500 error while using Postman to call the Box Sign API to create a sign request:Endpoint:https://api.box.com/2.0/sign_requestsDetails:The same developer token successfully works for file uploads. The application is approved and authorized.Could you help identify the possible reasons for the issue? { "type": "error", "code": "internal_server_error", "status": 500, "message": "Internal Server Error", "help_url": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/", "request_id": "0301ec73ba5420dac2e91dc81cc5f2845"}
I use to be able to authenticate as the subject_type user on the client id app kox474mes4cugrj929i4kh5enokukmltThis is a free account and the app is authorized and enabled.However, now it seems that the subject_type is being required to be set to enterprise. The problem with this is that as the enterprise, I have to add the "Automationuser" to the folder I want the user to upload to. This is a problem because I have been shared several folders and it would be a large coordination effort to have everyone add the "Automationuser" as an uploader. And this would break for any new shares if the user wasn't added.Is there a way to still be able to upload as the user that has access to those folders? I tried using the As-User header, but then that returns the error like the folder doesn't exist.
Hello,I want to create user invite via .NET SDK. I’m using boxClient.Invites.CreateInviteAsync method. I created another (personal) account on box.com and I’m trying to invite it to my enterpise. But I’m getting an exception with details:{"type":"error","status":400,"code":"bad_request","context_info":{"errors":[{"reason":"invalid_parameter","name":"login","message":"Invalid value <personal information-redacted>."}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Bad Request","request_id":"suqbwuhwiea7aeue"} Am I missing something?
Delete Folder Lock fails with 404 Not Found.{ "type": "error", "status": 404, "code": "not_found", "help_url": "http://developers.box.com/docs/#errors", "message": "Authorization Failed", "request_id": "0b3a714efe5a6f7110fc3281c015b0d2c"}I’ve authenticated with the Owner as well as made myself Co-Owner.I’ve reviewed: API [Content API] - 404 "not_found" Errors from the Box API – Box Support but doesn’t seem to help.curl --location --request DELETE 'https://api.box.com/2.0/folder_locks/297778732113' \--header 'content-type: application/json' \--header 'Authorization: Bearer ----------------------------------------------' \--header 'Cookie: box_visitor_id=66ec80484d6913.85943221'
2024-12-13 18:56:58.523 INFO [[ACTIVE] ExecuteThread: '15' for queue: 'weblogic.kernel.Default (self-tuning)']The API returned an error code [403 | q8maaahwjvoa01l7.04b218b328508244f8ff0d76320de105e] storage_limit_exceeded - Account storage limit reached
When I run the folder creation API, I get the following error.What's the cause? { "error": "invalid_grant", "error_description": "Please check the 'sub' claim. The 'sub' specified is invalid."}
Happening intermittent, 3/5 executions are SUCCESS, 2 are getting failed with below error.In our UAT environment facing below error once in a while, Any suggestion how to fix?CODE: BoxDeveloperEditionAPIConnection boxConnection = new BoxDeveloperEditionAPIConnection(EnterpriseId(), DeveloperEditionEntityType.ENTERPRISE, boxConfig, null); Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxy-uat.apple.com, 8080)); boxConnection.setProxy(proxy);boxConnection.authenticate();ERROR:com.box.sdk.BoxAPIException: Couldn't connect to the Box API due to a network errorat com.box.sdk.BoxAPIConnection.executeOnClient(BoxAPIConnection.java:1259) ~[box-java-sdk-4.0.1.jar:?]Caused by: java.io.IOException: Unexpected response code for CONNECT: 403
I only used Box and Practice questions with study guide to prepare for the exam for 2 weeks.https://docs.google.com/document/d/1i5y-X-17RVirib6URVZOqzkIMd37Vw_6nBXuk07ahDc/edit?tab=t.0#heading=h.p6lesgmecr55
Specifically, I need to understand:If an app user or service account starts a pre-configured workflow through the API (POST /workflows/{workflow_id}/start) Can they add another app user as a task assignee at the time of starting this workflow? I've checked the Box Developer Documentation but couldn't find specific information about this capability. Any documentation references or real-world experience would be helpful.Thank you in advance for your help!
Hi everyone. I’, relatively new in React and I’ve just started working with Box integration. I managed to use Box by referencing the versions available on Box's CDN (https://github.com/box/box-content-preview?tab=readme-ov-file#including-preview-as-a-library). But, I have the requirement to use it as a NPM package. I’m using React and when I try to install the box-ui-elements and use it, I get the error 00:30:52 [vite] error while updating dependencies:Error: Build failed with 3 errors:node_modules/box-ui-elements/es/elements/content-preview/ContentPreview.js:51:26: ERROR: No matching export in "node_modules/box-ui-elements/es/elements/common/annotator-context/index.js" for import "WithAnnotationsProps"node_modules/box-ui-elements/es/elements/content-preview/ContentPreview.js:51:70: ERROR: No matching export in "node_modules/box-ui-elements/es/elements/common/annotator-context/index.js" for import "WithAnnotatorContextProps"node_modules/box-ui-elements/es/elements/content-sidebar/Activ
We’ve just returned from an exciting BoxWorks conference where we demonstrated groundbreaking AI integrations between Box and HubSpot that are set to transform how businesses handle document processing and customer relationships.Automated PDF Data ExtractionOne of our most compelling demonstrations showcased Box AI’s ability to automatically extract and process metadata from PDFs stored in Box. When triggered by a HubSpot action, the system can intelligently parse this data and update corresponding HubSpot fields automatically. This innovation eliminates manual data entry, reducing both time investment and the risk of human error.Think about the implications:Automated contract processing Streamlined workflow triggers Seamless data synchronization between platforms Reduced administrative overheadCross-Platform IntelligenceWe also unveiled a powerful new capability that leverages Large Language Models (LLMs) across both Box and HubSpot platforms. This integration enables users to make n
I am trying to create a Box sign request and want to highlight the signature box in the document where the user needs to add their signature. In the Box Sign portal, there is an option to drag and drop the signature and other fields, which places the signature box at the desired position in the document. I want to replicate this functionality using code. However, when I tried adding the inputs attribute under signers, it didn’t work as expected.Below is my json request body.{ "email_message": "Hello! Please sign the document below", "email_subject": "Sign Request from UserName", "parent_folder": { "id": "2895123232312", "type": "folder" }, "signers": [ { "email": "<useremail>", "role": "signer", "order": 1, "inputs": [ { "type": "signature", "x": 100, "y": 150, "page_index": 0, "width": 150, "height": 50 } ] } ], "source_files": [ { "id": "1714359484288", "t
I am working on my first Box API calls. I am using Postman at the moment and was finally able to get the API to access a token to work and I have retrieved a token. I then take that token and send as authorization to the API to list the items in a folder. The Box application that was created for this purpose is a CCG application and I am passing the client ID and secret and the box subject type is enterprise.. When I call the API to get the folder items, it tells me “session expired” even though I had just retrieved the access token. What am I doing wrong?
Dear all, I like to create the applications that get the meta data, and enteprirse plus version already 100k PAI calls included. WHat kind of cost will be considered per a request? I would like to get the meta data of the each files, and folder, and structures, and i would like to search those through the app. I will implement the AI around this app. that extract some files contents, and display in the UI. Please help with this cost associated iwth the Box API
Can I change Max File Size from the Account details?or configure it for an user? we need to decrease the max size limit of the uploaded file
I would like a simple working code example of uploading a file via the Chunked APIs using the Typescript SDKI have reviewed the documentation here:https://github.com/box/box-typescript-sdk-gen/blob/main/docs/chunkedUploads.mdhttps://developer.box.com/guides/uploads/chunked/?_gl=1*h4a2ux*_gcl_au*ODIyMTQzNzA5LjE3MzIxNDU5Mjk. and also all available support/community issues related to this but I have but not found anything that clearly shows me how to do itTask is simple: I want to upload a 70mb file using the Chunked Upload APIS (using Typescript SDK)The documentation here is unclear and does not show a proper example: https://github.com/box/box-typescript-sdk-gen/blob/main/docs/chunkedUploads.mdCan anyone kindly provide a simple example in Typescript that will show accomplish this task using the Typescript SDK (not the deprecated Node SDK)I know how to upload smaller files that do not require chunking that is fine, but when it comes to Chunking I believe the TypeScript SDK documentation
I am unable to figure exact syntax for mutiselect field to update metadata. When I attempt following then it throws errorawait boxService._client.FolderMetadata.UpdateFolderMetadataByIdAsync(folderId: "123", scope: UpdateFolderMetadataByIdScope.Enterprise, templateKey: "arms", requestBody: Array.AsReadOnly(new[] { new UpdateFolderMetadataByIdRequestBody() { Op = UpdateFolderMetadataByIdRequestBodyOpField.Replace, Path = "/doctypes", Value = "[\"test\"]" } })); Error:Encountered invalid value for template field key=doctypes I have no issues in using CreateFolderMetadataByIdAsync though.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.