Skip to main content
Nintex Community Menu Bar
Solved

Unable to Authenticate API User in CA1 Environment (500 INTERNAL_SERVER_ERROR on /authentication/credentials)

  • September 23, 2025
  • 2 replies
  • 20 views

Forum|alt.badge.img+1

Dear all,

I am working on integrating Nintex AssureSign with Power Apps with a flow in the CA1 environment and have run into a persistent authentication issue.

Environment / Setup

  • Environment: https://ca1.assuresign.net

  • API endpoint: POST /api/documentnow/v3.7/authentication/credentials

  • Account Context: acb8d12c-3389-447e-a6b8-620cf18f9e5c

  • API User created in account.assuresign.net, scoped to Specific Environment → https://ca1.assuresign.net/

  • API Key active, not expired

  • CA1 Settings → DocumentNOW® IntegrationDefault File Retrieval Credential set to the same API user

What I’ve Tried

  • Body variations:

     

    { "username": "don.wang@elections.ca_Lqq4s0Ue", "key": "************", "sessionLength": 60 }

  • Added accountContext in body (and also tested removing it)

  • Added header:

     

    x-assuresign-account-context: acb8d12c-3389-447e-a6b8-620cf18f9e5c

  • Headers:

     

    Content-Type: application/json Accept: application/json

  • Tested with Power Automate HTTP action and PowerShell (Invoke-RestMethod).

The Problem

Every request consistently returns:

 

{ "errorCode": "INTERNAL_SERVER_ERROR", "summary": "An Unknown Error Occurred. (Error code: LRP8V)" }

I’ve also seen 404s when the endpoint path was wrong, but with the correct /authentication/credentials path I only get 500 errors.

  • Status Code: 500

  • x-ms-service-request-id and x-ms-correlation-id are present in headers (happy to share with support if needed).

Question

Has anyone successfully authenticated an API User against CA1 recently?

  • Is there a required difference in how API users must be created/scoped for CA1?

  • Should the accountContext always be in the header vs. the body?

  • Is there anything else on the CA1 tenant that must be enabled (e.g., roles/permissions for API user)?

Any guidance or confirmation from others using CA1 would be greatly appreciated.

Thanks in advance,
Don

Best answer by james_tyzack

Hi Don,

 

To use an API user to retrieve an authentication token for subsequent API requests to CA1, please do the following:

 

POST to https://account.assuresign.net/api/v3.7/authentication/apiUser

Headers:

Content-Type:  “application/json”

Body:

{

"request": {

    "apiUsername": "your api user username",

    "key": "your api user secret",

    "contextUsername": "username of the user to have the token represent",

    "sessionLengthInMinutes": 60

  }

  }

 

This should give you a response with an authentication token. Then you can call API’s on ca1.assuresign.net, e.g. https://www.assuresign.net/api/documentnow/v3.7/templates with header “Authorization: Bearer yourauthenticationtoken

 

Documentation: https://account.assuresign.net/api/v3.7/documentation#/account#operations-tag-Api%20User

2 replies

Forum|alt.badge.img+2
  • Nintex Employee
  • Answer
  • September 23, 2025

Hi Don,

 

To use an API user to retrieve an authentication token for subsequent API requests to CA1, please do the following:

 

POST to https://account.assuresign.net/api/v3.7/authentication/apiUser

Headers:

Content-Type:  “application/json”

Body:

{

"request": {

    "apiUsername": "your api user username",

    "key": "your api user secret",

    "contextUsername": "username of the user to have the token represent",

    "sessionLengthInMinutes": 60

  }

  }

 

This should give you a response with an authentication token. Then you can call API’s on ca1.assuresign.net, e.g. https://www.assuresign.net/api/documentnow/v3.7/templates with header “Authorization: Bearer yourauthenticationtoken

 

Documentation: https://account.assuresign.net/api/v3.7/documentation#/account#operations-tag-Api%20User


Forum|alt.badge.img+1
  • Author
  • Rookie
  • September 23, 2025

Hi James, you are better than your company’s support email. You hit right on the nail. I followed your suggestion, the response is right away successful! THANKS!