/query

Document • By Codrut Software • Last modified 09 April 2026

The bolded name is provided in the request JSON object as the "mode" value.

https://api.codrutsoft.com/query


These requests require the values service and secret-key provided in the request body. The API key can be generated from the service dashboard, and is used to authenticate the service making the request.

Methods

  • test - Returns a successful result for testing purposes.
  • gen-token - Generates and returns a random token of 48 characters in message.
  • get-accounts - Returns in accounts an array of account IDs linked to the service.
  • get-account-info - Returns in value the account information specified in info for the account ID provided in account. Requires access to the account.
  • get-account-id - Returns in value the account ID for the username provided in username, if it exists and is linked to the service.
  • auth-create - Creates an authentication code for the account ID provided in account. Optional parameters: tag (string), window (boolean, default true), infinite (boolean), expiry (timestamp). Returns the auth code in auth-code. Requires access to the account.
  • auth-test - Tests the authentication code provided in auth-code for the account ID in account. Optional parameters: tag (string), window (boolean, default true). Returns in passed whether the validation passed. Requires access to the account.