# tokenRequired

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /json-rpc/authorize/token:
    post:
      summary: tokenRequired
      deprecated: false
      description: Check whether authentication is required to work with the API.
      tags:
        - Hyperion API/Authorization
        - Websocket
        - HTTP/S
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                command:
                  type: string
                  enum:
                    - authorize
                  x-apidog-enum:
                    - value: authorize
                      name: ''
                      description: ''
                  description: >-
                    Main instruction field. For authentication, always set to
                    'authorize'.
                subcommand:
                  type: string
                  enum:
                    - tokenRequired
                  x-apidog-enum:
                    - value: tokenRequired
                      name: ''
                      description: ''
                  description: >-
                    Defines the specific authorization action, such as login,
                    logout, etc.
                tan:
                  type: integer
                  minimum: 0
                  examples:
                    - 4711
                  description: Transaction number for tracking requests and responses.
              x-apidog-orders:
                - command
                - subcommand
                - 01JV2TSP4GS88WQVECKCN7BQYP
              x-apidog-refs:
                01JV2TSP4GS88WQVECKCN7BQYP:
                  $ref: '#/components/schemas/tan'
              required:
                - command
                - subcommand
              x-apidog-ignore-properties:
                - tan
            example:
              command: authorize
              subcommand: tokenRequired
              tan: 4711
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response'
              example:
                command: authorize-tokenRequired
                info:
                  required: false
                success: true
                tan: 4711
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Hyperion API/Authorization
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/894413/apis/api-16806665-run
components:
  schemas:
    tan:
      type: object
      properties:
        tan:
          type: integer
          minimum: 0
          examples:
            - 4711
          description: Transaction number for tracking requests and responses.
      x-apidog-orders:
        - tan
      title: tan
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
    response:
      type: object
      properties:
        command:
          type: string
          description: The command executed
        subcommand:
          type: string
          description: The sub-command executed
        success:
          type: boolean
          description: Result, if the request excuted successfully
        info:
          type: object
          properties: {}
          x-apidog-orders: []
          description: Information requested
          additionalProperties: true
          x-apidog-ignore-properties: []
        error:
          type: string
          description: Reason why a request did not execute successfully
        errorData:
          type: array
          items:
            type: object
            properties:
              description:
                type: string
            x-apidog-orders:
              - description
            x-apidog-ignore-properties: []
          description: Detailed error explaination
        tan:
          type: integer
          description: Request's transaction number
      required:
        - command
        - success
        - tan
      x-apidog-orders:
        - command
        - subcommand
        - success
        - info
        - error
        - errorData
        - tan
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
  securitySchemes: {}
servers:
  - url: http://{{host}}:8090
    description: Develop Env
  - url: https://{{host}}:8092
    description: Testing Env
security: []

```
