# Codice univoco per la registrazione dell'utente

**URL:** <https://meta.discourse.org/t/unique-code-for-user-to-register/106491>\
**Category:** Development\
**Created:** [14 Gennaio 2019, 12:57pm UTC](https://meta.discourse.org/t/unique-code-for-user-to-register/106491 "2019-01-14T12:57:35Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [14 Gennaio 2019, 3:18pm UTC](https://meta.discourse.org/t/unique-code-for-user-to-register/106491/6 "2019-01-14T15:18:33Z")

</div>

> [@guiqis](#):
>
> The point is that I’m not sure if an API like this would work with discourse.

The great thing is that because of the nature of the Discourse application all of the actions are available via the API, since that is what the web interface is calling.

Here are the relevant API calls you might use in your scenario:

- [Invite a user by email to join your forum](https://docs.discourse.org/#tag/Invites%2Fpaths%2F~1invites%2Fpost)
- [Generate an invite link but don’t send an email](https://docs.discourse.org/#tag/Invites%2Fpaths%2F~1invites~1link%2Fpost)

---

_[View the full topic](https://meta.discourse.org/t/unique-code-for-user-to-register/106491)._
