---
title: "getMe"
---

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

# getMe

Path: agenthold API › auth

`GET /me`

URL: `/api/v1/me`

## Authentication

Requires one of the following:

- `session`, apiKey, in cookie
- `token`, http bearer, header `Authorization`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/me' \
  --cookie 'agenthold_session=<agenthold_session>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/me';
const options = {
  method: 'GET',
  headers: {cookie: 'agenthold_session=<agenthold_session>'}
};

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

### Python

```python
import requests

url = "<base-url>/api/v1/me"

headers = {"cookie": "agenthold_session=<agenthold_session>"}

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

print(response.text)
```

## Responses

### 200

The signed-in user.

#### Example

```json
{
  "user": {
    "id": "string",
    "email": "string",
    "name": "string",
    "avatarUrl": "string"
  },
  "personalWorkspaceId": "string"
}
```

- `user` (`getMe.response.200.user`; object, required)
  - `id` (`getMe.response.200.user.id`; string, required)
  - `email` (`getMe.response.200.user.email`; string, required)
  - `name` (`getMe.response.200.user.name`; string, required)
  - `avatarUrl` (`getMe.response.200.user.avatarUrl`; string, required)
- `personalWorkspaceId` (`getMe.response.200.personalWorkspaceId`; string, required)

### 401

Error.

#### Example

```json
{
  "error": "string"
}
```

- `error` (`getMe.response.401.error`; string, required)


Source: https://agenthold.dev/api/me/list/index.md
