Python DSL reference
SERVICE_ARCHITECT_API_KEY=sa_live_<key-id>_<secret>API key authentication
Authenticate scripts, CI, Codex, and MCP with a revocable key created by the signed-in Service Architect user.
When to use
Use an API key for the asynchronous generation API; reserve Cognito username/password or ID token for legacy synchronous compatibility.
Behavior
- Create, list, revoke, and permanently delete personal keys from the Designer API Keys page.
- The full secret is shown only when the key is created; store it immediately in a local secret manager or git-ignored
.env. - The client sends the key only to the Service Architect API and never to the presigned S3 download URL.
- Keys are owned by one Cognito user and generation jobs can be read only by their owner.
.env variables properties
Local authentication and endpoint configuration.
PropertyTypeDescription
SERVICE_ARCHITECT_API_KEYsecretPreferred personal key for the asynchronous generation API.
SERVICE_ARCHITECT_API_URLoptional URLProduction is the API-key default; override it for beta or another environment.
SERVICE_ARCHITECT_ID_TOKENlegacy secretUse an existing Cognito token with the legacy synchronous endpoint.
SERVICE_ARCHITECT_USERNAME / PASSWORDlegacy secretsPerform Cognito SRP only when no API key or ID token is supplied.
.env
SERVICE_ARCHITECT_API_KEY=sa_live_<key-id>_<secret>
SERVICE_ARCHITECT_API_URL=https://z06e41vwnl.execute-api.us-east-1.amazonaws.com/prod