# ClaudeBox API

File transfer bridge between Claude.ai and Claude Code.

## Authentication

All endpoints (except this one) require:
```
Authorization: Bearer <token>
```

## Endpoints

### Upload a file
```
PUT /<key>
Content-Type: <mime-type>
Body: file contents
```

### Download a file
```
GET /<key>
```

### List files
```
GET /?list
GET /?list&prefix=<prefix>
```

### Delete a file
```
DELETE /<key>
```

## Examples

Upload:
```bash
curl -X PUT -H "Authorization: Bearer $CLAUDEBOX_TOKEN" \
  -H "Content-Type: text/plain" \
  --data-binary @file.txt \
  https://claudebox.marx.sh/<key>
```

Download:
```bash
curl -H "Authorization: Bearer $CLAUDEBOX_TOKEN" \
  https://claudebox.marx.sh/<key>
```

List:
```bash
curl -H "Authorization: Bearer $CLAUDEBOX_TOKEN" \
  "https://claudebox.marx.sh/?list"
```
