Skip to main content

Can I make a REST call to check the count of pending envelopes for any particular user?

What I want to achieve: I have to get list of all pending envelopes for any user who is belongs to my organization or that user is a part of my account. Envelopes can be send by any sender

Actually, GET https://demo.docusign.net/restapi/v2.1/accounts/{{accountid}}/folders/ this call is returning me the folder id of my folder, but I want to check for other users folder.

for example: I am the admin, and I have 5 users in the dousign, I have my account ID from which I can request folder ID by using (GET https://demo.docusign.net/restapi/v2.1/accounts/{{accountid}}/folders/) method. But if I want to know the folder id details of the remaining 5 users then how can I get that details as I won't be having their accountID's.

If I know their account id shall I pass their account id in request ?
I have tried to pass different user account Id in request but getting below error:
{
    "errorCode": "USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT",
    "message": "The specified User is not a member of the specified Account."
}

Please let me know if anything is possible ? I am very much trying to resolve this issue.

@AnaghaPingale

You can use the listStatusChanges endpoint to search for envelopes and filter by the user and status by providing the query parameters from_date, status, user_name and email.
https://developers.docusign.com/docs/esign-rest-api/how-to/list-envelope-status-changes/
https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopes/liststatuschanges/

All users need to be in the same DocuSign account, you cannot query a different DocuSign account. I think there may be a misunderstanding in regards to the account id. It is the same account id for every user, but each user will have a different user id.


Reply