Public API

API Endpoints

Öffentliche Endpoints für Blog-Posts, View-Tracking und Newsletter-Subscribers.

https://copy-choices.de/api/v1
Base URL
https://copy-choices.de/api/v1

Beispiel: /api/v1/posts

Antwortformat
application/json

Header: Accept: application/json

Rate Limits
POST /posts/{slug}/track-view: 60/min
POST /subscribers: 20/min
Endpoints

Requests testen

Aufklappen · Beispiel · Try
GET /posts Liste veröffentlichter Posts, optional Target-Filter
target=all|handmade|b2b Default: all
curl -s "https://copy-choices.de/api/v1/posts?target=handmade"
GET /posts/{slug} Post-Detail inkl. Content + Tracking-Info
curl -s "https://copy-choices.de/api/v1/posts/beispiel-slug?target=all"
POST /posts/{slug}/track-view Views total + unique pro Besucher/Tag
curl -s -X POST "https://copy-choices.de/api/v1/posts/beispiel-slug/track-view"
POST /subscribers Subscriber anlegen/aktualisieren
curl -s -X POST "https://copy-choices.de/api/v1/subscribers" \
  -H "Content-Type: application/json" \
  -d '{"name":null,"email":"max@example.com","target":"handmade","company":""}'
Honeypot: Wenn company gefüllt ist, antwortet der Server absichtlich „ok“, führt intern aber keine echte Anmeldung aus.