You need two values from your Adaptive deployment:
Credential
Description
ADAPTIVE_URL
Your deployment URL
ADAPTIVE_API_KEY
Your personal API key
Click the navigation switcher in the top left corner (labeled View all projects) and select Generate new API key. Your deployment URL is provided by your administrator.
Create service accounts for CI/CD pipelines, automation, and programmatic integrations that don’t belong to a human user.
result = adaptive.users.create_service_account( name="ci-bot", teams_with_role=[("engineering", "power_user")])# result.api_key is returned once; store it securely
The API key is returned once at creation and cannot be retrieved later. Store it immediately.Authenticate the same way as personal accounts: set ADAPTIVE_API_KEY to the returned key. Service accounts follow the same role and team permission model as regular users.
Alternative: OpenAI client
Use the OpenAI Python library with your Adaptive deployment: