> For the complete documentation index, see [llms.txt](https://kyaws-organization-2.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kyaws-organization-2.gitbook.io/untitled/user-authentication.md).

# User Authentication

### Register

<mark style="color:green;">`POST`</mark> `https://eco-api-ogdf.onrender.com/fod/api/v1/users/register`

#### Request Body

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| username<mark style="color:red;">\*</mark> | String |             |
| email<mark style="color:red;">\*</mark>    | String |             |
| password<mark style="color:red;">\*</mark> | String |             |

### Login

<mark style="color:green;">`POST`</mark> `https://eco-api-ogdf.onrender.com/fod/api/v1/users/login`

#### Request Body

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| username<mark style="color:red;">\*</mark> | String |             |
| password<mark style="color:red;">\*</mark> | String |             |
