Box

Platform for secure content management, workflow, and collaboration

Go to site

Box API Integrations

Build and run workflows using the Box API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

With the Box API, you can build applications that:

  • Access files stored in Box
  • Upload or download files
  • Search for files and folders
  • Modify files and folders
  • Manage comments, tasks, and notifications
  • Work with content collaboration
  • Integrate withBox View to display PDFs, Office documents, and more
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    box: {
      type: "app",
      app: "box",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.box.com/2.0/users/me`,
      headers: {
        Authorization: `Bearer ${this.box.$auth.oauth_access_token}`,
      },
    })
  },
})
Search Content with Box API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Box
 
Try it
Send Message (Advanced) with Discord Webhook API on New Event from Box API
Box + Discord Webhook
 
Try it
Search Content with Box API on New Message from Discord API
Discord + Box
 
Try it
Search Content with Box API on New Message in Channel from Discord Bot API
Discord Bot + Box
 
Try it
Search Content with Box API on New Submission from Typeform API
Typeform + Box
 
Try it
New Event from the Box API

Emit new event when an event with subscribed event source triggered on a target, See the docs

 
Try it
New File Event from the Box API

Emit new event when a new file uploaded on a target, See the docs

 
Try it
New Folder Event from the Box API

Emit new event when a new folder created on a target, See the docs

 
Try it
Search Content with the Box API

Searches for files, folders, web links, and shared files across the users content or across the entire enterprise. See the docs here.

 
Try it
Upload a File with the Box API

Uploads a small file to Box. See the docs here.

 
Try it

Authentication

Box uses OAuth authentication. When you connect your Box account, Pipedream will open a popup window where you can sign into Box and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Box API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. authorization
    GEThttps://account.box.com/api/oauth2/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://api.box.com/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://api.box.com/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}