How to get the current end-user organization through API

If I login as an end-user I can get my info with /api/v2/users/me.json.

I can get the organization_id from there, but I want to also get the organization name.

I can't seem to find any way to do this as an end-user.

I don't want to have to store agent login in the code I'm writing just to grab the org details - is there another way?

1 comment

  • 0

    We don't expose the name of the organization via that endpoint, but you can use the ID to query the organizations endpoint for the full payload.

Please sign in to leave a comment.