> ## Documentation Index
> Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取账户资料

> 获取当前认证用户的资料。

## GET /accounts/profile

返回当前认证用户的账户详情，包含资料与订阅套餐。

### 响应

<ResponseField name="id" type="string">
  用户唯一标识。
</ResponseField>

<ResponseField name="email" type="string">
  用户邮箱。
</ResponseField>

<ResponseField name="firstName" type="string">
  名字。
</ResponseField>

<ResponseField name="lastName" type="string">
  姓氏。
</ResponseField>

<ResponseField name="company" type="string">
  公司名称。
</ResponseField>

<ResponseField name="plan" type="string">
  订阅套餐（`free`、`starter`、`professional`、`enterprise`）。
</ResponseField>

<ResponseField name="createdAt" type="string">
  账户创建时间（ISO 8601）。
</ResponseField>

<ResponseField name="updatedAt" type="string">
  资料最近更新时间（ISO 8601）。
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/accounts/profile \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://api.llmgenerator.com/api/v1/accounts/profile',
    {
      headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
    }
  );

  const profile = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "id": "user_abc123def456",
    "email": "user@example.com",
    "firstName": "Jane",
    "lastName": "Doe",
    "company": "Acme Inc",
    "plan": "professional",
    "createdAt": "2026-01-01T10:00:00.000Z",
    "updatedAt": "2026-01-15T14:30:00.000Z"
  }
  ```

  ```json Unauthorized (401) theme={null}
  {
    "message": "API key context not found"
  }
  ```
</ResponseExample>
