---
name: choutos/api-integration
source: https://app.decimal.ai/s/choutos-api-integration@1/SKILL.md
source_sha256: 6de9e093e32d
---

# Acme API Integration

Auth: Bearer token from `ACME_TOKEN` env var.
Base URL: `https://api.acme.example.com/v2`
Rate limit: 60 requests/minute

## Common Operations

| Action | Method | Endpoint |
|--------|--------|----------|
| List files | GET | `/files?directory_id={id}` |
| Upload | POST | `/upload?directory_id={id}` (multipart) |
| Download | GET | `/files/{id}/download` |
| Create dir | POST | `/files/{parent_id}/directory` |
| Delete | DELETE | `/files/{id}` |

## Auth Pattern

```bash
source ~/.credentials/acme.env
curl -s -H "Authorization: Bearer $ACME_TOKEN" "$ACME_BASE/files?directory_id=1"
```

## Upload

```bash
curl -s -X POST "$ACME_BASE/upload?directory_id=$DIR_ID" \
  -H "Authorization: Bearer $ACME_TOKEN" \
  -F "file=@/path/to/file"
```

## Notes

- All responses wrapped in `{"result": "success", "data": ...}`
- Parse with `jq .data`
- For full schema, see `references/api-schema.md`