The public /api/amsp/v1 group: the gate, CORS, the run stream, the Session stream and the
Session routes (history, approvals, tasks); and
the API tab's Try it, the same run for the owner's sign-in.
API
contributes: {
"HttpModule.routes": [
{
"id": "AmspRoutes.routes",
"prefix": "/api/amsp/v1",
"auth": "none",
"order": 5
},
{
"id": "AmspRoutes.try",
"prefix": "/api/projects/:projectId/agents/:agentId/api/try",
"auth": "user",
"order": 224
}
]
}Code Half (@Bind)
@Bind("AmspRoutes.routes") routes!: Hono<AppEnv>; · @Bind("AmspRoutes.try") tryRoutes!: Hono<AppEnv>;
Endpoints (12)
GET
AmspRoutes.routes auth: none
/api/amsp/v1/agents/:projectId/:agentId
AmspRoutes.routes auth: nonePOST
AmspRoutes.routes auth: none
/api/amsp/v1/agents/:projectId/:agentId/runs
AmspRoutes.routes auth: noneGET
AmspRoutes.routes auth: none
/api/amsp/v1/sessions/:sessionId
AmspRoutes.routes auth: noneGET
AmspRoutes.routes auth: none
/api/amsp/v1/sessions/:sessionId/stream
AmspRoutes.routes auth: noneGET
AmspRoutes.routes auth: none
/api/amsp/v1/sessions/:sessionId/messages
AmspRoutes.routes auth: noneGET
AmspRoutes.routes auth: none
/api/amsp/v1/sessions/:sessionId/trace-image
AmspRoutes.routes auth: noneGET
AmspRoutes.routes auth: none
/api/amsp/v1/sessions/:sessionId/approvals
AmspRoutes.routes auth: nonePOST
AmspRoutes.routes auth: none
/api/amsp/v1/sessions/:sessionId/tasks
AmspRoutes.routes auth: nonePOST
AmspRoutes.routes auth: none
/api/amsp/v1/sessions/:sessionId/abort
AmspRoutes.routes auth: nonePOST
AmspRoutes.routes auth: none
/api/amsp/v1/sessions/:sessionId/approvals/:toolCallId
AmspRoutes.routes auth: noneALL
AmspRoutes.routes auth: none
/api/amsp/v1/*
AmspRoutes.routes auth: nonePOST
AmspRoutes.try auth: user