Generate a Cloud API key
Create an API key for authenticating with the Elastic Cloud REST API.
Navigate to API keys
Log in to the Elastic Cloud Console, click your avatar in the top-right corner, and select Organization.
- Go to the API keys tab.
Create a new key
Click Create API key.
- Enter a descriptive Name (e.g., “StackOne Integration”).
- Set an Expiration (default 3 months, max 1 year, or never).
- Assign appropriate Roles (
Organization ownerrecommended for full access). - Click Create API key.
Copy the key
The API key is displayed only once after creation. Copy it immediately and store it securely.
- If you lose the key, you will need to create a new one.
- Format used in requests:
Authorization: ApiKey <your_key>
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Cloud API Key
Connect
- Click Connect
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup
If the account linking is successful, you will see the newly linked account in your Accounts page.