HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

Customers API Reference

This topic provides a quick reference for Optimizely Data Platform's (ODP) Customers API.

Full Reference

API
Web SDK

Quick Reference

curl -iX POST \
https://api.zaius.com/v3/profiles \
-d '{
  "attributes": {
    "first_name": "Johnny",
    "last_name": "Zaius",
    "email": "[email protected]",
    "phone": "555-867-5309",
    "street1": "123 Fake St",
    "street2": "Apt 101",
    "city": "Boston",
    "state": "MA",
    "zip": "02101",
    "country": "USA",
    "timezone": "America/New_York",
    "gender": "M"
  }
}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: REPLACE_THIS_WITH_API_KEY'
zaius.entity("customer", {
    email: "[email protected]",
    first_name: "Johnny",
    last_name: "Zaius",
    gender: "M"
    // any custom fields you've created can be added here
});

Next
Did this page help you?