You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Bk13's avatar
Bk13
Explorer | Level 4
9 months ago

weboohk notification request only sends API v1 user IDs

Hi, we have set up an application and a webhook endpoint that was enabled successfully, after authenticating a user against our application (using the OAuth2 login flow with an offline token) we test the webhook and it seems we do get a notification to our endpoint every time we upload to that user`s dropbox, however the notification request only sends the API v1 userId and not the listFolder Account id(API v2), this causes issue as these ids are deprecated and we can`t query the API with our SDK (we are using C# SDK) with this user id. we log all notification requests :

"{"ListFolder":null,"Delta":{"Users":[2123459457]},"UploadType":null}" 

as you can see, only the Delta.Users is populated.

contrary to what is written in the documentation here :

https://www.dropbox.com/developers/reference/webhooks#documentation.

  • I just tried the webhook functionality and it is populating the API v2 account IDs for me.

     

    I notice that the output you shared isn't in the original payload format that Dropbox sends in webhook notifications though. For instance, you have a key "ListFolder" whereas the Dropbox webhook payload contains "list_folder". So, it looks like your code is building that object somehow. Please check the original payload for comparison, and debug how that object is being built in your code.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    I just tried the webhook functionality and it is populating the API v2 account IDs for me.

     

    I notice that the output you shared isn't in the original payload format that Dropbox sends in webhook notifications though. For instance, you have a key "ListFolder" whereas the Dropbox webhook payload contains "list_folder". So, it looks like your code is building that object somehow. Please check the original payload for comparison, and debug how that object is being built in your code.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 3 years ago
325 Following

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!