Skip to main content

Create an E2B API key

E2B authenticates API requests with an API key that you create in the E2B console. Keys belong to a single project, so the key you create reaches only the sandboxes, templates, volumes and secrets in that project.

1

Sign in and select your project

Sign in to the E2B console with the account that owns the project you want to connect. In the top-left of the sidebar, use the PROJECT switcher to select that project, then open API Keys in the sidebar under PROJECT.

  • The key is scoped to the project shown in the PROJECT switcher — pick the project whose sandboxes you want StackOne to reach before creating the key.
E2B console sidebar with the PROJECT switcher and the API Keys entry highlighted
2

Open the create key dialog

The API Keys page lists the existing keys for the project under the LABEL, KEY, ID, LAST USED and ADDED columns. Click Create a key in the top right.

E2B API Keys page with the Create a key button highlighted
3

Create the key

In the Create new key dialog, type a name in the Key name field — for example StackOne — so you can recognise the key later in the LABEL column. Click Create.

E2B Create new key dialog with the Key name field filled in and the Create button highlighted
4

Copy the key

The full key is displayed once, in a read-only box in the confirmation dialog. Click Copy to copy it, then click Close.

  • The dialog warns under IMPORTANT that you should Copy the key now. You won’t be able to view it again. — once you close it, the KEY column only ever shows a masked value such as e2b_8d••••6a47.
  • The key cannot be retrieved after you close the dialog. If you lose it, create a new key and delete the old row from the API Keys page.
  • Keys do not expire, so the value you copy stays valid until you delete it.
E2B key created dialog with the generated key redacted and the Copy button highlighted
1

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.
2

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.

Next Steps

Webhooks setup

Configure receiving Events for E2B into StackOne.