# Register

{% hint style="info" %}
Users require a license to register, only the developer can make them available for users to get access to on the web-panel.
{% endhint %}

{% code title="C# WINFORMS" %}

```csharp
private void Button1_Click() { // Register button event handler
 
 if (API.Register(username.Text, password.Text,email.Text,license.Text))
            {
                //Put code here of what you want to do after successful login
                MessageBox.Show("Register has been successful!","Success",MessageBoxButtons.OK,MessageBoxIcon.Information);
            }
}
```

{% endcode %}

{% code title="C# CONSOLE" %}

```csharp
static void Main() {

Console.WriteLine("Username:");
string username = Console.ReadLine();
Console.WriteLine("Password:");
string password = Console.ReadLine();
Console.WriteLine("Email:");
string email = Console.ReadLine();
Console.WriteLine("License:");
string license = Console.ReadLine();

    if (API.Register(username, password, email, license))
    {
    MessageBox.Show("You have successfully registered!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Information);
    // Do code of what you want after successful register here!
    }
                    
}
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://setup.auth.gg/setting-up/register.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
