Create a new person
Use this method to create a new person.
Authorizations:
Scopes:
Request rate limit:
Request Body schema:
address | string Person's address, 256 characters max. | ||||||||||||
birthDate | string Person's date of birth, format | ||||||||||||
city | string Person's city, 50 characters max. | ||||||||||||
computedAttributes | object Person's computed attributes grouped by type. | ||||||||||||
| |||||||||||||
contactInformation | object List of phones, emails and other information how a person can be contacted. | ||||||||||||
| |||||||||||||
country | string Person's country, 50 characters max. | ||||||||||||
customAttributes | object List of custom attributes for the person, 4096 characters max per value. | ||||||||||||
| |||||||||||||
externalId | string Unique ID for a person from your or another external system, 256 characters max. | ||||||||||||
firstName | string Person's first name, 255 characters max. | ||||||||||||
gender | string Enum: "MALE" "FEMALE" Person's gender. | ||||||||||||
integrations | object Integrations. | ||||||||||||
| |||||||||||||
lastName | string Person's last name, 255 characters max. | ||||||||||||
middleName | string Person's middle name, 50 characters max. | ||||||||||||
preferredLanguage | string Person's preferred language. Must be in two letter ISO (xx) or language-region BCP-47 (xx-YY) format. | ||||||||||||
profilePicture | string URL for the person's profile picture, 2083 characters max. | ||||||||||||
tags | Array of strings List of tags that this person has. | ||||||||||||
type | string Enum: "CUSTOMER" "LEAD" Person's type, default type is CUSTOMER. |
Responses
successful response
Bad Request
Unauthorized
Forbidden
Too Many Requests
Error responses
Internal Server Error
Error responses
Request samples
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
{- "firstName": "Jane",
- "lastName": "Smith",
- "customAttributes": {
- "Contract Expiry": "2018-06-01",
- "Company": "Acme",
- "ShoppingCartList": [
- {
- "productName": "Sneakers",
- "productPrice": 25.33,
- "productCategory": "Sport Sneakers",
- "productImage": "/image1.png"
}, - {
- "productName": "T-Shirt",
- "productPrice": 9.99,
- "productCategory": "Casual",
- "productImage": "/image2.png"
}
]
}, - "contactInformation": {
- "email": [
- {
- "address": "janewilliams@acme.com"
}
]
}
}
Response samples
- default
- 400
- 401
- 403
- 429
- 4XX
- 500
- 5XX
{- "createdAt": "2018-03-29T13:46:31",
- "modifiedAt": "2018-03-30T11:25:13",
- "id": 1,
- "externalId": "3",
- "firstName": "Jane",
- "lastName": "Smith",
- "address": "67 Farringdon Road",
- "city": "London",
- "country": "United Kingdom",
- "gender": "FEMALE",
- "birthDate": "1966-01-15",
- "middleName": "Janie",
- "preferredLanguage": "en-gb",
- "origin": "API",
- "modifiedFrom": "API",
- "tags": [
- "VIP Customers",
- "New Customers"
], - "customAttributes": {
- "Contract Expiry": "2018-06-01",
- "Company": "Acme",
- "ShoppingCartList": [
- {
- "productName": "Sneakers",
- "productPrice": 25.33,
- "productCategory": "Sport Sneakers",
- "productImage": "/image1.png"
}, - {
- "productName": "T-Shirt",
- "productPrice": 9.99,
- "productCategory": "Casual",
- "productImage": "/image2.png"
}
]
}, - "contactInformation": {
- "phone": [
- {
- "number": "41793026727"
}
], - "email": [
- {
- "address": "janewilliams@acme.com"
}
], - "push": [
- {
- "applicationId": "FDCC8516470A3AE97FB8AC218D5D0D3D",
- "registrationId": "c5db0c47-465c-4e1c-abf8-7cedc275dd19",
- "additionalData": {
- "birthdate": "1988-07-31",
- "email": "test@test.com",
- "firstName": "Jane",
- "gender": "F",
- "lastName": "Smith",
- "middleName": "Janie"
}, - "systemData": {
- "cloudType": "GCM",
- "registrationEnabled": "true",
- "sdkName": "MobileMessaging SDK",
- "os": "Android"
}
}
], - "facebook": [
- {
- "applicationId": "370329180020364",
- "userId": "2094832040560427",
- "systemData": {
- "gender": "female",
- "lastName": "Smith",
- "firstName": "Jane"
}
}
], - "line": [
- {
- "applicationId": "1644264921",
- "userId": "U045147f1ad961bfe996b72bbf417f3c9",
- "systemData": {
- "displayName": "Jane Smith"
}
}
], - "instagram": [
- {
- "applicationId": "17841446795352028",
- "userId": "12461436693342628",
- "systemData": {
- "displayName": "jane.smith"
}
}
], - "twitter": [
- {
- "applicationId": "1148203323283877",
- "userId": "370329180020364",
- "systemData": {
- "displayName": "Jane Smith"
}
}
], - "appleBusinessChat": [
- {
- "applicationId": "387465931",
- "userId": "387465931",
- "systemData": {
- "displayName": "Jane Smith"
}
}
]
}
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See