php - Docusign API returns Unauthorized Client

one text

Solution:

Furst make sure "Authorization" in the header is

Basic BASE64_COMBINATION_OF_INTEGRATION_AND_SECRET_KEY

not just combination of both

Referring to DocuSign Auth Code Grant guide

The obtained authorization code is only viable for two minutes. If more then two minutes pass between obtaining the authorization code and attempting to exchange it for an access token, the operation will fail.

If this is not the case, please open a support case through our support portal as we may need specific account information

Source