1Kosmos User Hardware Tokens API

The UserHardwareTokens API from 1Kosmos — 3 operation(s) for userhardwaretokens.

Operations 4

PUT /api/r2/{communityName}/usertokens Import hardware tokens for users #
DELETE /api/r2/{communityName}/usertokens Delete user hardware tokens #
POST /api/r2/{communityName}/usertokens/import_csv Import hardware tokens from a CSV file #
POST /api/r2/{communityName}/usertokens/fetch Fetch user hardware tokens #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/1kosmos:1kosmos-userhardwaretokens-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

1kosmos-userhardwaretokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Admin Console API Documentation User Hardware Tokens API
  description: API documentation for Admin Console
  contact:
    name: OneKosmos
    email: support@onekosmos.com
  license:
    name: Apache 2.0
    url: http://springdoc.org
  version: '1.0'
servers:
- url: https://blockid-trial.1kosmos.net
  description: Generated server url
security:
- ApiKeyAuth: []
tags:
- name: UserHardwareTokens
paths:
  /api/r2/{communityName}/usertokens:
    put:
      tags:
      - UserHardwareTokens
      summary: Import hardware tokens for users
      description: 'Bulk import of hardware tokens for users into the system.


        The request body should contain a list of UserHardwareTokenPutRequest objects.

        If the list exceeds 25,000 tokens, an error is returned.'
      operationId: importHardwareTokens
      parameters:
      - name: communityName
        in: path
        required: true
        schema:
          type: string
      - name: publickey
        in: header
        description: Public key of the client
        required: true
        schema:
          type: string
      - name: licensekey
        in: header
        description: License key encrypted with ECDSA
        required: true
        schema:
          type: string
      - name: requestId
        in: header
        description: JSON string encrypted with ECDSA containing appid, uuid, and ts
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserHardwareTokenImportRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
    delete:
      tags:
      - UserHardwareTokens
      summary: Delete user hardware tokens
      description: Deletes hardware tokens for users based on the provided token list.
      operationId: deleteUserHardwareTokens
      parameters:
      - name: communityName
        in: path
        required: true
        schema:
          type: string
      - name: publickey
        in: header
        description: Public key of the client
        required: true
        schema:
          type: string
      - name: licensekey
        in: header
        description: License key encrypted with ECDSA
        required: true
        schema:
          type: string
      - name: requestId
        in: header
        description: JSON string encrypted with ECDSA containing appid, uuid, and ts
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: {}
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
  /api/r2/{communityName}/usertokens/import_csv:
    post:
      tags:
      - UserHardwareTokens
      summary: Import hardware tokens from a CSV file
      description: 'Uploads a CSV file to bulk import hardware tokens for users.

        Validates the file type and size, processes CSV to assign tokens.'
      operationId: importUserHardwareTokensCsv
      parameters:
      - name: communityName
        in: path
        required: true
        schema:
          type: string
      - name: publickey
        in: header
        description: Public key of the client
        required: true
        schema:
          type: string
      - name: licensekey
        in: header
        description: License key encrypted with ECDSA
        required: true
        schema:
          type: string
      - name: requestId
        in: header
        description: JSON string encrypted with ECDSA containing appid, uuid, and ts
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
              required:
              - file
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
  /api/r2/{communityName}/usertokens/fetch:
    post:
      tags:
      - UserHardwareTokens
      summary: Fetch user hardware tokens
      description: Fetches hardware tokens for users based on the provided filtering criteria.
      operationId: fetchUserHardwareTokens
      parameters:
      - name: communityName
        in: path
        required: true
        schema:
          type: string
      - name: publickey
        in: header
        description: Public key of the client
        required: true
        schema:
          type: string
      - name: licensekey
        in: header
        description: License key encrypted with ECDSA
        required: true
        schema:
          type: string
      - name: requestId
        in: header
        description: JSON string encrypted with ECDSA containing appid, uuid, and ts
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserHardwareTokenFetchRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
components:
  schemas:
    UserHardwareTokenImportRequest:
      type: object
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/UserHardwareTokenPutRequest'
        eventData:
          type: object
          additionalProperties: {}
    UserHardwareTokenPutRequest:
      type: object
      properties:
        serialNumber:
          type: string
        username:
          type: string
        valid:
          type: boolean
    Query:
      type: object
      properties:
        username:
          type: string
        serialNumber:
          type: string
    UserHardwareTokenFetchRequest:
      type: object
      properties:
        pIndex:
          type: integer
          format: int32
        pSize:
          type: integer
          format: int32
        query:
          $ref: '#/components/schemas/Query'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: licensekey
      in: header
x-provenance:
  method: harvested
  publisher: 1Kosmos
  source: https://blockid-trial.1kosmos.net/v3/api-docs
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)