Solved

Is it possible to get the project name via the API?

  • 4 October 2021
  • 1 reply
  • 176 views

I’m making a utility for others and don’t want to request information, e.g. project name, if I can it via the API. Thanks!

icon

Best answer by Saish Redkar 4 October 2021, 19:36

View original

1 reply

Userlevel 7
Badge +10

Hey @meinfelder 
Afaik, there isn’t an API endpoint which you can query directly for getting the project name.

Inside the Amplitude project settings UI, the project name is mutable , but the project’s API credentials are unique to the Project Id. At the moment, I can’t recall any endpoint from Dashboard REST APIs that returns the project id in the response ( however, the Export API does return it in every record as ‘app’, but not sure if that is useful to your use case. ).

One approach will be to create an internal mapping on your end which maps the project id, project name and API Key and then dynamically pull it off the API Key when querying that bucket. 

Let me know if I have interpreted your question correctly. Hope this helps.

 

Reply