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

# Validate Chrome Extension

> Validate content from Chrome extension

Validate content from the ZeroDrift Chrome extension asynchronously. Uses the same validation rules as email validation (`scenario_email_general`).

## Request Body

<ParamField body="text_snippet" type="string" required>
  Text content to validate from the browser
</ParamField>

## Response

<ResponseField name="job_id" type="string">
  Unique identifier for the validation job
</ResponseField>

<ResponseField name="status" type="string">
  Job status: `accepted`
</ResponseField>

<ResponseField name="message" type="string">
  Status message
</ResponseField>

<ResponseField name="timestamp" type="string">
  ISO 8601 timestamp
</ResponseField>

<ResponseExample>
  ```json 202 Accepted theme={null}
  {
    "job_id": "chrome123xyz",
    "status": "accepted",
    "message": "Validation request queued for processing",
    "timestamp": "2026-01-13T10:30:00Z"
  }
  ```
</ResponseExample>

## Use Cases

* Real-time validation of web content while browsing
* Check compliance of text selected in browser
* Validate draft content in web-based email clients
* Pre-screen social media posts before publishing

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://{api-url}/api/validate_chrome/" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "text_snippet": "Our fund has consistently beaten the market with guaranteed returns of 20% annually. Invest now for risk-free growth!"
    }'
  ```

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

  API_KEY = "YOUR_API_KEY"
  API_BASE = "https://{api-url}"

  response = requests.post(
      f"{API_BASE}/api/validate_chrome/",
      headers={
          "x-api-key": API_KEY,
          "Content-Type": "application/json"
      },
      json={
          "text_snippet": "Our fund has consistently beaten the market with guaranteed returns of 20% annually."
      }
  )

  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const axios = require('axios');

  const API_KEY = 'YOUR_API_KEY';
  const API_BASE = 'https://{api-url}';

  const response = await axios.post(
    `${API_BASE}/api/validate_chrome/`,
    {
      text_snippet: 'Our fund has consistently beaten the market with guaranteed returns of 20% annually.'
    },
    {
      headers: {
        'x-api-key': API_KEY,
        'Content-Type': 'application/json'
      }
    }
  );

  console.log(response.data);
  ```
</CodeGroup>
