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

# verifyToken

> Verify that an API token is valid.



## OpenAPI

````yaml /openapi.yaml post /verifyToken
openapi: 3.1.0
info:
  title: AlphaInsider
  version: '1.0'
  description: >-
    The official API and websocket documentation for
    [AlphaInsider.com](https://alphainsider.com/)
servers:
  - url: https://alphainsider.com/api
security: []
tags:
  - name: Introduction
  - name: Authentication
  - name: Users
  - name: Strategies
  - name: Subscriptions
  - name: Payments
  - name: Withdrawals
  - name: Timelines
  - name: Stocks
  - name: Trades
  - name: Webhooks
  - name: Bots
  - name: Websockets
paths:
  /verifyToken:
    post:
      tags:
        - Authentication
      summary: verifyToken
      description: Verify that an API token is valid.
      operationId: verifyToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - token
              properties:
                token:
                  type: string
                  description: API token to verify.
                  format: JWT
      responses:
        '200':
          description: Request was successful.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    $ref: '#/components/schemas/success'
                  response:
                    type: object
                    description: >-
                      Endpoint-specific response payload, or an error message
                      when `success` is false.
                    properties:
                      token_id:
                        type: string
                        description: Identifier for the verified API token.
                      user_id:
                        $ref: '#/components/schemas/user_id'
                      holder:
                        type: string
                        description: User or entity that holds the token.
                      type:
                        type: string
                        enum:
                          - refresh
                          - api
                        description: Type or category for this object.
                      name:
                        type: string
                        description: Display name.
                      scope:
                        type: array
                        description: Permissions granted to the token.
                        items:
                          type: string
              examples:
                '200':
                  value:
                    success: true
                    response:
                      token_id: okUfjYeZfp2sG4-SGuGjP
                      user_id: user_1
                      holder: user_1
                      type: api
                      name: test
                      scope:
                        - getUserInfo
        '400':
          $ref: '#/components/responses/400'
components:
  schemas:
    success:
      type: boolean
      description: True when the request succeeded.
    user_id:
      type: string
      description: AlphaInsider user identifier.
  responses:
    '400':
      description: Request failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '400':
              value:
                success: false
                response: Request failed.

````