Generating an Access Token

I have just been given a new demo IDN app for developing. Im trying to get an access token for api call. I have generated a PAT in my account and have the ID and secret. For the tenantName I’m using the Org Name under Dashboard:Org Details

When connecting with other customer IDN accounts, This process works, but for me under this new account it fails.

Error - java.net.UnknownHostException: {tenantName}.api.identitynow.com: nodename nor servname provided, or not known

The only thing I can think of is my new account has a host of .identitynow-demo.com

Thank you.

1 Like

@aceiss What tool are you using where you are seeing this error? For that tenant the endpoint would need to include the “-demo”

https://{{tenantName}}.api.identitynow-demo.com

https://{{tenantName}}.api.identitynow-demo.com/oauth/token?grant_type=client_credentials&client_id={{client-id}}&client_secret={{client-secret}}
3 Likes

Works, Thanks for the feedback!

1 Like