0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Generate → Mock Data User

AI-generated

Overview

The node provides a utility to generate mock user data, which is useful for testing, prototyping, or populating applications with sample user information. It can create multiple fake users with customizable options such as locale and whether to include avatar images. This helps developers and testers simulate real-world scenarios without needing actual user data.

For example, you might use this node to generate 10 mock users in English (US) locale including avatars to test a social media app's user profile display.

Properties

Name Meaning
Number of Users The number of mock user profiles to generate.
Include Avatar Whether to include avatar image URLs in the generated user data (true/false).
Locale The locale/language for the generated user data. Options: English (US), German (DE), French (FR), Spanish (ES).

Output

The output JSON contains an array of generated mock user objects. Each user object includes typical user profile fields such as name, email, and optionally an avatar URL if enabled. The exact structure depends on the external service response but generally represents realistic user data suitable for testing.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authentication with the external "0CodeKit" service.
  • The node sends a POST request to the endpoint /generate/mockdata-user on the base URL https://prod.0codekit.com.
  • The request body includes parameters for count, includeAvatar, and locale based on user input.

Troubleshooting

  • Common issues:
    • Invalid or missing API key credential will cause authentication errors.
    • Providing zero or negative numbers for "Number of Users" may result in no data or errors.
    • Unsupported locale values (outside the provided options) are not accepted.
  • Error messages:
    • Authentication failures typically indicate invalid or missing API credentials; verify your API key setup.
    • Validation errors may occur if required parameters are missing or out of range; ensure all required inputs are correctly set.
    • Network or service errors from the external API should be retried or checked for service availability.

Links and References

Discussion