> ## 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 Platform Details

> Retrieve detailed information about a specific platform

# Get Platform Details

Retrieve comprehensive details about a specific platform.

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

<ResponseExample>
  ```json Success Response theme={null}
  {
    "data": {
      "platformId": "platform_123456789",
      "name": "My Platform",
      "type": "Forum/Community",
      "domain": "myplatform.com",
      "description": "A community platform",
      "teamId": "team_123456789",
      "teamName": "Development Team",
      "status": "verified",
      "verificationMethod": "dns",
      "verifiedAt": "2024-01-20T10:00:00Z",
      "settings": {
        "crawlingEnabled": true,
        "detectionFrequency": "daily"
      },
      "statistics": {
        "contentScanned": 15000,
        "nilDetections": 45,
        "lastScanAt": "2024-01-22T14:00:00Z"
      },
      "createdAt": "2024-01-15T10:30:00Z",
      "updatedAt": "2024-01-22T15:30:00Z"
    },
    "message": "Platform details retrieved successfully",
    "status": "success"
  }
  ```
</ResponseExample>

## Path Parameters

<ParamField path="platformId" type="string" required>
  Unique identifier of the platform.
</ParamField>

## Response Fields

<ResponseField name="data" type="object" required>
  Platform details object.

  <Expandable title="Platform Properties">
    <ResponseField name="platformId" type="string" required>
      Unique platform identifier.
    </ResponseField>

    <ResponseField name="name" type="string" required>
      Platform name.
    </ResponseField>

    <ResponseField name="type" type="string" required>
      Platform type.
    </ResponseField>

    <ResponseField name="domain" type="string" required>
      Platform domain.
    </ResponseField>

    <ResponseField name="status" type="string" required>
      Platform status (verified, pending\_verification, failed).
    </ResponseField>

    <ResponseField name="settings" type="object">
      Platform configuration settings.
    </ResponseField>

    <ResponseField name="statistics" type="object">
      Platform usage statistics.
    </ResponseField>
  </Expandable>
</ResponseField>

## Usage Examples

<CodeGroup>
  ```javascript JavaScript theme={null}
  const getPlatformDetails = async (platformId, accessToken) => {
    const response = await fetch(`https://api.weir.ai/platforms/${platformId}`, {
      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_platform_details(platform_id, access_token):
      response = requests.get(
          f'https://api.weir.ai/platforms/{platform_id}',
          headers={
              'Authorization': f'Bearer {access_token}',
              'x-source': 'console'
          }
      )
      response.raise_for_status()
      return response.json()
  ```
</CodeGroup>

<Tip>
  **Pro Tip**: Use this endpoint to get comprehensive platform information including verification status and statistics.
</Tip>
