Middleware

Interact with Telco Blacklist Middleware API

Users → Create User

AI-generated

Summary

Create a new user in the Middleware service by providing their Telegram ID and an optional username.

Inputs

  • Authentication — Choose the authentication method to use: 'None' or 'Credentials'. Defaults to 'None'.
  • Base URL — The base URL of your middleware service, used only if no credentials authentication is selected. Defaults to 'https://glb-middleware.xeri.dev'.
  • Telegram ID (required) — The numerical Telegram user ID to create the user for.
  • Username — An optional Telegram username to assign to the user.

Output shape

a JSON object representing the created user, returned as an array with a single item.

The operation sends a POST request to the /api/users/create endpoint of the middleware service. If multiple items are processed, a corresponding created user object is returned for each input item. Errors are returned per item if continueOnFail is enabled.

Examples

Example 1: Create a user with Telegram ID only

Set Telegram ID to '123456789', leave Username blank.

Example 2: Create a user with Telegram ID and username

Set Telegram ID to '123456789' and Username to 'john_doe'.

Discussion