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

# Profile

## Get Profile Information

The table given below describes the /api/v2/user.<br>

## Get Profile Data

<mark style="color:blue;">`GET`</mark> `https://app.moota.co/api/v2/user`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

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

```
{
    "name": "moota co",
    "email": "moota@mail.com",
    "no_ktp": "12312111111",
    "alamat": "Jl Terusan Cikutra Baru No. 3B Kel. Neglasari Kec. Cibeunying Kaler Bandung",
    "email_verified_at": null,
    "created_at": "2020-06-08T10:05:54.000000Z",
    "updated_at": "2021-07-29T19:02:28.000000Z",
    "user_id": "D1KkLE28zPQ",
    "token": "D1KkLE28zPQ",
    "point": 38338
}
```

{% endtab %}

{% tab title="404 " %}

```
{
    "message" : "Invalid Credentials"
}
```

{% endtab %}
{% endtabs %}

## Update Profile Data

<mark style="color:blue;">`GET`</mark> `https://app.moota.co/api/v2/user`

#### Request Body

| Name    | Type   | Description                          |
| ------- | ------ | ------------------------------------ |
| alamat  | string | Alamat detail address current living |
| no\_ktp | string | No Ktp for identification profile    |
| email   | string | Email is valid and active            |
| name    | string | Name of you                          |

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

```
{
  "user" : {
    "name": "moota co",
    "email": "moota@mail.com",
    "no_ktp": "12312111111",
    "alamat": "Jl Terusan Cikutra Baru No. 3B Kel. Neglasari Kec. Cibeunying Kaler Bandung",
    "email_verified_at": null,
    "created_at": "2020-06-08T10:05:54.000000Z",
    "updated_at": "2021-07-29T19:02:28.000000Z",
    "user_id": "D1KkLE28zPQ",
    "token": "D1KkLE28zPQ",
    "point": 38338
  }
}
```

{% endtab %}

{% tab title="422 " %}

```
{
  "message": "The given data was invalid.",
  "errors": {
    "email": [
      "Kolom email harus berisi email yang valid."
    ]
  }
}
```

{% endtab %}
{% endtabs %}
