This page shows you how to generate the access key and secret key that the AIO Python SDK uses, copy them into your application, and revoke them when you no longer need them.
You generate API keys from a project's connection info in AIO. AIO doesn't list or revoke keys. You manage existing keys in Control Center.
Open a project's connection info
- Go to the Projects page.
- In the row for your project, select the connection info icon.

The same connection info also appears once, right after you create a project. For more information, see Create a project.
The Set up credentials link opens the API key page in the platform admin area, at /ui/admin/account/auth-api/apikey on your AIO host.
Tip
While you're on the Connection Info page, use the copy buttons next to Endpoint, Project ID, and Tenant ID to get the other values the SDK needs. When a value is copied to your clipboard, its button shows a check mark for 2 seconds.
Generate an API key
- On the Connection Info page, select Generate API key. While AIO creates the key, the button reads Generating….
- Next to Access key, select the copy button, and save the value somewhere safe.
- Next to Secret key, select the copy button, and save the value somewhere safe.
Important
Copy the secret key now. It isn't shown again when you come back to the page later, and you can't read it back afterwards.
Each key pair you generate here lasts 90 days. The key belongs to you, not to the project. AIO names it after the project, followed by the date and time you created it, for example checkout-agent · 2026-11-16 14:05:32. The name is only a label, so renaming the project later doesn't rename the key.
Fix an API key error
If AIO can't create the key, an error appears in red under the buttons.
Message | What to do |
|---|---|
"Sign in again to generate an API key." | Your sign-in session doesn't identify you. Sign out, sign in again, and then select Generate API key. |
"The API key was created without a secret." | The response didn't include an access key or a secret key, so you have no key pair to use. |
Copy all connection values
After you generate a key, select Copy all to copy every value the SDK needs as a block for your application's .env file. Copy all is unavailable until you've generated a key, and it doesn't show a confirmation when it copies.
The copied block looks like this, with your own values:
AIO_TENANT_ID=acme
AIO_PROJECT_ID=0192f3a4-5b6c-7d8e-9f01-23456789abcd
AIO_ACCESS_KEY=example-access-key
AIO_SECRET_KEY=example-secret-key
AIO_ENDPOINT=https://aio.example.com/aio
Revoke an API key
AIO doesn't list or revoke keys. To revoke a key, delete it in Control Center. Until you delete it, the key keeps working until it expires.
Use the key with the SDK
The SDK takes the key as two values: an access key and a secret key. Provide them in either of these ways:
- Pass them as the
access_keyandsecret_keyarguments toacceldata_aio_tracer.init(...). - Set the
AIO_ACCESS_KEYandAIO_SECRET_KEYenvironment variables, for example with the block that Copy all gives you.
If you set both, the arguments you pass to init take precedence over the environment variables. The SDK sends the key only when both values are set.
To set the environment variables, run the following commands. Replace the placeholder values with your own key pair.
export AIO_ACCESS_KEY="example-access-key"
export AIO_SECRET_KEY="example-secret-key"
For the full SDK setup, including the endpoint, project, and tenant settings, see Instrument your code.

Have a suggestion?