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

# Validate Token

> Validate current access token

Check if the current access token is valid and not expired.

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token: `Bearer <access_token>`
</ParamField>

## Response

<ResponseField name="valid" type="boolean">
  Whether the token is valid
</ResponseField>

<ResponseField name="user_id" type="string">
  User ID associated with the token
</ResponseField>

<ResponseField name="email" type="string">
  Email associated with the token
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.finscreener.in/api/auth/token/validate \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```

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

  response = requests.get(
      "https://api.finscreener.in/api/auth/token/validate",
      headers={"Authorization": f"Bearer {token}"}
  )
  print(response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "valid": true,
    "user_id": "user_123456",
    "email": "user@example.com"
  }
  ```

  ```json Invalid Token theme={null}
  {
    "detail": "Token has expired"
  }
  ```
</ResponseExample>
