# Who am I: Verify your connection to Kaoshi API

Use the who am i API endpoint to test your connection.

curl --location --request GET 'https://app.sandbox.kaoshinetwork.com/api/api/v1/user/who-am-i' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer secret-api-token'
1
2
3

The response returned is a user object.

Your user id will be needed in the next step. Your user id will be in the id field of the response from the who-am-i API endpoint.

{
    "id": "8emyze",
    "email": "bank-api@example.com",
    "username": "bank-api",
    "firstname": "bank",
    "lastname": "API",
    "phone": null,
    "two_factor_verified": null,
    "avatar": null,
    "address": "21 Araromi St",
    "role": "customer",
    "country": "Nigeria",
    "timezone": "Africa/Lagos",
    "joined_at": "2020-01-21T11:16:21.000Z",
    "updated_at": null,
    "verified_at": "2020-01-21T11:16:21.000Z",
    "verification_started_at": null,
    "email_verified_at": "2020-01-21T11:16:21.000Z",
    "is_active": 1,
    "dob": null,
    "gender": null,
    "city": "Lagos",
    "state": "Lagos",
    "zipcode": "100001",
    "mxuid": null,
    "can_post_offers": 1,
    "can_accept_offers": 1,
    "has_valid_address": true,
    "currencies": [
        {
            "currency_code": "NGN",
            "currency_name": "nigerian naira",
            "symbol": "₦",
            "flag": "ngn.svg",
            "max_amount": 300000,
            "min_amount": 30000,
            "steps": 1000,
            "payment_types": {
                "nigerian_bank_payment": {
                    "account_name": "",
                    "account_number": "",
                    "bank_code": ""
                }
            },
            "can_trade_with": [
                "ghs",
                "eur",
                "cad",
                "gbp",
                "usd"
            ]
        }
    ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

An error response is also possible. The error shown below was caused by an incorrect API token.

{
    "message": "Unauthorized"
}
1
2
3