AmspRoutes · packages/server/src/amsp/module.ts:36

AmspRoutes

http-routes

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

/api/amsp/v1/agents/:projectId/:agentId

AmspRoutes.routes auth: none
POST

/api/amsp/v1/agents/:projectId/:agentId/runs

AmspRoutes.routes auth: none
GET

/api/amsp/v1/sessions/:sessionId

AmspRoutes.routes auth: none
GET

/api/amsp/v1/sessions/:sessionId/stream

AmspRoutes.routes auth: none
GET

/api/amsp/v1/sessions/:sessionId/messages

AmspRoutes.routes auth: none
GET

/api/amsp/v1/sessions/:sessionId/trace-image

AmspRoutes.routes auth: none
GET

/api/amsp/v1/sessions/:sessionId/approvals

AmspRoutes.routes auth: none
POST

/api/amsp/v1/sessions/:sessionId/tasks

AmspRoutes.routes auth: none
POST

/api/amsp/v1/sessions/:sessionId/abort

AmspRoutes.routes auth: none
POST

/api/amsp/v1/sessions/:sessionId/approvals/:toolCallId

AmspRoutes.routes auth: none
ALL

/api/amsp/v1/*

AmspRoutes.routes auth: none
POST

/api/projects/:projectId/agents/:agentId/api/try

AmspRoutes.try auth: user