Thread

IK
Ilya Korovin10:09 AMOpen in Slack
Hi, is the A2A API supposed to work right now, specifically with API keys managed on the Settings page? API keys in Settings are handled via ApiKeyModel, and it looks like that model is not used anywhere. For the A2A API, I only see UserTokenModel and TeamTokenModel.

14 replies
IK
Ilya Korovin10:33 AMOpen in Slack
I made it work somehow via agent with organization access and team token. But API Keys tab in Settings still seems useless.
J(
joey (archestra team)12:21 PMOpen in Slack
hi there 👋 API keys are to consume the API https://archestra.ai/docs/platform-api-reference
IK
Ilya Korovin12:29 PMOpen in Slack
Hi @user, yes, I’m referring to this page: /settings/api-keys.
On this page, API keys are stored in ApiKeyModel, but ApiKeyModel is not used by the A2A API (routes/a2a.ts) and apparently is not used anywhere else either.
resolveArchestraToken(...) uses only UserTokenModel and TeamTokenModel .
validateMCPGatewayToken(...) uses `resolveArchestraToken(...)` for such tokens (prefix = arch_)
routes/a2a.ts uses validateMCPGatewayToken(...) for auth
J(
joey (archestra team)12:29 PMOpen in Slack
API keys are used to consume the API
👀1
IK
Ilya Korovin12:31 PMOpen in Slack
I'm talking about the same...
IK
Ilya Korovin12:37 PMOpen in Slack
It says:
Once you've created an API key, copy the key (it will only be shown once), and include the key in your requests using the Authorization header in the endpoints shown below.
When I create it, it's stored in apikey table (ApiKeyModel) . That model is not used in API auth. Authorization header token is checked only via UserTokenModel and TeamTokenModel in resolveArchestraToken(...)
IK
Ilya Korovin12:42 PMOpen in Slack
Team tokens work fine because they are stored in TeamTokenModel.
I don't understand how my token could be stored in UserTokenModel, but intuitively it seems like this should be done via the /settings/api-keys page.
J(
joey (archestra team)12:50 PMOpen in Slack
regarding A2A - yes it only supports these personal/team/org-scoped static bearer tokens
J(
joey (archestra team)12:50 PMOpen in Slack
the API keys you are referring to though are used to auth for the REST API
IK
Ilya Korovin12:51 PMOpen in Slack
Oh okay, then. Yes, I tested only A2A. Thanks
🙏1
IK
Ilya Korovin12:52 PMOpen in Slack
However these A2A endpoints are on top of this docs page
J(
joey (archestra team)12:52 PMOpen in Slack
you can view/rotate your personal token on /settings/account - it's true that the auth section of the agents documentation is rather outdated, will get that updated :thumbsup_all:
👍1