# Machines

5 endpoints at `https://api.kosa8.com`, sent with `Authorization: Bearer $KOSA8_API_KEY`. Generated from the API's own [OpenAPI description](https://api.kosa8.com/openapi.json), which a test holds to the router.

## Sandbox and function counts, this month's usage and credit, recent activity and host capacity[#]

GET`/v1/overview`scope sandboxes:read

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/overview \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Secure, Safe and Sovereign posture scores from this org's own settings, the active fleet by state, region and template, the threat feed and swarm summary, 14 days of sandboxes started and sandbox-hours (trend), the home region and placement (place), and 14 days of audit activity with commands run (activity is null without audit:read). Reads the database only[#]

GET`/v1/overview/posture`scope sandboxes:read

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/overview/posture \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## What this org's hosts can do: dataplane (checkpoints, rewind, fork, files), containers, custom images[#]

GET`/v1/capabilities`scope sandboxes:read

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/capabilities \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Sandboxes with their fork parents, for drawing the fork tree[#]

GET`/v1/lineage`scope sandboxes:read

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/lineage \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Images behind the templates this org's hosts offer, with tag and digest when the reference names them[#]

GET`/v1/images`scope sandboxes:read

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/images \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

---
Source: https://docs.kosa8.com/api/machines/
