How to Programmatically Create a Project API Key After Creating a Project?

I’m currently working on automating the creation of projects and their associated API keys. While I can successfully create a project using the provided API, I noticed that there doesn’t seem to be an API endpoint for creating a Project API Key programmatically.

Is there any way to create a Project API Key via API for a specific project? If this functionality isn’t available, are there any suggested workarounds or best practices for automating this process?

For now, it seems like the only option is to manually create the API key through the user interface. However, this is not ideal for automation-heavy workflows.

It would be great to know if:

  1. There’s an undocumented endpoint for this functionality.
  2. Any community members have implemented an automated workaround for this.

Additionally, is there any plan to include this feature in the API in the future? It would significantly enhance the automation capabilities for projects requiring API keys.

Looking forward to your suggestions and insights!

Thanks in advance!

Right above where the available methods are listed in the API reference:

“This API does not allow issuing keys for users, as users need to authorize themselves to generate keys.”

The platform website creates API keys. Renewing an OAuth token via bypassing human detectors and browser detectors, list out organizations and projects, and obtaining a session token to replicate the calls, is undocumented… (or at least now has initial documentation).