---
title: Logs user into the system.
description: Log into the system.
url: "https://cbotai.shahrear.msf.bd/docs/logs-user-into-the-system/"
updated: "2026-08-16"
category: Full setup / user
---

# Logs user into the system.

GET`/user/login`

## Code Samples

```curl

                curl --request GET \
  --url '/api/v3/user/login'

                const response = await fetch('/api/v3/user/login', {
  method: 'GET'
});

const data = await response.json();
console.log(data);

                import requests

response = requests.get("/api/v3/user/login")

print(response.json())

                <?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => '/api/v3/user/login',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'GET',
]);

$response = curl_exec($curl);
curl_close($curl);

echo $response;

                using System.Net.Http;

var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "/api/v3/user/login");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);

                import java.net.URI;
import java.net.http.*;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("/api/v3/user/login"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

Log into the system.

## Query Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | string | Optional | The user name for login |
| `password` | string | Optional | The password for login in clear text |

## Responses

### 200 — successful operation

```json

                "string"
```

### 400 — Invalid username/password supplied

### default — Unexpected error

## Response

```
200
"string"
```
