# Session

## Get User Session

## Retrieve User Session

<mark style="color:blue;">`GET`</mark> `https://wimikabankservice.azurewebsites.net/api/Session`

You can use this method to get your user session. This session can only be available once Wimika provides you with a `partnerToken`.

#### Headers

| Name                                                      | Type   | Description               |
| --------------------------------------------------------- | ------ | ------------------------- |
| x-wimika-partner-token <mark style="color:red;">\*</mark> | String | Your Wimika partner token |

{% tabs %}
{% tab title="200: OK User session retrieved" %}

```
/{
  "user": {
    "id": "1234567",
    "firstName": "namea",
    "lastName": "nameb",
    "bvn": "12345678976",
    "email": "example@example.com",
    "telephone": "9093476658",
    "loginNameFragment": "nameabc",
    "loginPasswordFragment": "abc123"
  },
  "session": {
    "sessionId": "405af63b-b708-4c89-b4fe-e990a5ee64a4",
    "startTime": "2023-06-01T22:25:44.098Z",
    "lastActivity": "2023-06-01T22:25:44.098Z"
  }
}
```

{% endtab %}
{% endtabs %}

#### Example Request

{% code lineNumbers="true" %}

```
curl \
    -H 'Accept: application/JSON' \
    -H 'x-wimika-session-id: 08303832' \
-X GET https://wimikabankservice.azurewebsites.net/api/Session
```

{% endcode %}
