A community space to collaborate on Box APIs, explore SDKs, and build powerful applications
Recently active
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.
Iam trying to index the files to Open search using Box. I have a requirement for the incremental indexing. Whenever a file/folder is uploaded in Box, it should trigger the API and the files should be indexed into Opensearch.
I am using the Box Node SDK to upload a file, and the upload is successful because I have the file ID and can download the file. However, the issue I'm facing is that I cannot find the file or the folder I created when uploading it on the 'My Account' page.I would really appreciate any help. Thank you, everyone.
Hi, I am looking for enabling Box managed universal links for iOS devices. I want to set universal links for Box, that when a user receives an email with Box URL it will open the Box app instead of managed browser. Does anyone the correct format?
Hello! We’re a company exploring cloud storage solutions for a project we’re building for our clients, and Box is at the top of our list. Before moving forward, we want to confirm whether the platform can meet some specific requirements, particularly around user access and download control.Below, I’ve outlined our key needs, and we’d greatly appreciate any insights on whether these features are supported natively or can be achieved using the API. Storage Capacity: We require at least 10TB of cloud storage to share with multiple users (between 100 and 1,000 users). Access for Users: Users should be able to access shared folders via the desktop app without requiring local storage space (e.g., files remain in the cloud and download on demand). They will have view-only permissions, allowing them to open and preview files but not edit them. Download Control: It is critical for us to monitor and restrict downloads per user over defined time periods. For example: Users on a trial perio
I put Box Sign projects on hold for a year in hopes box.com would fix various web UI bugs insigning documents.Sadly, I still see an unacceptable overstrike and now even multiple font sizes on that overstrike, etc. But now that I’ve come back, I find that I can no longer get CCG to work with the User ID set inthe app. ( CCGAuth() in Python SDK. ) The initial authorization works when using Enterprise IDBUT that is not what I want because when using the Enterprise ID, it never could access mytemplates--They were only accessible when using the user id. (the User ID in the app config.)( It was previously able to access them when using the “user” argument to CCGAuth(). )I changed nothing. It stopped working. Yes it was still authorized then reauthorized for good measure.Is this a bug or a feature? And is there a way to get the old behavior? Other than this:Sadly I had to switch back to regular OAuth2 using the annoying 1 hour temporary dev tokenswhere it still will access the template
uri = URI('https://api.box.com/oauth2/token') token_request = Net::HTTP::Post.new(uri) token_request['Content-Type'] = 'application/x-www-form-urlencoded' token_request.set_form_data( 'client_id' => BOX_CLIENT_ID, 'client_secret' => BOX_CLIENT_SECRET, 'grant_type' => 'client_credentials', 'box_subject_type' => 'user', 'box_subject_id' => BOX_CLIENT_USER_ID ) response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http| http.request(token_request) endI have the above Ruby code which has been giving an access token consistently for the past 6 months. However, yesterday it seems to be no longer providing the access token.Instead, now I get the response:{"error"=>"invalid_grant", "error_description"=>"Grant credentials are invalid"}I verified that the Box Dev App is still Enabled and Authorized. I also checked that the credentials hadn't changed. Is something else going on that I'm unawa
Hello, I have a box standard account and want to upload artefacts/files from our Gitlab pipeline to the account. Since the upload is done from a pipeline, I decided I created a box app with client credentials grant authentication. When I execute the authentication command below, I get : {"error":"invalid_grant","error_description":"Grant credentials are invalid"} curl -i -X POST "https://api.box.com/oauth2/token" \ -H "content-type: application/x-www-form-urlencoded" \ -d "client_id=craxv9gzavoiyj5knhu88kot0yv3sej6" \ -d "client_secret=XXXXXXXXXX" \ -d "grant_type=client_credentials" \ -d "box_subject_type=enterprise" \ -d "box_subject_id= 0"The client_id and client_secret are correct. I tried providing “user” as box_subject_type and my user id but it didn’t succeed either.Additionally, I also tried to set the access level to “App + Enterprise Access”. I read that I need to create a service account. However, I can’t find any settings to do this. I read in oth
Quando salvo o arquivo ele ate vai pra pasta, mas retorna esse erro
Box as a platform support multiple types of Users. Here are different user types and their descriptions including use case. Let us know if you want to know more about a user type or have a question on use cases. User Type Description Admin User Overall owner of Box Enterprise instance Configures global security and content settings Responsible for enabling/authorizing Custom Applications – including review of authorized scopes Use Cases: Required for all use cases. Managed User Standard knowledge worker would use this type of account to access the Box first-party applications (web, mobile, drive, etc.) - either through Box credentials or SSO Use OAuth 2.0 to authorize Box partner integrations (Salesforce, Teams, Slack, etc.) Can use JWT Authentication if Custom Application's "Application Access" setting is set to Enterprise and application has been authorized by the Enterprise's Admin Consumes a standard Box license – account is owned by your Box
Hello,Please, anyone has some tips to solve this problem with images storage with BOX platform
Does anyone have some sample code to upload a file with Python SDKGEN? (nothing fancy, just an small file, so I don’t need multipart uploads, etc). I see the following in the docs :parent_client.uploads.upload_file( UploadFileAttributes( name=get_uuid(), parent=UploadFileAttributesParentField(id="0") ), generate_byte_stream(1024 * 1024),)This seems overly complex and I’m not sure how to implement it. Do I really need the generate_bye_steam line? why? And am I supposed to import the UploadFileAttributes and UploadFileAttributesParentField functions and call them? Yuck. In the old SDK I just did this:new_file = box_client.folder(OUTPUT_FOLDERID).upload(file_name)
I’m a developer together with Coro Cybersecurity and we add a layer of security on top of box. The customer gives us access to box, and we make sure there is nothing in this data layer that could compromise their security. One of our requirements is to get a list of all integrations that are active for a given customer.I’ve been playing around with the console and you can clearly see that there is a list of integrations both available and installed in distinct tabs. However, I cannot find an endpoint that allows me to query for them.I’ve got two questions:Is my assumption correct, that you do not allow to programatically get information about these integrations? If the answer to 1 is yes, will this ever be supported?The closest thing I’ve seen to what I want is here: https://developer.box.com/reference/get-integration-mappings-slack/ but the documentation is broken at some points and I’m not sure we would want to offer this feature to our customers without it being fully complete. I t
What happened to all of the request examples on the Box API References? https://developer.box.com/reference/
I’m runng a script on my local machine: from boxsdk import Client, OAuth2from boxsdk.exception import BoxAPIException# Authenticate with Boxoauth2 = OAuth2( client_id='xxxxxxxxx', client_secret='xxxxxxxxx', access_token='xxxxxxx' # Replace with OAuth token for production)client = Client(oauth2)try: # Get the root folder root_folder_id = '0' folder = client.folder(folder_id=root_folder_id) # Print basic folder information folder_info = folder.get() print(f"Accessing folder: {folder_info.name} (ID: {folder_info.id})") print(f"Total item count in folder: {folder_info.item_collection['total_count']}") # Retrieve and list items in the folder with a higher limit items = list(folder.get_items(limit=1000)) # Check if items are in the folder if not items: print("No items found in the root folder.") else: # Print details of all items in the folder for item in items: print(f"Item: {item.name} (Type: {item.type}, ID: {it
A government agency publishes a public folder to share a data set. I have no relationship with the publisher, thus no credentials. With the web browser interface, no authentication is required, works really well, can download every file. The Python SDK is getting super difficult for the task of accessing a public box folder. I can retrieve a list the file and folder names When I try to get anything with the file object file(file_id=item.id).content … download_url(), download… I get a 404 error, Not found. The assumptions I’m making: I need a developer account I need to create a custom app Select an auth method (e.g. OAuth) 3.5 Download the 3 secrets (client_id, client_secret, token) from custom app. Build a client object with the OAuth 5 With either the URL or the folderID get an object to the root folder. Iterate over objects in the root_folder Based on one post from Box engineer, I get the sense these developer accounts and credentials don’t give you “Permissions” on public folders
i can see svg inside html markup when it comes files extensions. of couse i can copy, paste and hardcode then. we’ve got box.com pckg installed on our salesforce orgthe question is - is it possible to find some inside the package or it always get rendered online?
I’m trying to experiment with the Box CLI as a proof of concept for Metadata querying. I’ve created a command like the one below and when I hit enter, it just sits there (one’s been going for well over 10 minutes) but no errors. What am I missing? box metadata-query enterprise_###.### <folderID> --query "projectNumber =:projectNumber" --query-params projectNumber=190153 --limit=10I’ve tried the same query with projectNumber=”190153” and get the same thingI’ve tried at different folder levels. I can create this same query in Web app and the decoded parameter isprojectNumber","value":{"enum":["190153"]} I’ve verified that my scope and template matches what’s returned in the Web App URL. The metadata field is a text value and I suspect that’s where my problem is. Thanks!
I have implemented the Box Content Viewer including the Content Sidebar showing activities. The sidebar contains a drop-down that should allow you to add a task. When clicking this I get two options, but when I select one of the options nothing more happens. It should open a dialog where you can enter your task.Anyone knows how to fix this?
Hello everyone,At work, I am often shared a box.com link and I have to download the files in those shared link as part of my day to day work. So I need to open the link in a browser, select the files and then download them.Due to the number of files I need to process, I am trying to automate these steps. Using AI tools, I have managed to come up with a VBA code that would download publicly shared files (For reference I am not allowed to install other programming language, so VBA is my only option).The problem is that it only works for publicly shared files, my company use an enterprise version of box.com and the url shared are like this:https://COMPANYNAME.ent.box.com/s/RANDOMNUMBERS&LETTERS The file links are then found and they are:https://COMPANYNAME.ent.box.com/s/RANDOMNUMBERS&LETTERS/file/FILEID Is there any way I can modify it to make it work with the API. If anyone is interested, I am trying the following code, I just cant download the correct file Sub DownloadFileFromBo
I tried to get all representations of a file like this:curl https://api.box.com/2.0/files/123?fields=representations \ -H "authorization: Bearer ACCESS_TOKEN"I just get the message: no matches found. If I omit ?fields=representations I do get a response, so it looks like ?fields=representations is not working.I also tried getting a basic thumbnail:curl -i -X GET "https://api.box.com/2.0/files/12345/thumbnail.png" \ -H "authorization: Bearer <ACCESS_TOKEN>"I do get a file, but it’s just a generic image showing the file type.Is there any way to get a thumbnail that shows some of the actual content of a PDF file?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.