We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

dmytromaliuta's avatar
dmytromaliuta
Explorer | Level 3
5 years ago

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-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    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.

  • dmytromaliuta's avatar
    dmytromaliuta
    Explorer | Level 3
    5 years ago

    My request looks like:

     

    curl --location --request POST 'https://api.dropboxapi.com/2/paper/docs/get_metadata' \
    --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-alpha
    Can you check it and tell me where I can find doc_id for this endpoint?
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    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.)

  • dmytromaliuta's avatar
    dmytromaliuta
    Explorer | Level 3
    5 years ago

    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?

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers814 PostsLatest Activity: 3 years ago
277 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!