# Insyts user

## Register User

* [x] Successful registration

{% hint style="info" %}
**Good to know:** All the methods shown below are synced to an example Swagger file URL and are kept up to date automatically with changes to the API.Vr
{% endhint %}

## Get Started

To make this endpoint, you will need a valid developer account and, API Keys. Read Authentication to learn more.

{% content-ref url="../../../getting-started/authentication" %}
[authentication](https://akiba-digital.gitbook.io/akiba-api-docs/getting-started/authentication)
{% endcontent-ref %}

### API Endpoint

<mark style="color:green;">`POST`</mark> `https://api.akibaone.com/insyts/registration`

### Request

```
 {
  "clientId": "string",
  "fullNames": "string",
  "email": "string",
  "phoneNumber": "string",
  "country": "string",
  "physicalAddress": "string",
  "isCompany": true,
  "registrationNumber": "string"
}
```

### Response Samples

```
{
  "userId": "string"
}
```

***

## Updating User

### API Endpoint

<mark style="color:green;">`POST`</mark> `https://api.akibaone.com/insyts/updateuser`

### Request

```
 {
  "clientId": "string",
  "fullNames": "string",
  "email": "string",
  "phoneNumber": "string",
  "country": "string",
  "physicalAddress": "string",
  "isCompany": true,
  "registrationNumber": "string"
}
```

### Response Samples

```
{
  "clientId": "string",
  "fullNames": "string",
  "email": "string",
  "phoneNumber": "string",
  "country": "string",
  "physicalAddress": "string",
  "isCompany": true,
  "registrationNumber": "string"
}
```

***

## Get User

### API Endpoint

<mark style="color:green;">`POST`</mark> `https://api.akibaone.com/insyts/accountbyid`

### Request

```
{
  "clientId": "string",
  "userId": "string"
}
```

### Response Samples

```
{
  "clientId": "string",
  "fullNames": "string",
  "email": "string",
  "phoneNumber": "string",
  "country": "string",
  "physicalAddress": "string",
  "isCompany": true,
  "registrationNumber": "string"
}
```

After registering your customer, you will need to get consent to link their accounts with your app.
