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

# Get User Information

> Retrieve information about the authenticated user and their organization

Retrieves information about the currently authenticated user and their associated customer organization.

## Authentication

This endpoint requires a valid API key in the Authorization header.

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.wordsmith.ai/api/v1/me" \
    -H "Authorization: Bearer sk-ws-api1-your_api_key_here" \
    -H "Content-Type: application/json"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.wordsmith.ai/api/v1/me", {
    method: "GET",
    headers: {
      Authorization: "Bearer sk-ws-api1-your_api_key_here",
      "Content-Type": "application/json",
    },
  });

  const userData = await response.json();
  ```

  ```python Python theme={null}
  import requests

  headers = {
      "Authorization": "Bearer sk-ws-api1-your_api_key_here",
      "Content-Type": "application/json"
  }

  response = requests.get("https://api.wordsmith.ai/api/v1/me", headers=headers)
  user_data = response.json()
  ```
</CodeGroup>

## Response

<ResponseField name="user_id" type="string">
  The unique identifier for the user
</ResponseField>

<ResponseField name="customer_id" type="string">
  The unique identifier for the customer organization
</ResponseField>

<ResponseField name="user_name" type="string" nullable>
  The display name of the user (may be null)
</ResponseField>

<ResponseField name="user_email" type="string">
  The email address of the user
</ResponseField>

<ResponseField name="customer_name" type="string">
  The name of the customer organization
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "user_id": "123e4567-e89b-12d3-a456-426614174000",
    "customer_id": "987fcdeb-51a2-43d1-9e8f-7b6c5a4d3e2f",
    "user_name": "John Doe",
    "user_email": "john@lawfirm.com",
    "customer_name": "Example Law Firm LLC"
  }
  ```
</ResponseExample>

## Error Responses

<ResponseExample>
  ```json 401 Unauthorized theme={null}
  {
    "error": "Invalid API key",
    "status": 401
  }
  ```

  ```json 429 Too Many Requests theme={null}
  {
    "error": "Rate limit exceeded",
    "status": 429
  }
  ```
</ResponseExample>

## Use Cases

* **Authentication verification**: Confirm that your API key is working correctly
* **User context**: Get information about the current user for personalization
* **Organization identification**: Determine which organization the user belongs to
