# Built-In Functions

The bx-plus module provides three built-in functions for comprehensive license management:

## License Management Functions

### 🔑 [BoxlangLicenseActivate](/boxlang-+-++/modules/bx-plus/built-in-functions/boxlanglicenseactivate.md)

Activate a new BoxLang+ or BoxLang++ license using an email address and license key.

**Usage:**

```js
result = boxlangLicenseActivate(
    email = "admin@example.com",
    licenseKey = "XXXX-XXXX-XXXX-XXXX",
    serverType = "Production"
);
```

### ℹ️ [BoxlangLicenseInfo](/boxlang-+-++/modules/bx-plus/built-in-functions/boxlanglicenseinfo.md)

Get current license status and detailed information about the active license.

**Usage:**

```js
licenseInfo = boxlangLicenseInfo();
if ( licenseInfo.isValidLicense ) {
    systemOutput( "License active until: " & licenseInfo.expirationDate );
}
```

### 🔄 [BoxlangLicenseRefresh](/boxlang-+-++/modules/bx-plus/built-in-functions/boxlanglicenserefresh.md)

Refresh an existing license token to extend its validity period.

**Usage:**

```js
try {
    result = boxlangLicenseRefresh();
    if ( result.success ) {
        systemOutput( "License refreshed successfully" );
    }
} catch ( Exception e ) {
    systemOutput( "Error: " & e.message );
}
```


---

# 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://boxlang.ortusbooks.com/boxlang-+-++/modules/bx-plus/built-in-functions.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.
