• Sign up
  • Docs
  • Guides
  • API Reference
  • Sample Code
  • SDKs & Tools
  • Support
  • Developer Changelog
  • Elsewhere
  • Blog
  • Forum
  • Feedback
  • International sites
  • United States (English)
  • 日本 (日本語)
Box Developer Documentation
  • United States (English)
  • 日本 (日本語)
  • Quick Starts
  • Guides
  • API Reference
  • Sample Code
  • SDKs & Tools
  • Support
    • Developer Changelog
    • UnreadMar 14th, 2023

      Box Windows SDK v5.2.0 released

      Featuresdkswindows
    • UnreadMar 8th, 2023

      Box Python SDK v3.7.0 released

      Featuresdkspython
    • UnreadMar 8th, 2023

      Downloading ZIP Archives with Box API

      Featureapi
Log in
Authentication
Select Auth Method Best Practices Box API & SSO
Tokens
Use a Token Using in SDKs Developer Tokens Refresh a Token Access Tokens Revoke a Token Downscope a Token Annotator Tokens
OAuth 2.0 Auth
Setup with OAuth 2.0 OAuth 2.0 with SDKs OAuth 2.0 without SDKs As-User Header
JWT Auth
Setup with JWT JWT with SDKs JWT without SDKs as-user Header User Access Token
Client Credentials Grant
Setup with Client Credentials Grant
App Token Auth
App Tokens with SDKs App Tokens without SDKs Setup with App Token Auth Supported Endpoints Rotating App Tokens

Use a Token

Guides Authentication Tokens Use a Token
Edit this page

Required Guides

  • GuideSelect App Type

Use a Token

Every authenticated API call requires an Access Token to be passed in the Authorization header as a Bearer Token or it will return a 401 Unauthorized HTTP status.

curl https://api.box.com/2.0/users/me \
    -H "authorization: Bearer EGmDmRVfhfHsqesn5yVYHAqUkD0dyDfk"

Use the GET /users/me endpoint to inspect what user an Access Token is authenticated for.

Related Guides

  • GuideAuthentication
  • Box & Community
  • About Us
  • Platform Twitter
  • Developer Blog
  • Developer Newsletter
  • Changelog
  • GitHub
  • Community GitHub
  • Tooling
  • Node SDK
  • Java SDK
  • Python SDK
  • .NET SDK
  • iOS Content SDK
  • Android Content SDK
  • Box CLI
  • Box Skills Kit
  • Samples
  • Platform Samples
  • Skills Samples
  • Support
  • Support & Community
  • Create a ticket
  • Platform Forum
  • Product Feedback
  • API Status
  • International sites
  • United States (English)
  • 日本 (日本語)
  • ©2023 Box
  • Sitemap
  • Newsletter Unsubscribe
  • Terms of Use
  • Privacy Policy
  • Cookie Notification
  • Code samples provided under Unilicense