'Docusign Demo - One or both of Username and Password are invalid

I have followed multiple threads but unable to resolve the issue. With the following endpoint:

https://demo.docusign.net/restapi/v2/login_information

getting 200 and accountId, but when I try to POST with following:

/restapi/v2/accounts/{accountId}/envelopes

I get the following error:

401 - One or both of Username and Password are invalid



Solution 1:[1]

You need to obtain a valid access token using OAuth either Auth Code Grant, or JWT. You are either attempting to use an expired token, no token at all, or you are using an older authentication mechanism no longer supported. Please use official documentation by DocuSign.

Note these URLs are for old v2 API, need to use v2.1 API

Recommend you try the Python Quickstart as it configures all you need to make API calls for you.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Inbar Gazit