Issues viewing Document data through Document API Endpoint GET /public/v1/documents
I know there are documents in the site but not able to see any document data in the API responses returned from requests made against the GET /public/v1/documents endpoint.  We have all READ/WRITE permissions on the account.  I've tried both passing the Document ID and also tried getting all Documents via the general Documents endpoint.  Is there a reason why we would not see any documents through these endpoints given that we have permission on the account and know there are documents that do exist in the site?

  • Hi Vikas,   We still have yet to hear back from the team around any of the recent queries above.  Is there a timeline you can give us for a fix and can you give us some guidance around the above questions?  This is hindering the project's progress immensely at this stage and we are looking to get this resolved in the near future.   Thanks, Chad
  • Hi Vikas,   Wanted to check-in and see if there were any updates around the above or if you would be able to let us know how the 10000 documents currently available are selected.   Thanks! Chad
  • Hi Vikas,   Ok.  Please keep us updated on this issue.  Is there perhaps an estimate for when you anticipate it being resolved?  Additionally, do you know how the first 10000 are selected, or is it random each time?   Thanks, Chad
  • Hi Chad,   It looks like you have stumbled upon a current limitation on RightSignature GET /public/v1/documents API. Currently we are only returning first 10000 results. We are evaluating a fix for the same.   Best Regards, Vikas
  • Hi Vikas,   Another question we have is around how we would pull more than 10000 documents down.  For example, are we able to pull the first 10k, and then make another call for any remaining documents?  How could we go about doing that, or could you share any additional context around this topic?   Thanks, Chad
  • Hi Vikas,   Following up here.  Appreciate the suggestion above.  I relayed this to the team but we opted to add a new API Key under a different account that has the appropriate permissions across all documents.  I am now able to retrieve 200 total pages of documents.   For some context around why we need all documents:   We are writing an API integration on behalf of our mutual client (HWE) that requires that we query the documents based upon the document name and update our system based upon the document metadata.  We will not have access to the RightSignature document ids prior to the query.  We are open to other suggestions if the team has any in regard to querying documents by name.   Thanks, Chad
  • Hi Chad,   Sorry, the last solution that I pointed out didn't work as expected. I was talking to our team and they mentioned that by design the API key belongs to a particular user and therefore the calls like GET /public/v1/documents are scoped to that user. The correct way to be able to get the documents belonging to a different user in your account, you would need to use oAuth flow, get the other account's authorization that you want to access their account. Once authorization is complete, you would be able to make calls on the other user's behalf and be able to get all the documents that belongs to them. So, to summarise Use this to create authorization URL and send it to the user. Ensure that you specify proper scope(read write) and redirect uri matches to that specified under the API. The user then authenticates and grants access to the API. On successful authorization you will get a code sent to you redirect uri. Use that code to get access token as described in this documentation. Then you can use the access token as a Bearer token while making calls to RightSignature public API. Please let me know if this works for you. Also, we wanted to get some understanding about the need to get all the documents via public API. Can you please let us know the use case that you are trying to solve?   Thanks and Regards, Vikas
  • Hi Vikas,   You were correct.  I checked back with the owner and the API account was not verified for the account under 'dlin***@hwehotels.com'.  He has correctly added the API account under the list of verified emails and we are now able to receive a response from the endpoint.  However, we are only receiving two documents through the endpoint when we know that there are many more in the system.  Is there a particular reason why we would not receive all documents via the endpoint?   Thanks for incorporating the instructions around verifying emails in the API documentation.  That should be helpful for others.  We appreciate the team's help on this so far as well!   Chad
  • Hi Chad,   I cross checked in our backend. If I am correct, the name of your client application is 'DealCloud'. The owner of the client application is 'dlin***@hwehotels.com' and there is only one verified email in it and that is the email of the owner himself. Basically, the API account owner should have the rest of the emails verified in his account to be able to get their documents via public api. Please confirm it once with the account owner and let me know if my understanding is right.   I think this particular requirement is not very clear in the API documentation, we will incorporate it and try to make it more clear.   Best Regards, Vikas
10 of 15
This question is closed.