I'm getting USER_AUTHENTICATION_FAILED errors when creating envelopes via the API in production, even though JWT token generation and get_user_info() succeed.
Setup:
- Production account: eSignature Business Pro
- Authentication: JWT (Service Integration with RSA keypair)
- Integration Key
- SDK: docusign-esign Python
What Works:
JWT token generation succeeds
get_user_info() returns account details
Admin consent granted
What Fails:
EnvelopesApi.create_envelope() returns:
Error: (400) Bad Request errorCode: USER_AUTHENTICATION_FAILED message: "One or both of Username and Password are invalid." Trace-Token:
Code flow:
- Get JWT token via request_jwt_user_token()
- Call get_user_info() to get account_id and base_uri
- Set base_path to account.base_uri + '/restapi'
- Set Authorization header with Bearer token
- Call create_envelope() with account_id → fails with USER_AUTHENTICATION_FAILED
Question: Is there a production account permission or configuration needed beyond what's shown in the Apps and Keys settings?
Back to Docusign.com


