Create a contact
contact.create(ContactCreateParams**kwargs) -> ContactCreateResponse
POST/v1/contacts
Creates a new contact record.
After creation, Lightfield automatically enriches the contact in the background.
Supports idempotency via the Idempotency-Key header.
Required scope: contacts:create
Rate limit category: Write
Parameters
Returns
Create a contact
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
contact_create_response = client.contact.create(
fields={
"foo": "string"
},
)
print(contact_create_response.id){
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
}
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
}
}