Skip to main content
Box Employee
May 22, 2025 9:05 AM UTC
Question

Cannot authorize with this service

Hi,

 

having problems authenticating.  I put the developer's token into the query, but I only get 401.

If intentionally mangle the URL, I don't get any response at all, so I know that its actively rejecting the request.

 

any help please. thanks.

 

curl https://api.box.com/2.0/folders/0 -H "Authorization: Bearer DEV_TOKEN"


{"type":"error","status":401,"code":"unauthorized","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Unauthorized - Cannot authorize with this service","request_id":"removed for privacy0573baede690bf"}

    2 replies

    Box Employee
    May 22, 2025 9:05 AM UTC

    same command works with a free developer account, so API must be disabled for my company.

    Translate
    Box Employee
    May 22, 2025 9:05 AM UTC

    The Box Admin for your company must authorize your application. Here's the documentation on how to do that: https://community.box.com/t5/For-Admins/Enabling-Custom-Built-Applications/ta-p/2188

    Translate