# 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 %}


---

# Agent Instructions: 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://moota.gitbook.io/technical-docs/user.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.
