Create a new contact.
Request
Body
- first_name
string
>= 1 characters (required)
- last_name
string
>= 1 characters
- email
string
>= 1 characters
- phone
string
>= 1 characters
- designation
string
>= 1 characters
- stage_id
integer
(required)
- owner_id
integer
(required)
- description
string
>= 1 characters
- created_by
integer
- city
string
>= 1 characters
- address
string
>= 1 characters
- xing_url
string
>= 1 characters
- linkedin_url
string
>= 1 characters
- tags
string
Allowed Comma-separated values:- [Java,Leadership]
- custom fields:
Array[object]
For Example:
"id": 1,
"value": "textfeild"
Response
201
Body
- id
number
Example: 28
- first_name
string
Example: Anjali
- last_name
string
Example: Kotwani
- slug
string
Example: contact_68ba678fcd2a83f4640c
- full_name
string
Example: Anjali Kotwani
- email
string
Example: anjali@gmail.com
- tags
string
Example: [frontend, developer, javascript]
- phone
string
Example: +917489011449
- profile_picture
string
Example: image.jpg
- designation
string
Example: intern
- address
string
Example: rau bypass
- city
string
Example: indore
- stage
object
Example:
"id": 1,
"label": "lost" - description
string
Example: Experienced software engineer with a focus on frontend development.
- organization
object
Example:
"id": 1 - created_at
string (ISO 8601 date)
Example: 2015-05-15T00:00:00Z
- updated_at
string (ISO 8601 date)
Example: 2015-05-15T00:00:00Z
- created_by
object
Example:
"id": 1,
"email": "Rohan@abc.com",
"first_name": "Rohan",
"last_name": "Sharma",
"full_name": "Rohan Sharma",
"role": "Admin",
"phone": null - updated_by
object
Example:
"id": 1,
"email": "Rohan@abc.com",
"first_name": "Rohan",
"last_name": "Sharma",
"full_name": "Rohan Sharma",
"role": "Admin",
"phone": null - owner
object
Example:
"id": 1,
"email": "Rohan@abc.com",
"first_name": "Rohan",
"last_name": "Sharma",
"full_name": "Rohan Sharma",
"role": "Admin",
"phone": null - socials
object
Example:
"linkedin": "anjalilinkedin.com",
"xing": "anjali.com" - custom fields:
object
Example:
"id": 1,
"field_name": "textfeild",
"field_type": "string",
"value": "anjali"
401
Body
- unauthorised
400
Body
- Unprocessable Entity
Response Example
{
"id": 28,
"first_name": "Anjali",
"last_name": "Kotwani",
"slug": "contact_68ba678fcd2a83f4640c",
"full_name": "Anjali Kotwani",
"email": "anjali@gmail.com",
"tags": null,
"phone": "+917489011449",
"profile_picture": "",
"designation": "",
"address": "",
"city": "",
"stage": {
"id": 1,
"label": "Prospect"
},
"description": "",
"organization": null,
"created_at": "2024-08-10T17:57:52.000Z",
"updated_at": "2024-08-11T11:49:27.000Z",
"created_by": {
"id": 1,
"email": "Rohan@abc.com",
"first_name": "Rohan",
"last_name": "Sharma",
"full_name": "Rohan Sharma",
"role": "Admin",
"phone": null
},
"updated_by": {
"id": 1,
"email": "Rohan@abc.com",
"first_name": "Rohan",
"last_name": "Sharma",
"full_name": "Rohan Sharma",
"role": "Admin",
"phone": null
},
"owner": {
"id": 1,
"email": "Rohan@abc.com",
"first_name": "Rohan",
"last_name": "Sharma",
"full_name": "Rohan Sharma",
"role": "Admin",
"phone": null
},
"socials": {
"linkedin": "",
"xing": ""
},
"custom_fields": [
{
"id": 7,
"field_name": "Drop",
"field_type": "dropdown",
"value": ""
},
{
"id": 8,
"field_name": "Multi",
"field_type": "multiselect",
"value": ""
},
{
"id": 2,
"field_name": "Percentage",
"field_type": "percentage",
"value": "0"
}
]
}