NATSoauth.app.get读取应用详情

返回应用完整信息(不含 secret)。

Request Payload

消息格式:JSON

NameData TypeRequiredDescription
appIdstringYes应用 ID
type RequestBody = {
  /** 应用 ID */
  appId: string
}
{
  "appId": "01JD8SNST2N5U6X1BU9YBHK4C7J"
}

Response Payload

回复使用统一信封 {id, code, messages, result},其 result:

NameData TypeRequiredDescription
appIdstringYes应用 ID
ownerIdstringYes注册人用户 ID
namestringYes应用名称
homepagestringNo应用主页
clientIdstringYes客户端标识
redirectUrisarrayYes回调地址列表
tokenTypestringYesjwt / opaque
statusstringYespending / approved / banned
scopesarrayYes已批准的 scope
createdAtstringYes注册时间
type ResponseBody = {
  /** 应用 ID */
  appId: string
  /** 注册人用户 ID */
  ownerId: string
  /** 应用名称 */
  name: string
  /** 应用主页 */
  homepage?: string
  /** 客户端标识 */
  clientId: string
  /** 回调地址列表 */
  redirectUris: string[]
  /** jwt / opaque */
  tokenType: string
  /** pending / approved / banned */
  status: string
  /** 已批准的 scope */
  scopes: string[]
  /** 注册时间 */
  createdAt: string
}
{
  "appId": "01JD8SNST2N5U6X1BU9YBHK4C7J",
  "ownerId": "01JD8SEGQ0P9N2XK4L7VDH3T6C",
  "name": "Xeegam Analytics",
  "homepage": "https://analytics.xeegam.com",
  "clientId": "cli_9f2ka81mdx",
  "redirectUris": [
    "https://analytics.xeegam.com/oauth/callback"
  ],
  "tokenType": "jwt",
  "status": "approved",
  "scopes": [
    "user:profile:read",
    "orgs:list"
  ],
  "createdAt": "2026-10-01T10:00:00Z"
}

Response Code

回复使用统一信封 {id, code, messages, result},其 code 字段:

code Meaning Notes
0 成功 读取应用详情

Examples

{ "appId": "01JD8SNST2N5U6X1BU9YBHK4C7J" }
{
  "id": "01JD8SWKYJ8L5MI",
  "code": 0,
  "messages": [],
  "result": {
    "appId": "01JD8SNST2N5U6X1BU9YBHK4C7J",
    "ownerId": "01JD8SEGQ0P9N2XK4L7VDH3T6C",
    "name": "Xeegam Analytics",
    "homepage": "https://analytics.xeegam.com",
    "clientId": "cli_9f2ka81mdx",
    "redirectUris": ["https://analytics.xeegam.com/oauth/callback"],
    "tokenType": "jwt",
    "status": "approved",
    "scopes": ["user:profile:read", "orgs:list"],
    "createdAt": "2026-10-01T10:00:00Z"
  }
}