Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

athnetix's avatar
athnetix
Explorer | Level 3
6 years ago
Solved

Need Help ON API HTTP POST

Brand new user to DropBox API and have run into a issue trying to run an API.   I am able to get thru the Auth2 verification OK in my code and now want to just run a simple API. So I tried with th...
  • Greg-DB's avatar
    6 years ago

    No, the "Authorization" header value should not be JSON. It should be plain text of the format: 

     

     

    Bearer ACCESS_TOKEN_HERE

     

     

    You can find an example of what a call to /2/file_requests/count would look like using curl in the documentation

     

    For reference, /2/file_requests/count is an "RPC" style endpoint, so any API call parameters (separate from the Authorization) it takes would be expected as JSON in the request body, not a header. Note that /2/file_requests/count in particular doesn't take any API call parameters anyway though, so you don't need to supply a request body when calling it.

     

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!