1. Auth
Sekai Platform
  • Auth
    • 用户登录
      POST
    • 用户登出
      POST
    • 获取当前登录状态
      GET
    • 加载当前用户可访问租户
      GET
    • 选择或切换当前租户
      PUT
  • Users
    • 邀请用户加入当前租户
      POST
  • Assets
    • 查询支持的剧情类型
      GET
    • 查询剧情集列表
      GET
    • 查询剧情集详情
      GET
    • 查询剧情列表
      GET
    • 查询剧情详情
      GET
    • 查询剧情原文行
      GET
    • 查询当前租户的翻译版本列表
      GET
    • 查询翻译版本详情
      GET
    • 查询翻译行
      GET
  • Search
    • 搜索原文和当前租户译文
      GET
  • Sync
    • 手动触发外部数据源同步
      POST
    • 查询同步任务列表
      GET
    • 查询同步任务详情
      GET
  • Import
    • 批量导入历史译文
      POST
  • 数据模型
    • ErrorResponse
    • LoginRequest
    • SelectTenantRequest
    • AuthSession
    • UserProfile
    • Tenant
    • TenantMembership
    • InviteUserRequest
    • UserInvitationResult
    • UserRole
    • UserTenantStatus
    • StoryType
    • StoryTypeInfo
    • ExternalType
    • LineType
    • StoryGroup
    • Story
    • StorySourceLine
    • TranslationVersion
    • TranslationLine
    • SearchAssetType
    • SearchHit
    • SearchStoryRef
    • SearchStoryGroupRef
    • SearchTranslationVersionRef
    • ExternalDataSource
    • JobStatus
    • CreateSyncJobRequest
    • SyncJob
    • SyncJobStats
    • ImportTranslationVersionRequest
    • StoryMatch
    • ImportTranslationLine
    • ImportJob
    • PageMeta
    • StoryGroupPage
    • StoryPage
    • TranslationVersionPage
    • SearchResultPage
    • SyncJobPage
  1. Auth

获取当前登录状态

GET
/api/auth/session

请求参数

无

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://platform.pjs.accr.cc/api/auth/session'

返回响应

🟢200成功
application/json
当前登录状态
Body

示例
{
    "user": {
        "id": 0,
        "qq_id": "string",
        "display_name": "string",
        "avatar_url": "http://example.com"
    },
    "current_tenant": {
        "id": 0,
        "name": "string",
        "avatar_url": "http://example.com"
    },
    "tenants": [
        {
            "tenant": {
                "id": 0,
                "name": "string",
                "avatar_url": "http://example.com"
            },
            "role": "normal",
            "status": "active"
        }
    ]
}
🟠401没有权限
修改于 2026-05-05 12:51:07
上一页
用户登出
下一页
加载当前用户可访问租户
Built with