MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / VerifyAgentAccount

Method VerifyAgentAccount

agent/app/api/v2/agents.go:571–581  ·  view source on GitHub ↗

@Tags AI @Summary Verify model account @Accept json @Param request body dto.AgentAccountVerifyReq true "request" @Success 200 @Security ApiKeyAuth @Security Timestamp @Router /ai/accounts/verify [post]

(c *gin.Context)

Source from the content-addressed store, hash-verified

569// @Security Timestamp
570// @Router /ai/accounts/verify [post]
571func (b *BaseApi) VerifyAgentAccount(c *gin.Context) {
572 var req dto.AgentAccountVerifyReq
573 if err := helper.CheckBindAndValidate(&req, c); err != nil {
574 return
575 }
576 if err := agentService.VerifyAccount(req); err != nil {
577 helper.BadRequest(c, err)
578 return
579 }
580 helper.Success(c)
581}
582
583// @Tags AI
584// @Summary Delete model account

Callers

nothing calls this directly

Calls 1

VerifyAccountMethod · 0.65

Tested by

no test coverage detected