> For the complete documentation index, see [llms.txt](https://connector-api.orelc.ac/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://connector-api.orelc.ac/fonctionnalites/createuser.md).

# createUser

## Requête

Permet de créer un utilisateur.&#x20;

#### Endpoint

```url
[Domain]/academy/api/v1/Dictionary/createUser
```

#### Body

```json
{
    "sex" : "M",  
    "email" : "johndoe@email.com",
    "firstName" : "John",
    "lastName" : "Doe",
    "password" : "123456",    
    "dialect" : "wni"
    "shikomoriLevel" : 1
}
```

#### Exemple

{% tabs %}
{% tab title="Javascript" %}

```javascript
const endpoint = "[endpoint]";
const apiKey = "[myAPIKey]";

fetch(endpoint, {
    method: "POST",
    headers: {
        "Authorization": apiKey,
        "Content-Type": "application/json",
    },
    body: JSON.stringify({
        "sex" : "M",  
        "email" : "johndoe@email.com",
        "firstName" : "John",
        "lastName" : "Doe",
        "password" : "123456",    
        "dialect" : "wni"
        "shikomoriLevel" : 1
    })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Erreur :", error));

```

{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}

Description des champs de la requête

| Champ          | Type    | Description                                             | Valeur  |
| -------------- | ------- | ------------------------------------------------------- | ------- |
| sex            | string  | L'entrée à traduire                                     | requise |
| email          | string  | Email de connexion                                      | requise |
| firstName      | string  | Prénom                                                  | requise |
| lastName       | string  | Nom de famille                                          | requise |
| password       | string  | Mot de passe                                            | requise |
| dialect        | string  | [Variété linguistique ](/langues/dialect.md)(ISO 639-3) | requise |
| shikomoriLevel | integer | Niveau de langue                                        | requise |

## Réponse

```json
{
    "success": true,
    "message": "Félicitations ! Votre compte a été crée avec succès. Vous pouvez maintenant vous connecter."
}
```

Description des champs de la réponse

| Champ   | Type    | Description                                               |
| ------- | ------- | --------------------------------------------------------- |
| success | boolean | Renvoie true si l'utilisateur a été crée, autrement false |
| message | string  | Information sur  l'exécution de la requête                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://connector-api.orelc.ac/fonctionnalites/createuser.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.
