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

# Verify Platform

> Verify platform domain ownership

# Verify Platform

Verify domain ownership for a platform by checking DNS or meta tag verification.

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

<ResponseExample>
  ```json Success Response theme={null}
  {
    "data": {
      "platformId": "platform_123456789",
      "domain": "myplatform.com",
      "verificationStatus": "verified",
      "verificationMethod": "dns",
      "verifiedAt": "2024-01-22T15:30:00Z"
    },
    "message": "Platform verified successfully",
    "status": "success"
  }
  ```
</ResponseExample>

## Path Parameters

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

## Response Fields

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

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

<ResponseField name="data.verificationStatus" type="string" required>
  Verification status (verified, pending, failed).
</ResponseField>

<ResponseField name="data.verificationMethod" type="string">
  Method used for verification (dns, meta\_tag, file).
</ResponseField>

<ResponseField name="data.verifiedAt" type="timestamp">
  Timestamp when verification completed.
</ResponseField>

## Usage Examples

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

<Tip>
  **Pro Tip**: Platform verification is required before you can start using NIL detection features.
</Tip>
