Saltar al contenido
OpenALaCarte

Newsletter

List, add and unsubscribe newsletter subscribers. Auth: Authorization: Bearer oac_live_<key>. A company key covers every property it owns; a venue key covers its venue. Lists are cursor-paginated.

GET/api/v1/newsletter/subscribers

List subscribers.

Query: status (SUBSCRIBED·UNSUBSCRIBED), limit, cursor

POST/api/v1/newsletter/subscribers

Add or resubscribe (idempotent by email). type+slug required when the key owns >1 property.

Requires the write scope.

cURL
curl -X POST https://openalacarte.com/api/v1/newsletter/subscribers \
  -H "Authorization: Bearer oac_live_<your-key>" -H "Content-Type: application/json" \
  -d '{"email":"fan@example.com","type":"RESTAURANT","slug":"the-red-lion-arundel"}'
DELETE/api/v1/newsletter/subscribers/{id}

Unsubscribe (soft — status → UNSUBSCRIBED).

Requires the write scope.