All things API and SDK related
Recently active
Hi there,We are also pleased to announce upcoming Box Platform Developer Day in Toronto! It’s an amazing opportunity to learn, code and connect with other developers from this area. We will be showing off the full gamut of developer options & tools, including getting started, SDKs, and Box AI. There will be also a session dedicated to leveraging Box for Salesforce integration for FinServ workflows.At the end of the day, we will also have a social mixer!Join us, November 20th, 12:00pm — 6:00pm!Register today! 🇨🇦
Hi Team,I am working on creating Box Wrapper Service that will be using Box SDK for various tasks like Create Folder, Assign permissions, memberships, etc. We are planning to use Box File Request for Upload and Box Preview(in modal popup) to Preview and Download files.I need deployment suggestion on whether to keep the Box wrapper service as Azure App Service vs Azure Function. What are the pros and cons on one vs other? What should be the conclusion.
The ID used in the Get Sign Requests by ID endpoint is a 36-character alphanumeric string; the same type as returned from “id” in the response from Create Box Sign Request. Where can I find this id in the UI?The only IDs I can find in the UI are an 8-character alphanumeric “Request ID” when viewing a Sign Request > See Details, or a 13-digit numeric ID on the in the sign request’s document URL. Neither of these work when trying to use the Get Sign Requests by ID endpoint. Alternatively, can I retrieve this elusive ID via an endpoint, using either of the two IDs I can see in the UI?
Hello,I am using the create sign request API with the following body to create a sign request:{"external_id": "id","parent_folder": { "id": "1234", "type": "folder" },"signers": [ { "role": "signer", "email": "email@email.com" }, { "role": "signer", "email": "email2@email.com" }, { "role": "final_copy_reader", "email": "email2@email.com" }],"source_files": [ { "id": "12233", "type": "file" }, { "id": "54321", "type": "file" } ],“is_document_preparation_needed”: true} The sign request successfully achieves the “Created” state. However, the prepare SR URL gives a 404 to the actual user, who is supposed to configure the SR before sending it out. I suspect this is happening because the service account is the actual owner of the SR. My question is, how can I create an SR via API but assign an actual person as its owner? Thank you.
We are using Box to integrate file retrieval for clients. When searching for these files we are only provided with a folder name. We are using the api.box.com/2.0/folders/ endpoint passing in the parent folder Id. We are iterating over several pages to find the target folder name. When deployed to a production environment, we are noticing that we are unable to find the Folder through API. When testing locally we find the folder every time.We are investigating why this could happen and were hoping to get some insight from Box Support to see how things are moving on your end. Thank you
I have access to both the Box API and MS Graph API to make edits to both systems however I am not sure if an API exists to change the Box Tab configuration to map a new channel to a specific box folder. Does anything how if endpoints exist for this functionality?
I’m current working on a .NET project to deprovision or remove access of a user from all the enterprise’s box contents. I did some research and learn that the steps involved 1. move the toBeDeletedUser’s ’ contents to a service account, 2. delete the user. I was looking into how to move the toBeDeletedUser’s content to a different user but seems like the documentation and code samples are all using Box.Core.V2. Has anyone been able to do so using Box.Sdk.Gen? I would greatly appreciate any advice.
I am trying to use box API( box upload file reference) in servicenow. This code below succeeds in uploading but the uploaded content is corrupted and unreadable.// Create a new RESTMessageV2 objectvar r = new sn_ws.RESTMessageV2();r.setEndpoint('https://upload.box.com/api/2.0/files/content');r.setHttpMethod('POST');// Set the authorization headerr.setRequestHeader('Authorization', 'Bearer <dev auth code>');// Define the boundary stringvar boundary = '----WebKitFormBoundary7MA4YWxkTrZu0gW';// Set the Content-Type header with the boundaryr.setRequestHeader('Content-Type', 'multipart/form-data; boundary=' + boundary);// Define the attributes part of the multipart bodyvar attributes = '--' + boundary + '\r\n' + 'Content-Disposition: form-data; name="attributes"\r\n\r\n' + '{"name": "schedule1.txt", "parent": {"id": "0"}}\r\n';// Define the file part of the multipart bodyvar file = '--' + boundary + '\r\n' + 'Content-Disposition: form-data; name="file"; filename="schedu
I configured a raspberry pi 4 to be a cellular modem using the SixFab cellular modem kit The kit includes a SixFabBase Hat, LTE modem, antennas and a Sixfab core. I am using a in house sim card. The pi runs a python code to find the RSSI, RSRQ & SINR values every 5 minutes using Cron. Then another code to upload the text file to box every day. The issue I am facing here is that is that the JWTAuth is not working for me. Apparently, it doesn’t recognize my folder. It says it is it uploading the files to the root folder but I don’t see the file there as well. The codes are given below.Modem Signal Loggerimport subprocessimport timefrom datetime import datetimedef get_modem_signal_info(): try: # Run the AT command using atcom and capture the output result = subprocess.run(['/home/genwave/.local/bin/atcom', '-p', '/dev/ttyUSB2', 'AT+QENG="servingcell"'], capture_output=True, text=True) output = result.stdout.strip() return o
I tried to call API to create a Folder in user account but getting not authenticated with req id : 016d6612bbfea666f33a2c21999014df4I am coadmin and also app is authenticated as I can fetch all usersI am getting 403 and code is forbidden
i am facing issue to get authentication using oauth .when i tested from postman it is getting 404 error. Please help to create app and to access folder in Box from postman
Hi, I’m looking for a way to get all shared links in an enterprise using the API. All the answers I found on this topic are 1+ year old, and just wanted to confirm, is there still no ability to get all shared links in an enterprise in the Box API?And if so, could I be provided a bit more context on this workaround that I saw on an old thread: “If you're using the SDK, you could always crawl through the entire set of users in the enterprise and check every file or folder they own for a shared link”How would we crawl the folder of another user, when the root folder just has id 0? And what kind of permissions would this require?
We have a new blog post to checkout on our Medium site. This demo goes over how to connect Box & Pinecone. https://medium.com/box-developer-blog/demo-box-pinecone-f03783c412bb Please check it out!
Hi all,We're having an issue with content uploader. In case when not all files were upladed successfully "onComplete" event is not triggered. I found in the source code that there is a "isPartialUploadEnabled" property which allows "onComplete" to be triggered in such cases.This property is not documented in the docs nor in content-uploader readme when describing properties , but it's present in the exported interfaceMy question is can we use and set this option when calling uploader.show() or this is a subject to change and it’s not intended to be used when instantiating uploader instance ?
Hi Development Team,As part of our project we need to upload documents to one of the folder in Box CLI. We have folder ready in Box CLI and commands to be given in command prompt. Here we wanted to automate the commands which we are giving in Command prompt of our system using bat file. But it is not accepting the Client Id and Client Secret. Could you please help us to automate this process.Thanks and RegardsSravya Pericherla.
I have a single download API “https://api.box.com/2.0/files/:file_id/content” with this i can able to download only single file only. But i want to download multiple file separately using single download API. I dont to want “ZIP Download method” Because i want separate files(Eg: Sample1.pdf, Sample2.pdf, Sample3.pdf...). Can any one say How to implement this as a solution. Thanks in advance.
I’m using the following call to retrieve events from Box. EnterpriseEventsRequest request = new EnterpriseEventsRequest().types(eventTypes).limit(10).after(null).before(null) eventTypes is an array of BoxEvent.EventType. For all other events, DOWNLOAD, LOGIN, etc. the call is correctly returning only event types that match. When I use ITEM_CREATE or ITEM_UPDATE, the filter is basically getting ignored and it’s returning random events. I’m using the 4.11.1 version. Any ideas of what could be wrong?
Hi ,I have to use this UI elements and box preview api in angular project along with node >=18. please help me out which angular version was support for this.Thanks in advance
I’m building an automation that triggers a folder creation in Box, then using that new folder I’d like to send the file_request url of that folder to a customer so they could upload documents to that folder. Each automation will have it’s own separate folder. The problem is I can’t seem to find a way to retrieve that file_request url for users to upload their files to unless I manually go into the console and copy it. Is there another way to automate this process? It seems silly that we can query the shared_link for a folder, but not the file_request. Any help would be appreciated. Thanks
We need to know when folder has already been created inside app..box.comwe are using salesforce SDK likeresult = boxTools.createFolderForRecordId(recordId, null, true); system.debug('result:' + result); boxTools.commitChanges();it returns back new folder Id but there is a need to wait for some time to see the change both in salesforce and using a link like app.box.com/folder/{folderId}is it possible to achieve it?
While using the Box App on my Ipad files will not open immediately. The loading icon appears and continues to run for several minutes and file never opens. Has anyone had this issue and if so what did you do to resolve it.
For our API integration when calling this endpoint GET `/files/{file_id}` the return value for modified_by occasionally returns empty strings for the “name” and “login” fields. Example: { "type": "file", "id": "<file_id>", "name": "Outline.doc", "parent": {"type": "folder", "id": "<folder_id>", "name": "My Documents"}, "extension": "doc", "size": 20480, "sha1": "<hash>", "item_status": "active", "owned_by": {"type": "user", "id": "<user_id_1>", "name": "<name>", "login": "<email>"}, "created_by": {"type": "user", "id": "<user_id_2>", "name": "", "login": ""}, "modified_by": {"type": "user", "id": "<user_id_2>", "name": "", "login": ""},}when following up on this call and querying the user_id with GET `/users/{user_id}` the API is returning a 404 not found status.What is this mystery user? Am I doing something wrong in my calls that might be causing this? The call is correctly using the `as-user` header whe
Hi there,I am using the Embedded Signing Experience to embed signable documents into a web page using an iframable_embed_url. I use the Create Box Sign request API to retreive the embeddable URL. The embed is working fine, including te signing functionality, but my document contains one user-fillable field whose value I need to retrieve after signing. In the Sign Template editor, I've given the form field an External Identifier to make the input easer to find, but I can't find a way to fetch what the user put into that field after signing.I hoped that the "Sign Completed" webhook would include all the document's input data, but it does not. https://developer.box.com/reference/resources/webhook-invocation/Then I took the Sign Request ID (additional_info.sign_request_id) from the webhook response, and passed it to the "Get Box Sign request by ID" API. Despite the documentation showing Signers and Inputs on the response, that data is not present in my response. https://developer.box.com/r
I am using Box SDK to find a folder to which I am a co-owner. In the process I try to fetch all folders/items from root level (folder_id =0) and the total_count is always 15 while there are almost 26 items in it. Some folders are not showing up in the fetch list. Not sure why get_items is not pulling all the items at root level. Both offset and marker pagination is not working.Not sure what could be the cause. I asked a folder owner to create a new folder and add me as co-owner, still that folder is not showing in the fetch list either. No clue where the total_count is set and how to override it.
Hi there,I'm using the Embedded Signing Experience to show my users a document they need to sign. I call the Create Box Sign request API to retreive the embeddable URL, and immediately embed the iframable_embed_url onto my page. At this point, the cloud matching captcha displays. If I wait 5-7 seconds and then complete the captcha, the signable document displays. But if I complete the captcha immediately, the page shows "Invalid Link: This request link is invalid."It seems like the template file gets copied to make a signable instance at the same time the endpoint returns, but the document copy is not finished yet, and if the users proceeds too fast, they attempt to access an instance that isn't done being created yet.
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.