# Recordings

4 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.

## The organization's desktop session recordings, newest first[#]

GET`/v1/recordings`scope sandboxes:read

Parameters

`sandbox_id`query · string

—

`limit`query · integer

—

Responses

200401403

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

## A signed download URL for a recording's MP4[#]

POST`/v1/recordings/{id}/link`scope sandboxes:read

Parameters

`id`requiredpath · string

Recording id (rec_…)

JSON body

`ttl_s`integer

Default 900 Min 60. Max 86400.

Responses

200400401403404409

```
curl -s -X POST https://api.kosa8.com/v1/recordings/$SBX/link \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json
```

## Delete a recording now[#]

DELETE`/v1/recordings/{id}`scope sandboxes:write

Parameters

`id`requiredpath · string

Recording id (rec_…)

Responses

200401403404

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

## A sandbox's recordings (made when it is deleted)[#]

GET`/v1/sandboxes/{id}/recordings`scope sandboxes:read

Parameters

`id`requiredpath · string

Sandbox id (sbx_…)

Responses

200401403404

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

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