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!
Best answer by Saish Redkar
View originalI’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!
Best answer by Saish Redkar
View originalHey
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.
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.