> ## Documentation Index
> Fetch the complete documentation index at: https://doc-dev.weir.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Log Details

> Retrieve detailed information about a specific log entry

# Get Log Details

Retrieve comprehensive details about a specific log entry.

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://api.weir.ai/console/logs/log_123456789' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'x-source: console'
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "data": {
      "logId": "log_123456789",
      "type": "INFO",
      "message": "Team created successfully",
      "userId": "user_123456789",
      "userName": "John Doe",
      "timestamp": "2024-01-22T15:30:00Z",
      "action": "team.create",
      "resourceType": "team",
      "resourceId": "team_987654321",
      "resourceName": "Development Team",
      "metadata": {
        "ipAddress": "192.168.1.1",
        "userAgent": "Mozilla/5.0...",
        "duration": 250
      }
    },
    "message": "Log details retrieved successfully",
    "status": "success"
  }
  ```
</ResponseExample>

## Path Parameters

<ParamField path="logId" type="string" required>
  Unique identifier of the log entry.
</ParamField>

## Usage Examples

<CodeGroup>
  ```javascript JavaScript theme={null}
  const getLogDetails = async (logId, accessToken) => {
    const response = await fetch(`https://api.weir.ai/console/logs/${logId}`, {
      headers: {
        'Authorization': `Bearer ${accessToken}`,
        'x-source': 'console'
      }
    });
    if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
    return await response.json();
  };
  ```

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

  def get_log_details(log_id, access_token):
      response = requests.get(
          f'https://api.weir.ai/console/logs/{log_id}',
          headers={
              'Authorization': f'Bearer {access_token}',
              'x-source': 'console'
          }
      )
      response.raise_for_status()
      return response.json()
  ```
</CodeGroup>
