• Sign up
  • Docs
  • Guides
  • API Reference
  • SDKs & Tools
  • Support
  • Elsewhere
  • Blog
  • Forum
  • Feedback
  • International sites
  • United States (English)
  • 日本 (日本語)
Box Developer Documentation
  • United States (English)
  • 日本 (日本語)
  • Quick Starts
  • Guides
  • API Reference
  • SDKs & Tools
  • Support
Log in
Authentication
Select Auth MethodBox API & SSO
OAuth 2.0 Auth
OAuth 2.0 with SDKsOAuth 2.0 without SDKsAs-User Header
JWT Auth
JWT with SDKsJWT without SDKsas-user HeaderUser Access Token
App Token Auth
App Tokens with SDKsApp Tokens without SDKsSupported EndpointsRotating App Tokens
Access Tokens
Access Token ObjectUse a TokenUsing in SDKsDeveloper TokensRefresh a TokenRevoke a TokenDownscope a TokenAnnotator Tokens
User Types
App Users & Service AccountsManaged Users
GuidesAuthenticationAccess TokensUse a Token
Edit this page

Use a Token

Related

  • 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 Unautorized 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
  • Engineering Blog
  • Newsletter
  • Changelog
  • GitHub
  • Community GitHub
  • Tooling
  • Node SDK
  • Java SDK
  • Python SDK
  • .NET 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)
  • 日本 (日本語)
  • ©2020 Box
  • Sitemap
  • Subscriptions
  • Terms of Use
  • Privacy Policy
  • Cookie Notification
  • Code samples provided under Unilicense