Klaviyo API for Creating Profile

The API used to create a new profile

Method: POST

Endpoint: https://a.klaviyo.com/api/profiles/

curl --request POST 
   --url https://a.klaviyo.com/api/profiles/ 
   --header 'Authorization: Klaviyo-API-Key your-private-api-key' 
   --header 'accept: application/json' 
   --header 'content-type: application/json' 
   --header 'revision: 2024-06-15' 
   --data '
{
 "data": {
  "type": "profile",
  "attributes": {
   "email": "sarah.mason@klaviyo-demo.com",
   "phone_number": "+15005550006",
   "first_name": "Sarah",
   "last_name": "Mason",
   "organization": "Example Corporation",
   "title": "Regional Manager",
   "image": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
   "location": {
    "address1": "89 E 42nd St",
    "address2": "1st floor",
    "city": "New York",
    "country": "United States",
    "region": "NY",
    "zip": "10017",
    "timezone": "America/New_York",
    "ip": "127.0.0.1"
   },
   "properties": {
    "newKey": "New Value"
   }
  }
 }
}
'

Leave a comment

Your email address will not be published. Required fields are marked *