> ## 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.

# Obter perfil da conta

> Este endpoint retorna o perfil do usuário autenticado.

## GET /accounts/profile

Este endpoint retorna informações detalhadas da conta autenticada, incluindo perfil e plano de assinatura.

### Resposta

<ResponseField name="id" type="string">
  Identificador único do usuário.
</ResponseField>

<ResponseField name="email" type="string">
  E-mail do usuário.
</ResponseField>

<ResponseField name="firstName" type="string">
  Nome do usuário.
</ResponseField>

<ResponseField name="lastName" type="string">
  Sobrenome do usuário.
</ResponseField>

<ResponseField name="company" type="string">
  Nome da empresa do usuário.
</ResponseField>

<ResponseField name="plan" type="string">
  Plano de assinatura (`free`, `starter`, `professional`, `enterprise`).
</ResponseField>

<ResponseField name="createdAt" type="string">
  Data de criação da conta em ISO 8601.
</ResponseField>

<ResponseField name="updatedAt" type="string">
  Data da última atualização do perfil em 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 Sucesso (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 Não autorizado (401) theme={null}
  {
    "message": "API key context not found"
  }
  ```
</ResponseExample>
