Authentication
StackOne A2A agents use the same authentication as the regular StackOne API, ensuring consistent security across all integration methods. You authenticate with your StackOne API key and account ID, sent as headers.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:
- Go to Configuration → API Keys in the dashboard
- Create or copy existing API key
- Go to Accounts in the dashboard
- Select your linked account
- Copy the account ID (numeric format like
47187425466113776871or short alphanumeric ID)
API Key
TheAuthorization header carries your StackOne API key as a Basic auth token. For the full StackOne API authentication reference, see Authentication.
How to create the Basic auth token
How to create the Basic auth token
Steps:
- 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)
Multiple accounts in one request
A single request can span multiple connected accounts. Pass more than one account ID in thex-account-id header, either comma-separated or as repeated headers. The agent fans out across the accounts in parallel and routes each action back to its originating account. If one account is unavailable, the remaining accounts are still served.
To validate your credentials and see the account-specific skills, call https://a2a.stackone.com/agent/authenticatedExtendedCard with your Authorization and x-account-id headers. The /.well-known/agent-card.json discovery card is public and does not confirm authentication.
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
Testing Authentication
Verify your credentials by fetching your authenticated extended card. That endpoint requires valid headers, so a successful response confirms your authentication. The public/.well-known/agent-card.json card requires no auth, so it cannot confirm credentials.
Next Steps
Once authentication is configured:Quickstart
Get started with the A2A UI and cURL
A2A SDK
Use the official A2A SDKs to build your own tools
Agent Guides
Build agents in frameworks with A2A integrations