post:
  tags:
    - admin
  summary: create token
  description: This operation creates a new API token for access to the Read and Write APIs.
  requestBody:
    required: true
    content:
      application/json:
        schema:
          type: object
          properties:
            uid:
              type: number
              description: The generated token will make calls against NodeBB as this user.
              example: 1
            description:
              type: string
              description: Optional descriptor to differentiate tokens.
              example: 'My new token.'
  responses:
    '200':
      description: token successfully created
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                $ref: ../../components/schemas/Status.yaml#/Status
              response:
                $ref: ../../components/schemas/admin/tokenObject.yaml#/TokenObject
