Take Your Search Game to the Next Level with Dropbox Dash  🚀✨ Curious how it works? Ask us here! 

Forum Discussion

divyeshpator's avatar
divyeshpator
New member | Level 2
25 days ago

OAuth using laravel 11

I need to know does it possible to generate access token using api and use that token entire API call?

Laravel 11 for apis
Dropbox need to storage and i need to link all data using  laravel itself!

Note : There is no any front end so i could not authenticate the via redirect!

1 Reply

  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    25 days ago

    Hi divyeshpator​,

    It sounds like you may be wanting to use long-lived or permanent access tokens. 

    Dropbox does not offer the option for creating long-lived access tokens, Dropbox issues short-lived access tokens (and optional refresh tokens) instead.

    Apps can get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. Refresh tokens do not expire automatically and can be used repeatedly. You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example.

    If this does not fully answer your question, please provide more details for your use case so we can better assist.

    If you are seeing any errors or unexpected behavior, please reply with:

    • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
    • the full text of any error or unexpected output
    • 5-10 different 'X-Dropbox-Request-Id' response header values encountering the issue

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,011 PostsLatest Activity: 3 days ago
394 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!