Authentication
StackOne A2A agents use the same authentication as the regular StackOne API, ensuring consistent security across all integration methods.Required Headers
All A2A requests require these headers:How to get your StackOne API key and Account ID
How to get your StackOne API key and Account ID
Get API Key:
- Log into StackOne Dashboard
- Navigate to your project
- Go to Settings → API Keys
- Create or copy existing API key
- Go to Accounts section in dashboard
- Select your linked account
- Copy the account ID (numeric format like
47187425466113776871or short alphanumeric ID)
API Key
How to create the Basic Auth token:- Take your StackOne API key (e.g.,
v1.us1.AAblXDxi8h_OO1AZG_Hyg4V3w65x9...) - Append a colon:
v1.us1.YYplXCxi8h_OO9HZG_Kyg4V3w65x9...: - Base64 encode the result
Account ID
The account ID must be passed via thex-account-id header.
Account ID Format:
- Numeric string (e.g.,
47187425466113776871) - Short alphanumeric ID (e.g.,
abc123xyz)
Security Best Practices
Store API Keys Securely
Use environment variables and never commit API keys to version control.Troubleshooting Authentication
Common authentication issues include:- 401 Unauthorized errors - Check your API key is valid
- 403 Forbidden errors - Verify account permissions
- Missing header issues - Ensure all required headers are present
- Base64 encoding problems - Verify the encoding includes the colon
- Account ID validation - Confirm the account ID exists and is accessible