---
title: "listHarnesses"
---

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

# listHarnesses

Path: agenthold API › sessions

`GET /harnesses`

URL: `/api/v1/harnesses`

## 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/harnesses' \
  --cookie 'agenthold_session=<agenthold_session>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/harnesses';
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/harnesses"

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

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

print(response.text)
```

## Responses

### 200

Available harnesses.

#### Example

```json
[
  {
    "id": "string",
    "accountLogins": true,
    "default": true,
    "name": "string",
    "secretPresets": [
      "string"
    ],
    "installHint": "string"
  }
]
```

- `id` (`listHarnesses.response.200.id`; string, required)
- `accountLogins` (`listHarnesses.response.200.accountLogins`; boolean, required) — Its login can live on the user's account (/me/provider-logins).
- `default` (`listHarnesses.response.200.default`; boolean, required) — Used when an agent does not name a harness.
- `name` (`listHarnesses.response.200.name`; string, required)
- `secretPresets` (`listHarnesses.response.200.secretPresets`; array of string, required)
- `installHint` (`listHarnesses.response.200.installHint`; string, required)


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