Getting the ORG name via API

Maybe it a very trivial question but I couldnt find any of the APIs to return the ORG name using OAuth client authentication (a script). I checked the UI and it doesnt even use an API for that, it gets it via https://apps.mypurecloud.de/directory/api/v1/org but this is a URL requiring authentication so i just cant easily call it with my app using client credential.

So is there an API endpoint to call which will return the ORG name (not the ID)? It would be good to double check the ORG name and log in the application as it is a user friendly identfier.
thanks,
Zsolt

Hi,

GET /api/v2/organizations/me will return your org name.

Regards,
Declan

I knew about this endpoint but i always thought that it works with non client credentials only when there is a real person behind the API. I just called it and it works with client credentials too so job done!
thanks,
Zsolt

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.