'Get 401 attempting to add attachment to envelope

I am using this endpoint

PUT /restapi/v2/accounts/{accountId}/envelopes/{envelopeId}/attachments

to add an attachment to an envelope in Postman. It gives me a 401 (unauthorized). However, when I use the SAME account id and envelope id to issue a resend using

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

it works fine. What do I need to do to correct my problem?

Screen capture of Postman

Screen capture of request and response in Postman



Solution 1:[1]

The error message is

The specified Integrator Key was not found or is disabled. An Integrator key was not specified.

See this article for info on the fix. From the article:

The message "An Integrator key was not specified" typically means DocuSign wasn't able to parse your authentication header. If you're using Legacy Header authentication, confirm your x-DocuSign-Authentication header is present, follows the correct JSON or XML formatting, and has no special characters or trailing spaces.

If this error occurs while you're using an OAuth Authentication workflow, confirm your header has a key of authorization, and the value has a prefix of Bearer before the token.

The transaction was not in the API logging record

This is because the error occurred during the authentication phase of the request. Since the request could not be authenticated, it could not be associated with your user ID and its logging record.

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 Larry K