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

# Access Validation

> Validate that your access token is still valid and active. Use this endpoint to check token status before making API calls.

## Access Validation

Validate that your access token is still valid and active. Use this endpoint to check token status before making API calls.

<ParamField body="header" path="Authorization" type="string" required>
  Bearer token in the format: `Bearer {access_token}`
</ParamField>

<CodeGroup>
  ```bash cURL theme={null}
  curl --location 'https://app.aisync.link/api/access_validation' \
    --header 'Authorization: Bearer {{bearer_token}}'
  ```
</CodeGroup>

<ResponseField name="valid" type="boolean">
  Indicates whether the access token is valid
</ResponseField>

<ResponseField name="expires_at" type="string">
  ISO 8601 timestamp of when the token expires
</ResponseField>

<ResponseField name="scope" type="string">
  The scope of access granted to this token
</ResponseField>

<Note>
  If the token is invalid or expired, you'll receive an error response. Use the Refresh Token endpoint to obtain a new access token.
</Note>


## OpenAPI

````yaml GET /api/access_validation
openapi: 3.1.0
info:
  title: AI Sync OAuth API
  description: OAuth 2.0 API for authenticating and authorizing third-party applications
  version: 1.0.0
servers:
  - url: https://app.aisync.link
    description: Production server
security: []
paths:
  /api/access_validation:
    get:
      tags:
        - OAuth
      summary: Access Validation
      description: >-
        Validate that your access token is still valid and active. Use this
        endpoint to check token status before making API calls.
      operationId: accessValidation
      responses:
        '200':
          description: Token validation response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationResponse'
        '401':
          description: Invalid or expired token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    ValidationResponse:
      type: object
      properties:
        valid:
          type: boolean
          description: Indicates whether the access token is valid
        expires_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of when the token expires
        scope:
          type: string
          description: The scope of access granted to this token
      required:
        - valid
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error code
        error_description:
          type: string
          description: Human-readable error description
        message:
          type: string
          description: Error message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer token authentication. Include the access token in the
        Authorization header as 'Bearer {access_token}'

````