Authorization: Bearer <token>。登录会选择用户的第一个组织成员关系;无人值守的集成应
使用 API token。curl -X POST http://localhost:5080/api/v1/auth/signin \
-H 'content-type: application/json' \
-d '{"email":"[email protected]","password":"admin"}'
{
"token": "eyJhbGciOi...",
"user_id": "<user-id>",
"email": "[email protected]",
"display_name": "Administrator",
"org_id": "<organization-id>",
"org_name": "Default",
"display_role": "Owner",
"roles": [
{
"id": "<role-id>",
"key": "owner",
"name": "Owner",
"builtin": true
}
]
}
身份验证
登录
用邮箱和密码换取 JWT。
curl -X POST http://localhost:5080/api/v1/auth/signin \
-H 'content-type: application/json' \
-d '{"email":"[email protected]","password":"admin"}'
{
"token": "eyJhbGciOi...",
"user_id": "<user-id>",
"email": "[email protected]",
"display_name": "Administrator",
"org_id": "<organization-id>",
"org_name": "Default",
"display_role": "Owner",
"roles": [
{
"id": "<role-id>",
"key": "owner",
"name": "Owner",
"builtin": true
}
]
}
最后修改于 2026年7月29日
此页面对您有帮助吗?