How to Retrieve API Key Without Manual Methods

I am trying to create or retrieve an API key programmatically instead of manually. Specifically, I am considering the following scenarios:

  1. Creating an API key using Terraform.
  2. Creating an API key manually and then retrieving it via an API, CLI, or any other automated method.

I would like to know if any of these approaches are possible. If not, is there any alternative way to achieve this?

Thank you in advance for your help!

Hi @Pham_Duc_Huy, There are no pre defined functions available to create an API key pragmatically. You have to create it manually.

You can store the API key that was created manually in file or in some storage bucket and access the API key when needed. Thank You.

1 Like