Want to know more about Dash? Check out how Amy uses Dropbox and Dash to make her day easier here! 

Forum Discussion

Bhagwant Singh's avatar
Bhagwant Singh
New member | Level 2
3 years ago

Access Token Generate with api in php

I want to generate access token for the app, it is expiring with one use only.  How can i generate it.

I'm hittting https://www.dropbox.com/oauth2/authorize?client_id=clien_id&redirect_uri=http://localhost/script/database_backup.php&token_access_type=offline&response_type=code

in the url but it is asking me username name password. when I putt my username and password it showing me error (Please sign in with a work account.).

what permission need to be active to generate acess token

2 Replies

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    Hi Bhagwant Singh,

    Since you're planning to use your script on your account only (personal, non team account), make sure no any team scope is active in your application' permissions! Seems like there is least one such scope and that's why it's forced/expected a team account to be logged in.

    Hope this helps.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    Bhagwant Singh Yes, as Здравко said, it sounds like you have enabled team scopes on your app, but don't have a team account. You can disable the team scopes on your app using the "Permissions" tab of the app's page on the App Console.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,019 PostsLatest Activity: 16 hours ago
402 Following

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 or Facebook.

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!