> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mclicense.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Tebex

> This page will show how to setup integration with Tebex so that users automatically receive their license keys via email upon purchase.

## How it works

Tebex does not support inserting placeholders into downloadable files, so the delivery flow works differently to BuiltByBit and Voxel Shop (Polymart).

When a user completes a purchase on your Tebex store, Tebex tells MC License. MC License then creates a license key for that user and emails it directly to the email address they used at checkout. The license becomes an MC License managed license, meaning you can view, modify, and revoke it from your dashboard at any time.

This means that no intervention is required on your part to manage licenses, nor on the user’s part to request their license key. From the moment a user purchases your resource, they will have a license key ready to use in their email inbox.

## Setup

Firstly, head to [https://creator.tebex.io/webhooks](https://creator.tebex.io/webhooks), copy your webhook secret key, and paste it into the [Keys](https://dash.mclicense.org/keys) page on the dashboard. It will look like this:

Next, copy the Endpoint generated by MC License. It will look like this: `https://api.mclicense.org/tebex/[userid]`

In the same webhooks page, click `Add Endpoint`. Paste the URL and ensure `Payment Completed` is type is checked.

## Integration

Create a plugin using your intended Tebex Package ID in the dashboard.

<Info>Integration into your code is the exact same as the standard [license check](/license-check).</Info>

That’s it! MC License will now automatically manage licenses for your Tebex resource and your users will get instant, licensed access after purchase.
