# Get customer details (/data-api/api-reference/getCustomerIdentity)

Returns detailed information about the consumer from the most recent consent

## GET /v1/common/identity

**Get customer details**

Returns detailed information about the consumer from the most recent consent

**Tags:** Identity

### Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `end_user_id` | query | string | Yes | A unique identifier for the End User object. |
| `institution_id` | query | string | No | A unique identifier for the Institution object. |

### Responses

**200:** OK

| Field | Type | Description |
|-------|------|-------------|
| `customer` | object | Customer contains customer identity from the most recent consent for the provided end user ID.
This field is deprecated and will be removed in the future. |
| `identities` | github_com_fiskil_energy_v2_internal_http_handler_identity.Identity[] | Identities contains all the customer identities for the provided end user ID |

**400:** Bad Request

| Field | Type | Description |
|-------|------|-------------|
| `id` | string |  |
| `message` | string |  |
| `name` | string |  |

**500:** Internal Server Error

| Field | Type | Description |
|-------|------|-------------|
| `id` | string |  |
| `message` | string |  |
| `name` | string |  |

### Example Request
```bash
curl -X GET "https://api.fiskil.com/v1/common/identity" \
  -H "Authorization: Bearer YOUR_TOKEN"
```