# API referentie (kern)

Base URLs: Cockpit `http://10.4.7.18:8600` · Tools API `http://10.4.7.18:8700`

## Reclame folders

| Method | Path | Beschrijving |
|--------|------|--------------|
| GET | `/api/retail/reclamefolder/chains` | Alle supermarktketens |
| POST | `/api/retail/reclamefolder/refresh` | Sync van reclamefolder.nl |
| GET | `/api/retail/promo-campaigns` | Query: `chain`, `q`, `folder_type`, `valid_days`, `limit` |

Folder links: `https://www.reclamefolder.nl/f/folders/{edition_id}/`

## Marketing publish (Cockpit)

| Method | Path | Beschrijving |
|--------|------|--------------|
| POST | `/api/marketing/upload` | multipart image upload |
| POST | `/api/marketing/publish` | 202 — start background job |
| GET | `/api/marketing/publish/{job_id}` | Job status + result |
| GET | `/api/marketing/publish/history` | Recente jobs |
| GET | `/api/marketing/channels` | Geconfigureerde kanalen |

Kanalen: `twitter`, `linkedin`, `instagram`, `facebook`, `tiktok`, `pinterest`

## Settings social

| Method | Path |
|--------|------|
| GET | `/api/settings/social` |
| PUT | `/api/settings/social/{platform}` |
| POST | `/api/settings/social/{platform}/test` |

## IT Ops

| Method | Path |
|--------|------|
| GET | `/api/ops/topology` |
| GET | `/api/ops/snapshot` |
| POST | `/api/ops/refresh` |

## Packaging

| Method | Path |
|--------|------|
| POST | `/packaging/generate` |
| GET | `/packaging/preview/{id}` |

Zie Tools API OpenAPI op `:8700/docs` voor volledige lijst.
