title: Client credentials invalid error for external API authentication, when credentials are correct in Processmaker
body: <p>I am trying to obtain the authentication token from the Processmaker to use the APIs. I have used the same API call which works perfectly fine in the test environment, with production urls and respective client id and client secret. But, I am getting below error, although the username and password of the account is correct.</p>
  <p><strong>Request:</strong></p>
  <pre><code>{
      &quot;grant_type&quot;: &quot;password&quot;,
      &quot;scope&quot;: &quot;*&quot;,
      &quot;client_id&quot;: &quot;xxxxxx&quot;,
      &quot;client_secret&quot;:&quot;7777777&quot;,
      &quot;username&quot;: &quot;username&quot;,
      &quot;password&quot;: &quot;password&quot;
  }
  </code></pre>
  <p><strong>Response:</strong></p>
  <pre><code>{
      &quot;error&quot;: &quot;invalid_client&quot;,
      &quot;error_description&quot;: &quot;The client credentials are invalid&quot;
  }
  </code></pre>
  <p>I have tried below steps. But still the same error.</p>
  <ol>
  <li>Create a new account without AD user account as the account used in test environment is not a domain account</li>
  <li>Change the role of account to 'System Administrator' which is similar to the account in test</li>
  </ol>
  <p>**While registering the client to use the APIs, we didn't use the Callback URL as it is optional (we did not configure it in the test environment as well)</p>
  <p>Some help is really appreciated, as I have no clue what else to check between the environment to resolve this issue.</p>