@@ -122,7 +122,7 @@ func (a *API) registerAgentRoutes(api huma.API) {
122122 huma .Register (api , huma.Operation {
123123 OperationID : "register-agent" ,
124124 Method : http .MethodPost ,
125- Path : "/api/v1/ agents/register" ,
125+ Path : "/agents/register" ,
126126 Summary : "Register a new agent (creates identity + API key atomically)" ,
127127 Tags : []string {"Agents" },
128128 DefaultStatus : http .StatusCreated ,
@@ -131,31 +131,31 @@ func (a *API) registerAgentRoutes(api huma.API) {
131131 huma .Register (api , huma.Operation {
132132 OperationID : "get-agent" ,
133133 Method : http .MethodGet ,
134- Path : "/api/v1/ agents/registry/{id}" ,
134+ Path : "/agents/registry/{id}" ,
135135 Summary : "Get an agent by identity ID" ,
136136 Tags : []string {"Agents" },
137137 }, a .getAgentOp )
138138
139139 huma .Register (api , huma.Operation {
140140 OperationID : "list-agents" ,
141141 Method : http .MethodGet ,
142- Path : "/api/v1/ agents/registry" ,
142+ Path : "/agents/registry" ,
143143 Summary : "List agents for the current tenant" ,
144144 Tags : []string {"Agents" },
145145 }, a .listAgentsOp )
146146
147147 huma .Register (api , huma.Operation {
148148 OperationID : "update-agent" ,
149149 Method : http .MethodPatch ,
150- Path : "/api/v1/ agents/registry/{id}" ,
150+ Path : "/agents/registry/{id}" ,
151151 Summary : "Update mutable fields of an agent" ,
152152 Tags : []string {"Agents" },
153153 }, a .updateAgentOp )
154154
155155 huma .Register (api , huma.Operation {
156156 OperationID : "delete-agent" ,
157157 Method : http .MethodDelete ,
158- Path : "/api/v1/ agents/registry/{id}" ,
158+ Path : "/agents/registry/{id}" ,
159159 Summary : "Deactivate an agent (soft delete) and revoke its keys" ,
160160 Tags : []string {"Agents" },
161161 DefaultStatus : http .StatusOK ,
@@ -164,23 +164,23 @@ func (a *API) registerAgentRoutes(api huma.API) {
164164 huma .Register (api , huma.Operation {
165165 OperationID : "activate-agent" ,
166166 Method : http .MethodPost ,
167- Path : "/api/v1/ agents/registry/{id}/activate" ,
167+ Path : "/agents/registry/{id}/activate" ,
168168 Summary : "Activate a previously deactivated agent" ,
169169 Tags : []string {"Agents" },
170170 }, a .activateAgentOp )
171171
172172 huma .Register (api , huma.Operation {
173173 OperationID : "deactivate-agent" ,
174174 Method : http .MethodPost ,
175- Path : "/api/v1/ agents/registry/{id}/deactivate" ,
175+ Path : "/agents/registry/{id}/deactivate" ,
176176 Summary : "Deactivate an agent without deleting it" ,
177177 Tags : []string {"Agents" },
178178 }, a .deactivateAgentOp )
179179
180180 huma .Register (api , huma.Operation {
181181 OperationID : "rotate-agent-key" ,
182182 Method : http .MethodPost ,
183- Path : "/api/v1/ agents/registry/{id}/rotate-key" ,
183+ Path : "/agents/registry/{id}/rotate-key" ,
184184 Summary : "Rotate an agent's API key (revokes old, issues new)" ,
185185 Tags : []string {"Agents" },
186186 }, a .rotateAgentKeyOp )
0 commit comments