AgentConnect
Profile

Complete GitHub repository authorization

Consume a single-use authorization for the signed-in user and store only the verified GitHub identity.

POST
/v1/me/social-identities/github/repo-access

授权

bearerAuth
授权Bearer <token>

位置: header

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/me/social-identities/github/repo-access" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "state": "stringstringstringstringstringst"  }'
{  "githubUserId": "string",  "login": "string"}