Skip to main content

API endpoints

Glean crawls and indexes Box content using the Box API endpoints below. All calls are read-only GET requests, except the OAuth token refresh.

Authentication

EndpointPurposeReference
POST /oauth2/tokenRefresh the access token using the client ID, secret, and refresh token.Refresh access token

Identity

EndpointPurposeReference
GET /2.0/usersList enterprise users to determine which users and content to index.List enterprise users
GET /2.0/users/meGet the authenticated service account's own user information.Get current user
GET /2.0/groupsList enterprise groups, used for permission modeling.List groups for enterprise
GET /2.0/groups/{group_id}/membershipsList the members of a group, used for permission modeling.List members of group

Content

EndpointPurposeReference
GET /2.0/folders/{folder_id}Get folder metadata.Get folder information
GET /2.0/folders/{folder_id}/itemsList the items within a folder for indexing.List items in folder
GET /2.0/folders/{folder_id}/collaborationsList a folder's collaborations, used for permission modeling.List folder collaborations
GET /2.0/files/{file_id}Get file metadata.Get file information
GET /2.0/files/{file_id}/contentDownload file content for indexing.Download file
GET /2.0/files/{file_id}/collaborationsList a file's collaborations, used for permission modeling.List file collaborations
GET /2.0/searchLocate content and folders by query.Search for content
GET /2.0/shared_itemsResolve a shared item from its shared link.Get shared item

Activity

EndpointPurposeReference
GET /2.0/eventsFetch enterprise and user events to keep content and permissions fresh.List enterprise events
Was this page helpful?