What API I can call to get a client_id

Hi Okta experts,

I am writing a dynamic code where I need to mount an API call based on the collection of the data coming from okta. So, my question is:
How can I retrieve or what API should I use to get the client_id. I tried to find it here: Users | Okta Developer

however, all the apis I see need the client_id in the URL. So, want to dynamically create my URL based on a previous call to get the client_id. Is this possible?


Yep, we are doing exactly that.

If you call the users endpoint you can add a search, e.g


That will return a user object (JSON ) for that user, which includes the client_id…

You can then build a second call to get, say, the groups that user has been added to: