# Registration

{% hint style="info" %}
To register a new user using the **mobile** provider
{% endhint %}

{% tabs %}
{% tab title="Request" %}
`POST https://mburger.cloud/api/register`

```bash
curl https://mburger.cloud/api/register
 -X POST 
 -H "Accept: application/json" 
 -H "Content-Type: application/x-www-form-urlencoded" 
 -H "X-MBurger-Token: " 
 -H "X-MBurger-Version: 3" 
 -d '<data>' 
```

#### Parameters

| Name         | Type   | Required | Description                                 |
| ------------ | ------ | -------- | ------------------------------------------- |
| name         | string | Yes      | The user name                               |
| surname      | string | Yes      | The user surname                            |
| email        | string | Yes      | User email                                  |
| password     | string | Yes      | Password                                    |
| phone        | string | No       | The user phone number                       |
| gender       | string | No       | The user gender                             |
| image        | string | No       | Base64 encoded image                        |
| contracts    | JSON   | No       | JSON array of contracts accepted by user    |
| data         | JSON   | No       | JSON object/array that contains custom data |
| {% endtab %} |        |          |                                             |

{% tab title="Response" %}
When successful, a HTTP 200 and JSON like this is returned:

```bash
{
  "status_code": 0
}
```

{% endtab %}
{% endtabs %}
