> For the complete documentation index, see [llms.txt](https://magicpay.gitbook.io/magicpay-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magicpay.gitbook.io/magicpay-documentation/users/create-user.md). Agents can also search and read this documentation through its [MCP server](https://magicpay.gitbook.io/magicpay-documentation/~gitbook/mcp).

# Create User

## 2.2 Create User

**Request**

| Method | URL                |
| ------ | ------------------ |
| POST   | /merchant/v1/users |

```
{
    "email": "newuser123@examplee.com",
    "name": "New User",
    "surname": "User",
    "password": "newuserpassword",
    "merchant_id": 1,
    "gsm_number": "9787867"
}
```

**Response**

| Status | Response                                                                                                                                                                                                          |
| ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | <p>{</p><p>"id": 2,</p><p>"email": "<newuser@example.com>",</p><p>"name": "New User",</p><p>"merchantId": 123,</p><p>"createdDate": "2022-01-01T12:00:00",</p><p>"updatedDate": "2022-01-01T12:00:00"</p><p>}</p> |
| 403    |                                                                                                                                                                                                                   |
| 400    |                                                                                                                                                                                                                   |
| 401    |                                                                                                                                                                                                                   |
| 401    |                                                                                                                                                                                                                   |
| 500    |                                                                                                                                                                                                                   |

[<br>](https://hilals-organization.gitbook.io/magicpay-documentation/2.users/2.1-user-authenticate)
