> ## Documentation Index
> Fetch the complete documentation index at: https://www.orwel.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Identity

> Retrieve a specific visitor identity by ID

> [!NOTE]
>
> Requires an [API key](https://www.orwel.io/docs/authentication.md) (`orwel_sk_`) with the `visitors:read` scope.

## Path Parameters

**id** `string` *required*

The unique identifier (UUID) of the identity

## Response

**data** `object`

The visitor identity object

**Identity Object**

**id** `string`

Unique identifier for the identity

**workspace\_id** `string`

Workspace ID (always your workspace)

**visitor\_id** `string`

Associated visitor ID

**email** `string`

Email address

**name** `string`

Full name

**traits** `object`

Custom traits (JSONB)

**first\_seen** `string`

ISO 8601 timestamp of first visit

**last\_seen** `string`

ISO 8601 timestamp of last visit

**ip** `string`

IP address

**city** `string`

City

**country** `string`

Country

**is\_favorite** `boolean`

Whether identity is marked as favorite

**created\_at** `string`

ISO 8601 timestamp of creation

```bash cURL theme={null}
curl -X GET "https://api.orwel.io/api/v1/identities/ee0e8400-e29b-41d4-a716-446655440009" \
  -H "Authorization: Bearer orwel_sk_YOUR_KEY"
```

```javascript JavaScript theme={null}
const identityId = 'ee0e8400-e29b-41d4-a716-446655440009';

const response = await fetch(
  `https://api.orwel.io/api/v1/identities/${identityId}`,
  {
    headers: {
      'Authorization': 'Bearer orwel_sk_YOUR_KEY'
    }
  }
);

const data = await response.json();
```

```python Python theme={null}
import requests

identity_id = 'ee0e8400-e29b-41d4-a716-446655440009'

headers = {
    'Authorization': 'Bearer orwel_sk_YOUR_KEY'
}

response = requests.get(
    f'https://api.orwel.io/api/v1/identities/{identity_id}',
    headers=headers
)

data = response.json()
```

```json 200 OK theme={null}
{
  "data": {
    "id": "ee0e8400-e29b-41d4-a716-446655440009",
    "workspace_id": "770e8400-e29b-41d4-a716-446655440002",
    "visitor_id": "660e8400-e29b-41d4-a716-446655440001",
    "email": "user@example.com",
    "name": "John Visitor",
    "traits": {
      "plan": "enterprise",
      "company": "Acme Corp"
    },
    "first_seen": "2025-01-10T08:00:00Z",
    "last_seen": "2025-01-15T16:30:00Z",
    "ip": "192.168.1.1",
    "city": "San Francisco",
    "country": "USA",
    "is_favorite": true,
    "created_at": "2025-01-10T08:00:00Z"
  }
}
```

```json 404 Not Found theme={null}
{
  "error": "not_found",
  "message": "Identity not found or does not belong to your workspace"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.