Creates a new contact for the website
externalId?string
External identifier for the contact (e.g. from your CRM).
name?string
The contact's name.
email?string
The contact's email address.
Format
emailimage?string
The contact's avatar/image URL.
Format
urimetadata?
Additional custom metadata for the contact.
contactOrganizationId?string
The contact organization ID this contact belongs to.
Format
ulidResponse Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.cossistant.com/v1/v1/contacts" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "01JG000000000000000000000",
"externalId": "user_12345",
"name": "John Doe",
"email": "john.doe@example.com",
"image": "https://example.com/avatar.png",
"metadata": {
"plan": "premium",
"role": "admin"
},
"contactOrganizationId": "01JG000000000000000000000",
"websiteId": "01JG000000000000000000000",
"organizationId": "01JG000000000000000000000",
"userId": "01JG000000000000000000000",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}