Skip to main content

Hello everyone, I'm having a problem trying to create an envelope.

Getting the error:
Error while requesting server, received a non successful HTTP code [401] with response Body: O:8:"stdClass":2:{s:9:"errorCode";s:27:"AUTHORIZATION_INVALID_TOKEN";s:7:" message";s:105:"The access token provided is expired, revoked or malformed. Authentication for System Application failed.";}.

All credentials are properly set. Is there any extra configuration to be done with the token received through OAuth?

Hi,

Thank you for reaching out here in the DocuSign Community.  

Normally this error happens when the request failed because the access token supplied in the request header was not valid.

Error message: The access token provided is expired, revoked or malformed.

Description

The access token in the request header is not valid for one of the following reasons:

  • It expired. Access token expiration periods for the supported authentication methods are:
    • Authorization Code Grant: eight hours
    • JWT Grant: one hour
    • Implicit Grant: eight hours
    When you make a request to obtain an access token, the expires_in field in the response contains the expiration period.
  • A user or admin has revoked consent for the app to make calls on behalf of a user. See Obtain and revoke consent for more information.
  • The access token does not have the correct format.

Recommendations


Reply