---
title: "Get the authenticated customer profile"
---

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

Path: Hosted EZ REST API

`GET /v1/me`

## Authentication

- `sessionCookie`, apiKey, in cookie

## Code samples

### cURL

```curl
curl --request GET \
  --url https://api.hostedez.com/v1/me \
  --header '__Secure-better-auth.session_token: <value>'
```

### TypeScript

```typescript
const url = 'https://api.hostedez.com/v1/me';
const options = {method: 'GET', headers: {'__Secure-better-auth.session_token': '<value>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.hostedez.com/v1/me"

headers = {"__Secure-better-auth.session_token": "<value>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Authenticated user profile

#### Example

```json
{
  "currentPeriodEnd": 0,
  "email": "string",
  "emailVerified": true,
  "name": "string",
  "organization": {},
  "paid": true,
  "passkeys": [
    {}
  ],
  "period": "string",
  "plan": "string",
  "state": "string",
  "twoFactorEnabled": true,
  "usage": {},
  "userId": "string"
}
```

- `getMe.response.200.currentPeriodEnd` (integer | null, required)
  - format `int64`
- `getMe.response.200.email` (string, required)
- `getMe.response.200.emailVerified` (boolean, required)
- `getMe.response.200.name` (string, required)
- `getMe.response.200.organization` (object | null, required)
- `getMe.response.200.paid` (boolean, required)
- `getMe.response.200.passkeys` (array<object>, required)
- `getMe.response.200.period` (string | null, required)
- `getMe.response.200.plan` (string | null, required)
- `getMe.response.200.state` (string, required)
- `getMe.response.200.twoFactorEnabled` (boolean, required)
- `getMe.response.200.usage` (object, required)
- `getMe.response.200.userId` (string, required)

### 401

Unauthenticated

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `getMe.response.401.error` (object, required)
  - `getMe.response.401.error.code` (string, required)
  - `getMe.response.401.error.message` (string, required)
  - `getMe.response.401.error.issues` (array<object>, optional)
    - `getMe.response.401.error.issues.message` (string, required)
    - `getMe.response.401.error.issues.path` (string, required)

### 429

Upstream authentication rate limited

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `getMe.response.429.error` (object, required)
  - `getMe.response.429.error.code` (string, required)
  - `getMe.response.429.error.message` (string, required)
  - `getMe.response.429.error.issues` (array<object>, optional)
    - `getMe.response.429.error.issues.message` (string, required)
    - `getMe.response.429.error.issues.path` (string, required)

### 503

Authentication service unavailable

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `getMe.response.503.error` (object, required)
  - `getMe.response.503.error.code` (string, required)
  - `getMe.response.503.error.message` (string, required)
  - `getMe.response.503.error.issues` (array<object>, optional)
    - `getMe.response.503.error.issues.message` (string, required)
    - `getMe.response.503.error.issues.path` (string, required)


Source: https://docs.hostedez.com/api/getMe/index.md
