> For the complete documentation index, see [llms.txt](https://docs.thx.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thx.network/developers/js-sdk/events.md).

# Events

Create event data and configure custom quests for these events. Your users will be able to earn points for for example levelling up in your game.

<figure><img src="https://1499671166-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fda0CPvFjFKQsHDL5o9xa%2Fuploads%2FMGJ53xZq1JcReBsW20Ib%2FScreenshot%202023-12-21%20at%2013.52.30.png?alt=media&amp;token=819f7c6d-a275-48f7-8ffd-48c57ef8fd18" alt=""><figcaption><p>Example of events in Developer -> Events</p></figcaption></figure>

```javascript
thx.events.create({ 
    event: 'level_up', 
    identity: 'a6021617-9aab-4194-b2af-a4dd0cc96f84' 
})
```

### Use Event Requirements in Quests

Event names you register will automatically show up in the Event Dropdown shown in quest creation modals.

<figure><img src="https://1499671166-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fda0CPvFjFKQsHDL5o9xa%2Fuploads%2FxPBWRniknrYL1s4zs6IL%2FScreenshot%202024-01-18%20at%2009.26.38.png?alt=media&amp;token=4021de41-1d0c-4c4e-9fd9-94781dfb8638" alt=""><figcaption><p>Example of a registered "completed_mission" event.</p></figcaption></figure>
