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

# Validate Link URL

> Verify that a candidate URL is safe, reachable via HTTP/HTTPS, and compliant with okl.ink safety policies.

# Validate Link URL

Utility endpoint to test candidate URLs before inserting them into a page or redirect pipeline.

### Query Parameters

<ParamField query="url" type="string" required>
  URL-encoded candidate destination (e.g., `https://example.com`).
</ParamField>

### Response

<ResponseField name="ok" type="boolean">
  `true` if the URL is a valid, secure `http:` or `https:` address.
</ResponseField>

<ResponseField name="reason" type="string">
  Explanation if validation failed.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://okl.ink/api/v1/links/validate?url=https%3A%2F%2Fmintlify.com"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "ok": true
  }
  ```
</ResponseExample>
