MikroTik RouterOS icon

MikroTik RouterOS

Complete MikroTik RouterOS automation - PPPoE, Hotspot, Queue, Interface, and Router management

Hotspot → Create User

AI-generated

Summary

Create a new hotspot user on a specified MikroTik router via the middleware API.

Inputs

  • Router Name (required) — The name of the MikroTik router as configured in the middleware.
  • Username (required) — The hotspot username to create.
  • Timeout — Optional request timeout in seconds, defaults to 30.

Output shape

a single JSON object containing operation success status, confirmation message, and the created user data from the middleware API.

The output includes a 'success' boolean, a 'message' string confirming creation, and 'data' with response details. Errors can be returned in an error envelope if 'Continue On Fail' is enabled.

Examples

Example 1: Create a new hotspot user named 'customer123' on the 'main-router' router with a 30-second timeout.

Set 'Router Name' to 'main-router', 'Username' to 'customer123', and optionally leave 'Timeout' as 30.

Links

Discussion