Skip to main content
Question

Force reauth issue?

  • 4 September 2024
  • 2 replies
  • 15 views

Hey, lately I’ve encountered a very strange behaviour of the platform. When i try to visit `https://app.docusign.com/api/accounts/{account-id}/envelopes/{envelop-id}/documents/1`, disregarding if I’m already logged in, platform starts redirecting me with all these oauth bullshit. And those redirects definitely have some markers, that tell it to redirect me back, to the page I intend to visit, but something goes wrong and I eventually stop on `https://apps.docusign.com/send/page-not-found` landing page. The fun part begins, when I try to visit the same document with Postman, when i add exactly the same request params as my browser (cookies and stuff) - system does not want me to re-authenticate, it simply returns my document. Help me understand, if it’s a bug or a feature?

 

Hey, lately I’ve encountered a very strange behaviour of the platform. When i try to visit `https://app.docusign.com/api/accounts/{account-id}/envelopes/{envelop-id}/documents/1`, disregarding if I’m already logged in, platform starts redirecting me with all these oauth bullshit. And those redirects definitely have some markers, that tell it to redirect me back, to the page I intend to visit, but something goes wrong and I eventually stop on `https://apps.docusign.com/send/page-not-found` landing page. The fun part begins, when I try to visit the same document with Postman, when i add exactly the same request params as my browser (cookies and stuff) - system does not want me to re-authenticate, it simply returns my document. Help me understand, if it’s a bug or a feature?

 


Hi @yurii.tatur,

I hope this message finds you well.

The links you mentioned in your post are designed to be used through the web portal and are not part of our API.

To retrieve documents via the API, you should use the getDocument endpoint:  
`/restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}`.  
You can find more details about this endpoint in our API reference documentation here.

If you're encountering issues or have questions while using the REST API to retrieve documents, the best course of action is to open a support case with us. This will allow us to gather relevant account details, such as your Integration Key and Account IDs, to properly investigate the issue.

I hope the information above clarifies your question.

Best regards,  
Leandro Reis


Reply