GET /api/v1/forward/identities/{identity_id}
返回当前账号下的 Identity 详情。
请求头
路径参数
示例请求
示例响应
HTTP 200 OK响应字段
错误
注意事项
- 已停用的 Identity 仍可查询。
- 已删除的 Identity 不能继续用于创建 Session。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
根据 ID 获取 Forward Identity。
GET /api/v1/forward/identities/{identity_id}
返回当前账号下的 Identity 详情。
| Header | 是否必填 | 说明 |
|---|---|---|
| Authorization | 是 | Bearer <PAT> |
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| identity_id | string | 是 | Forward Identity ID。 |
curl -s -X GET 'https://api.qoder.com/api/v1/forward/identities/idn_019eabc123' \
-H "Authorization: Bearer $QODER_PAT"
{
"id": "idn_019eabc123",
"external_id": "user_456",
"name": "Example User",
"enabled": true,
"metadata": {
"channel": "web"
},
"created_at": "2026-06-18T10:00:00Z",
"updated_at": "2026-06-18T10:00:00Z"
}
| 字段 | 类型 | 说明 |
|---|---|---|
| 返回值 | object | Identity 对象。 |
| HTTP | Type | Code | 触发条件 |
|---|---|---|---|
| 404 | not_found_error | - | Identity 不存在或当前调用方不可见。 |
| 401 | authentication_error | authentication_required | PAT 无效或已过期。 |
| 403 | permission_error | - | 当前调用方无权访问该资源。 |