A community space to collaborate on Box APIs, explore SDKs, and build powerful applications
Recently active
I created personal Box account and am attempting to request a token using the client ID and secret. I am getting the following error. {“error”:“invalid_grant”,“error_description”:“Grant credentials are invalid”} Here are my application settings and requests: App access level : App + Enterprise access Authentication method: Server Authentication (Client Credentials Grant) curl -X POST https://api.box.com/oauth2/token -d “grant_type=client_credentials” -d “client_id=redacted” -d “client_secret=redacted” -d “box_subject_type=user” -d “box_subject_id=redacted” I am providing the user_id of my Box account as the box_subject_id.
Hi Team, I have some box folders on https://gehealthcare.box.com and I am trying to upload files on the same using python scripts which are executed via jenkins. I am currently using JWT without SDK approach and I am able to get the token but when I pass that token to my box URL where the files needs to get uploaded I am getting below error message: upload_response.text: {“type”:“error”,“status”:404,“code”:“not_found”,“context_info”:{“errors”:[{“reason”:“invalid_parameter”,“name”:“parent”,“message”:“Invalid value ‘d_139168108673’. ‘parent’ with value ‘d_139168108673’ not found”}]} Here 139168108673 is my folder id where the file needs to get uploaded. Kindly help as it is quite urgent. Looking forward to hear from you. Thanks, Shailendra Jetpuria
I am getting below error when I have concurrent request to have a Box Token. {“error”:“invalid_grant”,“error_description”:“Please check the ‘jti’ claim. A unique ‘jti’ value is required.”} Java Box SDK - 2.32.0
I am trying to call the Box api with c# and search for documents and get their metadata. I am able to see the metadata when I pass “metadata.enterprise.{metadata_template_key}” in a string array into the fields for the Search Manager. How am I able to extract that data? I do not see a way to get it from the BoxItem type. I know I can make a second call to get the metadata directly but I would have to make this call on all the documents the search api returned. I would like to prevent making so many calls if possible.
Hi there! Our app uses box-ui-elements and we want to start using the latest annotations API functionality with text highlight, drawing, mentioning and more. We already updated box-ui-elements to the latest version, but it didn’t give expected result, annotations were still not highlighted So I have a question: Does box-ui-elements already use the latest annotations API functionality or integration is still in progress? Thank you in advance!
Writing your first Box app is sort of magical; in a couple of hours, you can go from having nothing to integrating with a bulletproof cloud filesystem. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/everything-i-learned-debugging-my-first-box-app-c47e41b765a5?source=rss----a995c24848a3---4
This is the place to discuss the Box API Postman collections. Let us know if you found a bug, saw an inconsistency with the documentations or even have suggestions on how to improve the collection.
Hi folks, Hi folks, thinking that you use the Box Postman Collection to interact with our API, I wanted to share this with you: With the objective to make our API Postman collection more flexible, I’ve been working on it so that it supports all of Box authentication types Developer Token, OAuth, CCG, and JWT. The idea is to detect the type of environment selected, and adjust the token refresh accordingly. I’ve also created a few helper methods to create these environments. I would very much like you take it for a spin, and send some feedback. You can fork this collection from here. You can leave your feedback by replying to this post. And of course ping me with any questions. Cheers
Let’s face it, every product has its own jargon. To support the onboarding process and increase the level of comprehension of the Box documentation, I prepared the Box Platform Basic Glossary. I’m sure this post will help you get a grasp of the most important concepts and jumpstart your new content-based cloud-based solutions. The list covers the basics; we’ll expand it soon in our documentation portal. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-platform-basic-glossary-6d72fff22d69?source=rss----a995c24848a3---4
We are excited to introduce the latest generation (currently in Beta) of Box Python SDK, designed to elevate the developer experience and streamline your integration with the Box Content Cloud. With this release, you’ll have access to: Full API Support: The new generation of Box SDKs empowers developers with complete coverage of the Box API ecosystem. You can now access all the latest features and functionalities offered by Box, allowing you to build even more sophisticated and feature-rich applications. Rapid API Updates: Say goodbye to waiting for new Box APIs to be incorporated into the SDK. With our new auto-generation development approach, we can now add new Box APIs to the SDK at a much faster pace (in a matter of days). This means you can leverage the most up-to-date features in your applications without delay. Embedded Documentation: We understand that easy access to information is crucial for developers. With our new approach, we have included comprehensive documentation for
Hi, While fetching files from user of my organization. I am unable to fetch shared documents which is shared by user which is not in my organization. So, is it expected behavior. Also, in total count it displayed count with shared files but in entries it did not return the shared files.
Hello, I’m just getting started with Box CLI and need a way to batch remove hundreds of external users that have tens of thousands of collaborations within an enterprise. We can remove one at a time from the legacy admin dashboard, but I’d like to do this in batch via Box CLI, as advised by Box Support. I can’t find any documentation on external users specifically, only on the individual collaborations of managed users. Thoughts? -Vlad Weinstein
I regularly access files over FTP. This has not been a problem until recently. But at the moment, although FTP login is still successful, I receive a “Error on input file” error when attempting to get any file. Please help me resolve this.
Box now connects content workflows between Salesforce and Slack with a new Salesforce Developer Toolkit feature, details here Join for a live demo at our Community Roundtable next week. Box for Salesforce Community Roundtable
I wanted to answer a question from one of our Community Roundtable members @NLeo here in the forums so that others may benefit from the approach. Question from @NLeo: How can we load Content Explorer and Content Uploader UI Elements in Experience Cloud? Here are you current options: Wait a few weeks until our team releases UI Elements for Experience Cloud within our managed package. You can leverage a screenflow and drag and drop the existing Ltn components within a screen. The downside to this approach is that you’ll need to run the screenflow as the Box service account and will not show up the Experience/Community user performing the Box actions. I have an open source community project that can be modified for your specific use case. I would treat this as a starter and by no means as production-ready unmanaged package: https://github.com/kylefernandadams/box-ui-elements-lwc If your timelines are flexible Option 1 is the obvious choice. Option 2 isn’t my favorite, but if you
We are excited to introduce the latest generation (currently in Beta) of Box TypeScript SDK, designed to elevate the developer experience and streamline your integration with the Box Content Cloud. With this SDK, you’ll have access to: Full API Support: The new generation of Box SDKs empowers developers with complete coverage of the Box API ecosystem. You can now access all the latest features and functionalities offered by Box, allowing you to build even more sophisticated and feature-rich applications. Rapid API Updates: Say goodbye to waiting for new Box APIs to be incorporated into the SDK. With our new auto-generation development approach, we can now add new Box APIs to the SDK at a much faster pace (in a matter of days). This means you can leverage the most up-to-date features in your applications without delay. Embedded Documentation: We understand that easy access to information is crucial for developers. With our new approach, we have included comprehensive documentation for
In the world of collaborative document management, the ability to share files and folders seamlessly is paramount. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/demystifying-shared-links-a-developers-guide-c59a039ddbd1?source=rss----a995c24848a3---4
Introducing: Template APIs for Box Sign! Finally we can use the ‘/sign_request’ end point to create a signature request. Let’s start with the ‘template_id’: This functionality is currently broken. If a template_id is added to a sign_request, the request fails with a 404. Without the template_id, the sign request works as expected. The same 404 behavior is seen with the sign_templates/:template_id request to get a specific template by ID.
Looking to get advice on how to use content explorer and uploader in salesforce experience cloud as i seen in jan roundtable
Happy Dreamforce week 2023!I’m back again for a second time this week to show off a new Salesforce Flow template included in the Box for Salesforce managed package: Create Box Folder/Slack Channel Mapping. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-salesforce-flows-with-slack-integration-mappings-180e5a09e978?source=rss----a995c24848a3---4
Hey, I’m new to using box and I’m trying to explore the SDK/APIs. I want to generate a pre signed url (like in S3) to allow the user to upload files directly through my UI without having them interact with box. Also, is there a way to test the paid features like get a direct download link using my free dev account?
I am using the Box Sign API to create sign requests based on a sign template named “SimpleAckTemplate.pdf” for example. By default, both the sign document and the signing log would be named “SimpleAckTemplate (1).pdf” and “SimpleAckTemplate (1) Signing Log.pdf” respectively. I would like to change the file names using the “name” parameter in the API changing it to “SimpleAckTemplate_nnn” where nnn is our internal number. It seems to work partially as only the log file was changed. The sign file name was still defaulting to “SimpleAckTemplate (2).pdf”. I didn’t see another parameter in API that I can use. When making the sign request on Box Sign Web UI, both file names for log and sign would change per value specified on the “File Name” field. I don’t know what I am missing in the API. Thanks
I am having some issues with an Apache Groovy script. When users run this script it sometimes returns this error - it fails at the line def subFolder = parentFolder.createFolder(subFolderName).getResource() BoxAPIResponseException: The API returned an error code [404 | m75vwdhfthirxg8m.0155c36fdf223f6693c60b71343f0bfc6] not_found - Not Found Exception chain: ScriptException: com.box.sdk.BoxAPIResponseException: The API returned an error code [404 | m75vwdhfthirxg8m.0155c36fdf223f6693c60b71343f0bfc6] not_found - Not Found …caused by: BoxAPIResponseException: The API returned an error code [404 | m75vwdhfthirxg8m.0155c36fdf223f6693c60b71343f0bfc6] not_found - Not Found Some users have found clearing their cache allows them to then run this script The box folder has AutomationUser_1282163_2jhq1tTUma@boxdevedition.com as an Editor The file names are unique names and do not contain illegal characters The parent folder exists Here is the relevant code import com.box.sdk.BoxFolder def today =
Hi all, I’m using the boxsdk python lib to search for files, and then retrieve the file’s content as a string. Something like: search_results = box.search().query(<my_params>) for file in search_results: content = file.content() Problem is after this point, the Download API returns binary data that I can’t seem to decode, I’ve tried different encoding formats using python’s in-built decode, utf-8, ascii, iso, etc. Is there some way of properly decoding the binary data into string text? Of course, I’m aware this won’t work for most file types, but would at least like to get .doc, .docx, .txt files as a starting point. I also don’t need to store the content into a file locally, just need to output the file contents. Thank you!
I have created application with Client Credentials Grant and when i am trying to use it with box_subject_type=user. i am getting “Grant credentials are invalid” error. I have checked client ID and client secret and user ID. Also I have checked App Access Only as i am trying with user subject type Note: I am using newly created free account without any subscription or trial
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.