A community space to collaborate on Box APIs, explore SDKs, and build powerful applications
Recently active
Hello ! I'm currently developing in java and I can't get a folder created by another user, via API.I'm also using JWT authentication and have followed this documentation: https://developer.box.com/guides/authentication/jwt/with-sdk/Here's my Java class calling the Box APIs public BoxFolder getFolder(String folderId) throws BoxAPIException { return new BoxFolder(boxAPIConnexion.getAPI(), folderId); }However, here's the message returned :com.box.sdk.BoxAPIResponseException: The API returned an error code [404 | iw6ilehyqdmmt4w4.0bb5b98f9358163f0c50785d696f24cca] not_found - Not FoundDo you have any solutions?thanksTranslated with DeepL.com (free version)
Box AI just completed one its largest launches ever. 🚀 Checkout the blog below and find out all the new features available to developers! 📦✅ Box AI Studio API✅ Box AI API support for images, Hubs, and scanned documents✅ Box Doc Gen for Salesforcehttps://medium.com/box-developer-blog/new-box-ai-api-updates-e812b868457d
Using .Net SDK and the C# languageHi AllIt’s First time using this forum and the .Net SDK as well.My manager has asked me to create a prototype proof of concept app to create a signed document from our laptops. The users running the app will have their own Box Accounts.When the user executes the app, it will…Upload a document to their box account. The Box Sign behaviour, [Sign Myself], will activate and the user will fill out their signature. The Signed Doc and Log is created. The Signed Doc and Log is downloaded to the users laptopThe issue is that in order to get Box Sign to activate I Create a Sign Request which requires a Signer, even though the user is whom I want to sign the document and the behaviour is not the same as how it acts in [Sign Myself].What am I missing?Very Rough code below… BoxDeveloperTokenAuth auth = GetTokenAuthorisation();BoxClient client = GetBoxClient(auth);// Upload Filestring fullPath = @"C:\Users\srodney_dev\AppData\Local\BoxTest\TesstingBoxUpload.docx";/
Does Box provide following details via Box API programmatically(https://developer.box.com/reference/) either directly or indirectly as follows,Subscription plan associated with Box account(Business/Business Starter/Business Plus/Enterprise/Enterprise Plus). Opted plan cycle(monthly/annual) and billing details. Box AI credits available and spent at user level and enterprise shared pool level and addition credits assigned in a Box account. (may be similar to the way it's exposed in admin console: https://support.box.com/hc/en-us/articles/34617574060691-Track-AI-usage-in-Admin-Console.)Please share from which Box APIs, these data can be fetched from. Thanks!
Hi,We have a need to upload documents to one of our clients. The uploads will be done via a command line Windows app written in C# using the Box .NET SDK. We have this already in place for 2 other clients which I’ve done by creating a Platform App for each client. Each Platform App uses the OAuth 2.0 with Client Credentials Grant (Client Id and Client Secret) for authentication. Following this pattern I created a Platform App for this new client and it’s awaiting Box Authorization. However, I can’t find my notes on what needs to be done by the client once the Platform App is approved. I believe something needs to be done with the Service Account ID once the App is approved, and they need also need to provide us with the ID of the folder in which we will be uploading documents to but I don’t remember the steps that were done for the other two clients.Can you provide me with any guidance on what needs to be done and/or point me to the Box documentation that describes this process.
Hi All,i am getting the below error kindly help me on this.Error: can't authenticated on box HTTPSConnectionPool(host='api.box.com', port=443): Max retries exceeded with url: /oauth2/token (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))Traceback (most recent call last):
CLI installation and command line Box login -n example_name > error as below How can I solve this error? Redirect URI = http://localhost:3000/callback client id and client secret may be correct. Error: redirect_uri_mismatch Show Error Details response_type=code redirect_uri=http://localhost:3000/callback state=ndJjebiBosm-3K06PdUAlZvCduS_ofoB client_id=clyd1w6ectfsns7p90uq2olth66ax69j
I share links with collaborators and they have an expiration date set, but the links expiration does not work because the collaborators can use the shared links even after the expiration date has passed.
While search data based on created and updated Date I not get back anything.It’s give me 200 response But I am not able to get any entries from that.
We have one spring boot java service to scan events in an app create by users.One feature we have we download the zip of file uploaded and get the content of it and saved in our database as solr. Which will be access to that user only on our app.Previously there was no issue but now frequently service is halting on only when downloading zip and no further process is halted.When we restarted the service and scan again that event by start and end time it works fine.We checked the heap size that was not the issue.we are using now: 4.7 box sdk and java 8.Can anyone help if any issue and modification needed for this issue?
Using Python3, OAuth2. My application worked yesterday. Today, It does not work.
Hi there,I cannot generate the token using the credentials grant. I can however use the temporary token from the portal to upload the file.I am using the client credentials grant method mentioned in this URL: https://developer.box.com/guides/authentication/client-credentials/I have double-checked the box_subject_type and box_subject_id along with client_id and client_secret. It used to work a couple of months ago. The error I first started noticing was 4th of October 2024. Can you please help me with this?
Hi all! I deleted an app from my dev console. But I need to restore that app. The point is that the app is still available from my admin console, how can I restore the app from my admin console? Any help would be really appreciated!
Hello I am trying to search File With “Any” keyword I got the File.Here I apply the between date range Filter the filter Work on File uploaded date.If i want to filter the file on the Basis of File Created Date What i do ? I want to apply filter on Created and Modified date of File Properties
When certain conditions are met, I need to Move a box folder to a different Object and Record ID association. What is the best way to do this? I have access to both the Salesforce SDK and developer toolkit. Should i just update the box_FRUP__c object? I dont see a method for changing association, so it looks like I may need to move the folder to the Opportunity root, then change the FRUP association? I tried this though and BOX doesn’t like it. Maybe I’m doing it wrong.I have tried a few things but, its not quite working correctly: I call these two methods in a Queueable context method post conversion. public static void moveFolder(Id currentRecordId, Id destinationRecordId){ box.Toolkit toolkit = new box.Toolkit(); String currentFolderId = getRecordFolder(currentRecordId); String destinationObjectId = getObjectFolder(destinationRecordId); toolkit.moveFolder(currentFolderId, destinationObjectId, null); toolkit.commitChanges(); } public stati
Hello, this is Nobuhiro Yane.I want to create a process that automatically deletes or unshares a specific folder when a specified date arrives.I want to do this with python code.There are settings you can make in the browser.However, I couldn't find the corresponding process in the box API.Maybe I just don't know about it, and it's written somewhere?If anyone knows, please let me know.Thank you.
Hello, this is Nobuhiro Yane.I have a question about the python code for "Create collaboration" in the Box API.The API reference says, "Collaborations can be created using email addresses, user IDs, or group IDs."However, there was no example of specifying an email address in the python request example.How should I modify the example below?Does anyone know? Thank you.(Example of request)from boxsdk.object.collaboration import CollaborationRoleuser = client.user(user_id='11111')collaboration = client.folder(folder_id='22222').collaborate(user, CollaborationRole.VIEWER) collaborator = collaboration.accessible_byitem = collaboration.itemhas_accepted = 'has' if collaboration.status == 'accepted' else 'has not' print(f'{collaborator.name} {has_accepted} accepted the collaboration to folder "{item.name}"')
Hello,I was wondering why do the following upload methods return a list of files rather than one single file:Upload file POST "https://upload.box.com/api/2.0/files/content" Returns the new file object in a list.Upload file version POST "https://upload.box.com/api/2.0/files/12345/content" Returns the new file object in a list.I’m using the .NET Gen SDK which provides the `await boxClient.ChunkedUploads.UploadBigFileAsync` method that returns a single file instead of a list of files. Why doesn’t it return a list of files as the file is chunked? Thank you for the clarifications,Best regards,Antonin
The Box Doc Gen APIWe are incredibly excited to announce the Box Doc Gen API, now available with Enterprise Advanced plan!The Doc Gen API enables customers to dynamically generate custom documents in custom and third party applications, eliminating the tedious, time-consuming, and error-prone process of manually creating and modifying mission-critical documents while significantly improving operational efficiency. The Doc Gen API empowers teams to automatically generate custom, error-free documents in a matter of seconds — reducing turnaround times, mitigating risk, and eliminating manual data entry. With just a few clicks, your teams can leverage data from any data source, and instantly generate accurate, custom documents based on dynamic templates that handle everything from conditional formatting and dynamic tables to custom images and arithmetic calculations.With the Box Doc Gen API, customers can:Leverage the Box Doc Gen Template Creator in Microsoft Word to create dynamic Box Doc
Hello,We use DocuSign for the signature of all our sales orders. With the support of DocuSign, we have created an integration (or Connect) between DocuSign and Box. This captures sales orders as they are signed. We are also hoping to use this connection to download a bulk history of a load of DocuSign signed envelopes.We have tried this a number of times - from different browsers, clearing cache & cookies etc - to sync these legacy envelopes to Box. The publish and sync works, but each time, it delivers a different amount of envelopes to our connected Box folder. DocuSign are saying that because the CSV publish worked on their end (and shows 514 envelopes), the issue is with Box. However, we’re not getting that many envelopes in Box - maximum is around 250, but varies between approx 130 and 290.What else can I try to ensure the integration works as expected?Many thanks,Tom.
What type of permissions one has to have in order to get a User Activity Report on a file that they own? I can’t obtain a User Activity Report at all. I’m part of an Enterprise + Plan.
Hello all, I’m trying to upload my first app on box. I’m coding in python, using JWT authorization and my company Admin has authorized the application. When I make my authorization call to box, I am returned the following error: {'error': 'invalid_client', 'error_description': 'The client credentials are invalid'} At the moment, I’ve bypassed it with a developer token, but would still like to know what is causing the issue. Please help! Here is my code:'Import two classes from the boxsdk module - Client and OAuth2'from boxsdk.client import Client 'Configure the JSON'import jsonimport osos.chdir('C:\\Users\\Kanayo\\anaconda3')config = json.load(open('219128_0poxwjnz_config.json'))'decrypt private key'from cryptography.hazmat.backends import default_backendfrom cryptography.hazmat.primitives.serialization import load_pem_private_key appAuth = config["boxAppSettings"]["appAuth"]privateKey = appAuth["privateKey"]passphrase = appAuth["passphrase"]key = load_pem_private_key( data=privateK
We are using box sdk and we are facing issues in injecting data to our System as connector is taking a lot of time in retrieving the data from Box. We are investigating the performance issue.Need your help to check:1. Is there any API to check how many API calls are done and how many are remaining for a account? (Account having multiple users and groups) Is there any method in box sdk which we can use to log all the API calls so that we will be sure how many API calls are happening? We see there is an option of box report in console to check API calls. How is that working and is the API value shown there is per minute or total calls?
I am trying to search if a folder exists within a parent folder My code returns all items in the parent folder parentFolder=folder = user_client_archive.folder(folder_id=mainFolderID).get() print("Parent Folder "+parentFolder.name) items = user_client_archive.search().query(query='MyFolder_NoCollab',ancestor_folders=[parentFolder],content_types=['name',]) for item in items: print(f'The item ID is {item.id} and the item name is {item.name}')
for some reason, I can create a shared link on the site, but it is not displayed during API requests. I tried to create a shared link to the file through the api, however, I get the 403 Forbidden error. What could be wrong? Do I need any special permissions?
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.