Topic
This will explain the Process of getting Client Credentials App working with Postman via K2 Nintex Cloud
Instructions
Step 1
When trying to execute K2 REST/API via Postman the below needs to be done and supplied to Nintex Support
Below is a K2 Cloud Article that stats if Identity server for client credentials is needed this needs to be supplied
Referenced KB: https://help.nintex.com/en-us/k2cloud/userguide/current/Content/IdProviders/ClientCredentials.htm?tocpath=Develop%7CIdentity%20Providers%7C_____6
Note that this Hash needs to be created and Synced into the Nintex Cloud Environment- K2 Service Restart is needed possibly after this is completed.
Step 2
Download Postman and Register as needed https://www.postman.com/downloads/
Step 3
Executing the correct values is very important as this is case sensitive

Additional Information
If you are running into the below error, please note that the incorrect secret is being used or possible your account has not yet been added via the correct process

Just to add on here is the values needed for Postman
Grant Type: Client Credentials
Access Token URL: https://login.onk2.com/client-id/connect/token
Client ID: idt.cc.valueforOPS
Client Secret: {The secret they used to perform the hashing with}
Scope: https://api.k2.com/
Client Authentication: Send client credentials in body
For this to work the secret provided in postman needs to be the one that was used for the hashing as per the C# example in the Nintex Article
Client secret (SecretHash - A SHA256 hash of their secret) using the IdentityModel from nuget with code
var mysecret = "my secret value I am not sharing";
var encryptedSecret = mysecret.ToSha256();
For this code below
internal static string HashString(string cleartext)
{
byte[] clearBytes = Encoding.UTF8.GetBytes(cleartext);
return HashBytes(clearBytes);
}
internal static string HashBytes(byte[] clearBytes)
{
using (var sha256 = SHA256.Create())
{
byte[] hashBytes = sha256.ComputeHash(clearBytes);
string hash = Convert.ToBase64String(hashBytes);
sha256.Clear();
return hash;
}
Documentation Link