Skip to main content
API Keys give your applications programmatic access to the Traceport Gateway. By replacing your direct provider keys with a Traceport Key, all traffic routes through Traceport for observability, routing, and cost tracking. Navigate to API Keys under API Management in the sidebar.

Generating Keys

1

Create New Key

Click Create New Key on the API Keys page.
2

Name Your Key

Provide a descriptive name (e.g., “Production API”, “Staging”, “Dev Testing”) to identify its purpose.
3

Copy and Store

Copy the generated key and store it securely.
API keys are only displayed once at creation time. Copy and store them securely before closing the dialog.

Using Your API Key

Use your Traceport API Key as a drop-in replacement for your provider keys:
from openai import OpenAI

client = OpenAI(
    api_key="<YOUR_TRACEPORT_API_KEY>",
    base_url="https://api.traceport.ai/v1"
)

Security and Revocation

If an API key is compromised or no longer needed:
  1. Find the key in the list and click the ... menu.
  2. Choose Revoke to immediately disable it.
Revoking a key is irreversible. Any applications using the revoked key will immediately lose access to the gateway.