API

Profiles

Profile endpoints let you search, fetch, and sync contacts for a store.

List profiles

GET /profiles

Query parameters

Param Required Notes
store_slug Yes
q No Search email, first name, last name
status No Exact status filter (subscribed, pending, …)
limit No 1-100, default 50

Response

{
  "data": [
    {
      "public_id": "01H...",
      "email": "[email protected]",
      "first_name": "Ada",
      "last_name": "Lovelace",
      "status": "subscribed",
      "store_slug": "main",
      "updated_at": "2026-11-18T12:00:00.000000Z"
    }
  ]
}

Get one profile

GET /profiles/{public_id}

Returns core fields plus:

  • properties - arbitrary profile properties
  • predictive - intelligence scores when present (historic CLV, predicted LTV, churn risk, next-order fields, …)

Create or update (upsert)

POST /profiles

Finds or creates by email for the given store, then updates provided fields.

{
  "store_slug": "main",
  "email": "[email protected]",
  "first_name": "Ada",
  "last_name": "Lovelace",
  "phone": "+386...",
  "properties": {
    "country": "SI"
  }
}

Response

{
  "public_id": "01H...",
  "email": "[email protected]",
  "status": "subscribed"
}

Upsert syncs data. It does not start double opt-in by itself. When someone is explicitly opting in to marketing, call /subscribe (or use an embed form).

Examples

# Search
curl -sS "$BASE/profiles?store_slug=main&q=ada&limit=20" \
  -H "Authorization: Bearer $TOKEN"

# Upsert
curl -sS -X POST "$BASE/profiles" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"store_slug":"main","email":"[email protected]","properties":{"country":"SI"}}'