We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
dmytromaliuta
5 years agoExplorer | Level 3
Dropbox Paper API
Hello, I worked with your Dropbox Paper API and I have one question. Where I can get "doc_id" in endpoint "/docs/get_metadata"? I tried to find it and call the API method but in all cases, I get an error. Can you help me to find doc_id for my document?
5 Replies
- Greg-DB5 years ago
Dropbox Community Moderator
Exactly how you interact with Paper docs via the API for any particular account will depend on what version of Paper that account is configured to use. Please refer to the Paper Migration Guide for information on the two versions and what endpoints you should use for each.
Once you've done so, if you're still having any trouble with the API, please let me know what version your account is using, and share the API request and response for the error you're getting so I can tell a look and help. Please be sure to redact your access token though.
- dmytromaliuta5 years agoExplorer | Level 3
My request looks like:
--header 'Authorization: Bearer ***' \--header 'Content-Type: application/json' \--data-raw '{"doc_id": "uaSvRuxvnkFa12PTkBv5q"}'I checked your Paper Migration Guide but in this article no information about the endpoint that I use. I use this doc: https://www.dropbox.com/developers/paper-api-alphaCan you check it and tell me where I can find doc_id for this endpoint? - Greg-DB5 years ago
Dropbox Community Moderator
That endpoint is meant for use with legacy Paper docs (i.e., the old version, where Paper docs are not part of the Dropbox filesystem). If you are using legacy Paper docs, you can get the list of Paper doc IDs from /2/paper/docs/list and /2/paper/docs/list/continue.
(By the way, note that the alpha endpoint you linked to may change or disappear without notice, and will be retired with the rest of the legacy Paper API as well.)
- dmytromaliuta5 years agoExplorer | Level 3
Thanks a lot! Now it works. But I have one more question. Do you have an endpoint that not legacy which retrieves metadata of paper doc? Can you share the link?
- kylea5 years ago
Dropbox Staff
If a paper document is in the filesystem, it will return in API calls to files/list_folder. You may get its metadata by path or ID using files/get_metadata. Sharing metadata can be retrieved with sharing/get_file_metadata.
'Legacy' paper refers to those paper documents stored outside of the filesystem, retrieved with /paper API calls. Which mechanism a user defaults to can be found with features/get_values.
About Discuss Dropbox Developer & API
Make connections with other developers814 PostsLatest Activity: 3 years ago
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!