Skip to main content

Contact APIs

You will be able to manage your contacts details with provided APIs, such as create, retrieve, update and delete.

API


Get Contacts

Show all contacts

Description:

Get all contacts

GET

/v1/crm/contacts

Request URL
https://bifrost.deskera.com/v1/crm/contacts
Curl
curl -X GET "https://bifrost.deskera.com/v1/crm/contacts" -H "accept: application/json" -H "x-access-token: sampleaccesstoken"
Parameters
NameLocated inDescriptionRequiredSchema
columnsqueryNo[ string ]
contains_emailqueryNoboolean
limitqueryNointeger
pagequeryNointeger
orderByqueryNostring
searchqueryNostring
typequeryNostring
contact_idsqueryNostring
orderqueryNostring
actionqueryNostring
sortqueryNostring
namequeryNostring
emailqueryNostring
phonequeryNostring
typequeryNostring
order_byqueryNostring
Sample Response
{
"data": [
{
"id": 179,
"name": "testing Qa",
"email": "jayhind@getnada.com",
"country_code": "+232",
"label": {
"id": 1,
"name": "No label"
},
"label_id": 1,
"type": "person",
"visibility_type": "private",
"visibility_ids": null,
"persons": [

],
"organization": {
},
"organization_id": 178,
"sub_owner_ids": [

],
"owner_id": 19311,
"tenant_id": 23312,
"created_at": "2020-06-12T07:07:56.232308Z",
"updated_at": "2020-06-12T07:07:56.23231Z",
"created_by": 17826,
"updated_by": 17826,
"owner_details": {
"id": 19311,
"first_name": "Test",
"last_name": "User",
"email": "mytest1@getnada.com",
"contact": "+6585758458",
"role": "User",
"status": "active"
},
"deal_details": [
{
"contactId": 179,
"status": 0,
"status_count": 1
}
],
"sub_owner_details": null,
"custom_field": [
{
"code": "D-0000013",
"label": "drop",
"value": "V2",
"module": "",
"shortName": "drop"
}
],
"c_field": {
"num": "",
"drop": "V2",
"text": ""
},
"view_only": false
}
],
"paginationInfo": {
"page": 1,
"totalRecords": 1
}
}
Responses
CodeDescriptionSchema
200OK[ ContactSaveDto ]
Security
Security SchemaScopes
ApiKeyAuth

Bulk Update

Bulk Update Contacts

Description:

Bulk update contacts

PATCH

/v1/crm/contacts

Request URL
https://bifrost.deskera.com/v1/crm/contacts
Curl
curl -X PATCH "https://bifrost.deskera.com/v1/crm/contacts" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "{ \"ids\": [ 1,2 ], \"label_id\": 0, \"owner_id\": 0, \"visibility_type\": \"team\"}"
Parameters
NameLocated inDescriptionRequiredSchema
ContactbodyBulk Update ContactsYesBulkUpdateContact
Sample Request
{
"ids": [
1,2
],
"label_id": 0,
"owner_id": 0,
"visibility_type": "team"
}
Responses
CodeDescription
201
Security
Security SchemaScopes
ApiKeyAuth

Create Contact

Create Contact

Description:

Add New Contact

POST

/v1/crm/contacts

Request URL
https://bifrost.deskera.com/v1/crm/contacts
Curl
curl -X POST "https://bifrost.deskera.com/v1/crm/contacts" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "{ \"name\": \"Test Contact\", \"email\": \"test@test.com\", \"country_code\": \"+91\", \"phone\": \"9876543212\", \"address\": \"\", \"label_id\": 1, \"visibility_type\": \"team\", \"type\": \"person\", \"person_names\": [ ], \"owner_id\": 17826, \"sub_owner_ids\": [ ], \"custom_field\": [ { \"label\": \"drop\", \"code\": \"D-0000013\", \"module\": null, \"value\": \"V2\" } ]}"
Parameters
NameLocated inDescriptionRequiredSchema
contactbodyCreate ContactYesContactSaveDto
Sample Request
{
"name": "Test Contact",
"email": "test@test.com",
"country_code": "+91",
"phone": "9876543212",
"address": "",
"label_id": 1,
"visibility_type": "team",
"type": "person",
"person_names": [
],
"owner_id": 17826,
"sub_owner_ids": [
],
"custom_field": [
{
"label": "drop",
"code": "D-0000013",
"module": null,
"value": "V2"
}
]
}
Sample Response
{
"id": 12,
"name": "Test Contact",
"country_code": "+232",
"label": {

},
"label_id": 1,
"type": "person",
"visibility_type": "team",
"visibility_ids": null,
"persons": null,
"organization": null,
"organization_id": 0,
"sub_owner_ids": [

],
"owner_id": 17826,
"tenant_id": 23312,
"created_at": "2020-06-18T12:48:44.11855Z",
"updated_at": "2020-06-18T12:48:44.118552Z",
"created_by": 17826,
"updated_by": 17826,
"owner_details": {

},
"deal_details": null,
"sub_owner_details": null,
"custom_field": [
{
"code": "D-0000013",
"label": "drop",
"value": "V2",
"module": "",
"shortName": "drop"
}
]
"view_only": false
}
Responses
CodeDescriptionSchema
200OKCreateResponse
Security
Security SchemaScopes
ApiKeyAuth

Delete Contact by Id

Delete Contact

Description:

Delete Contact

DELETE

/v1/crm/contacts/{id}

Request URL
https://bifrost.deskera.com/v1/crm/contacts/1
Curl
curl -X DELETE "https://bifrost.deskera.com/v1/crm/contacts/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken"
Summary:
Parameters
NameLocated inDescriptionRequiredSchema
idpathContact IDYesinteger
Responses
CodeDescription
200
Security
Security SchemaScopes
ApiKeyAuth

Get Contact by Id

Get Contact By Id

Description:

Get Contact By Id

GET

/v1/crm/contacts/{id}

Request URL
https://bifrost.deskera.com/v1/crm/contacts/1
Curl
curl -X GET "https://bifrost.deskera.com/v1/crm/contacts/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken"
Parameters
NameLocated inDescriptionRequiredSchema
idpathContact IDYesinteger
Sample Response
{
"id": 179,
"name": "testing Qa",
"email": "jayhind@getnada.com",
"country_code": "+232",
"label": {
"id": 1,
"name": "No label"
},
"label_id": 1,
"type": "person",
"visibility_type": "private",
"visibility_ids": null,
"persons": [

],
"organization": {
},
"organization_id": 178,
"sub_owner_ids": [

],
"owner_id": 19311,
"tenant_id": 23312,
"created_at": "2020-06-12T07:07:56.232308Z",
"updated_at": "2020-06-12T07:07:56.23231Z",
"created_by": 17826,
"updated_by": 17826,
"owner_details": {
"id": 19311,
"first_name": "Test",
"last_name": "User",
"email": "mytest1@getnada.com",
"contact": "+6585758458",
"role": "User",
"status": "active"
},
"deal_details": [
{
"contactId": 179,
"status": 0,
"status_count": 1
}
],
"sub_owner_details": null,
"custom_field": [
{
"code": "D-0000013",
"label": "drop",
"value": "V2",
"module": "",
"shortName": "drop"
}
],
"c_field": {
"num": "",
"drop": "V2",
"text": ""
},
"view_only": false
}
Responses
CodeDescriptionSchema
200OKContactSaveDto
Security
Security SchemaScopes
ApiKeyAuth

Update Contact

Update Contact

Description:

Update Contact

PATCH

/v1/crm/contacts/{id}

Request URL
https://bifrost.deskera.com/v1/crm/contacts/1
Curl
curl -X PATCH "https://bifrost.deskera.com/v1/crm/contacts/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d " \"name\": \"Rahul A\" \"email\": \"rahul.kaushik@deskera.org\" \"country_code\": \"+232\" \"phone\": \"\" \"label_id\": 1 \"visibility_type\": \"team\" \"type\": \"person\" \"person_names\": [] \"owner_id\": 21584 \"sub_owner_ids\": [2675] \"custom_field\": [{\"label\": \"TT\", \"code\": \"D-0000005\", \"module\": \"\", \"value\": \"\"}] \"id\": 1}"
Parameters
NameLocated inDescriptionRequiredSchema
idpathContact IDYesinteger
ContactbodyUpdate ContactYesContactSaveDto
Sample Request
{
"name": "Rahul A"
"email": "rahul.kaushik@deskera.org"
"country_code": "+232"
"phone": ""
"label_id": 1
"visibility_type": "team"
"type": "person"
"person_names": []
"owner_id": 21584
"sub_owner_ids": [2675]
"custom_field": [{"label": "TT", "code": "D-0000005", "module": "", "value": ""}]
"id": 1
}
Responses
CodeDescription
201
Security
Security SchemaScopes
ApiKeyAuth

Update Contact

Update Contact

Description:

Update Contact

PUT

/v1/crm/contacts/{id}

Request URL
https://bifrost.deskera.com/v1/crm/contacts/1
Curl
curl -X PUT "https://bifrost.deskera.com/v1/crm/contacts/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "{ \"name\": \"Rahul A\", \"email\": \"rahul.kaushik@deskera.org\", \"country_code\": \"+232\", \"phone\": \"\", \"label_id\": 1, \"visibility_type\": \"team\", \"type\": \"person\", \"person_names\": [ ], \"owner_id\": 21584, \"sub_owner_ids\": [ 2675 ], \"custom_field\": [ { \"label\": \"TT\", \"code\": \"D-0000005\", \"module\": \"\", \"value\": \"\" } ], \"id\": 1}"
Parameters
NameLocated inDescriptionRequiredSchema
idpathContact IDYesinteger
ContactbodyUpdate ContactYesContactSaveDto
Sample Request
{
"name": "Rahul A"
"email": "rahul.kaushik@deskera.org"
"country_code": "+232"
"phone": ""
"label_id": 1
"visibility_type": "team"
"type": "person"
"person_names": []
"owner_id": 21584
"sub_owner_ids": [2675]
"custom_field": [{label: "TT", code: "D-0000005", module: "", value: ""}]
"id": 1
}
Responses
CodeDescription
201
Security
Security SchemaScopes
ApiKeyAuth

Get Contact Labels

Show all Contact Labels

Description:

Get all Contact Labels

GET

/v1/crm/contacts/labels

Request URL
https://bifrost.deskera.com/v1/crm/contacts/labels
Curl
curl -X GET "https://bifrost.deskera.com/v1/crm/contacts/labels" -H "accept: application/json" -H "x-access-token: sampleaccesstoken"
Sample Response
[
{
"id": 1,
"name": "No label",
"color": "",
"icon": "",
"owner_id": 0
},
{
"id": 2,
"name": "Cold lead",
"color": "blue",
"icon": "ac_unit",
"owner_id": 0
},
{
"id": 3,
"name": "Warm lead",
"color": "orange",
"icon": "brightness_low",
"owner_id": 0
},
{
"id": 4,
"name": "Hot lead",
"color": "deep-orange",
"icon": "whatshot",
"owner_id": 0
}
]
Responses
CodeDescriptionSchema
200OK[ ContactLabelResponse ]
Security
Security SchemaScopes
ApiKeyAuth

Create Contact Label

Add Contact Label

Description:

Add Contact Label

POST

/v1/crm/contacts/labels

Request URL
https://bifrost.deskera.com/v1/crm/contacts/labels
Curl
curl -X POST "https://bifrost.deskera.com/v1/crm/contacts/labels" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "{ \"name\": \"Test Label\", \"color\": \"green\", \"icon\": \"fiber_manual_record\"}"
Parameters
NameLocated inDescriptionRequiredSchema
ContactLabelbodyAdd Contact LabelYesContactLabelRequest
Sample Request
{
"name": "Test Label",
"color": "green",
"icon": "fiber_manual_record"
}
Sample Response
{
"id":"14"
}
Responses
CodeDescriptionSchema
201CreatedCreateResponse
Security
Security SchemaScopes
ApiKeyAuth

Delete Contact Label

Delete Contact Label

Description:

Delete Contact Label

DELETE

/v1/crm/contacts/labels/{id}

Request URL
https://bifrost.deskera.com/v1/crm/contacts/labels/1
Curl
curl -X DELETE "https://bifrost.deskera.com/v1/crm/contacts/labels/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken"
Parameters
NameLocated inDescriptionRequiredSchema
idpathContact Label IDYesinteger
Responses
CodeDescription
200
Security
Security SchemaScopes
ApiKeyAuth

Get Contact Label by Id

Show contact Label of specific ID

Description:

get contact Label for specific ID

GET

/v1/crm/contacts/labels/{id}

Request URL
https://bifrost.deskera.com/v1/crm/contacts/labels/1
Curl
curl -X GET "https://bifrost.deskera.com/v1/crm/contacts/labels/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken"
Parameters
NameLocated inDescriptionRequiredSchema
idpathLabel IDYesinteger
Sample Response
{
"id": 1,
"name": "No label",
"color": "",
"icon": "",
"owner_id": 0
}
Responses
CodeDescriptionSchema
200OKContactLabelResponse
Security
Security SchemaScopes
ApiKeyAuth

Update Contact Label

Update Contact Label

Description:

Update Contact Label

PUT

/v1/crm/contacts/labels/{id}

Request URL
https://bifrost.deskera.com/v1/crm/contacts/labels/1
Curl
curl -X PUT "https:/bifrost.deskera.com/v1/crm/contacts/labels/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "{ \"name\": \"Test Label12\", \"color\": \"green\", \"icon\": \"fiber_manual_record\"}"
Parameters
NameLocated inDescriptionRequiredSchema
idpathContact Label IDYesinteger
ContactLabelbodyUpdate Contact LabelYesContactLabelRequest
Sample Request
{
"name": "Test Label",
"color": "green",
"icon": "fiber_manual_record"
}
Responses
CodeDescription
201
Security
Security SchemaScopes
ApiKeyAuth

Get Contacts y Multiple Ids

Get Multiple Contacts By Id

Description:

Get Multiple Contacts By Id

POST

/v1/crm/contacts/multiple

Request URL
https://bifrost.deskera.com/v1/crm/contacts/multiple
Curl
curl -X POST "https://bifrost.deskera.com/v1/crm/contacts/multiple" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "{ \"contact_ids\": [ 1,2 ]}"
Parameters
NameLocated inDescriptionRequiredSchema
ContactIdsbodyContact IdsYesMultipleContactsByIdRequest
Sample Request
{
"contact_ids": [
1,2
]
}
Sample Response
[
{
"id": 179,
"name": "testing Qa",
"email": "jayhind@getnada.com",
"country_code": "+232",
"label": {
"id": 1,
"name": "No label"
},
"label_id": 1,
"type": "person",
"visibility_type": "private",
"visibility_ids": null,
"persons": [

],
"organization": {
},
"organization_id": 178,
"sub_owner_ids": [

],
"owner_id": 19311,
"tenant_id": 23312,
"created_at": "2020-06-12T07:07:56.232308Z",
"updated_at": "2020-06-12T07:07:56.23231Z",
"created_by": 17826,
"updated_by": 17826,
"owner_details": {
"id": 19311,
"first_name": "Test",
"last_name": "User",
"email": "mytest1@getnada.com",
"contact": "+6585758458",
"role": "User",
"status": "active"
},
"deal_details": [
{
"contactId": 179,
"status": 0,
"status_count": 1
}
],
"sub_owner_details": null,
"custom_field": [
{
"code": "D-0000013",
"label": "drop",
"value": "V2",
"module": "",
"shortName": "drop"
}
],
"c_field": {
"num": "",
"drop": "V2",
"text": ""
},
"view_only": false
}
]
Responses
CodeDescriptionSchema
200OK[ ContactSaveDto ]
Security
Security SchemaScopes
ApiKeyAuth

Models


BulkUpdateContact

NameTypeDescriptionRequired
ids[ integer ]No
label_idintegerNo
owner_idintegerNo
visibility_idsstringNo
visibility_typestringprivatepublic

ContactDtoImportResponse

NameTypeDescriptionRequired
contactContactSaveDtoNo
messagestringNo

ContactFilter

NameTypeDescriptionRequired
emailstringNo
namestringNo
order_bystringNo
phonestringNo
sortstringNo
typestringNo

ContactLabelRequest

NameTypeDescriptionRequired
colorstringNo
iconstringNo
namestringNo
owner_idintegerNo

ContactLabelResponse

NameTypeDescriptionRequired
colorstringNo
iconstringNo
idintegerNo
namestringNo
owner_idintegerNo
tenant_idintegerNo

ContactSaveDto

NameTypeDescriptionRequired
addressstringNo
country_codestringNo
custom_field[ CustomField ]No
emailstringNo
idintegerNo
label_idintegerNo
logostringNo
namestringNo
notestringNo
organization_idintegerNo
organization_namestringNo
owner_detailsstringNo
owner_idintegerNo
person_ids[ integer ]No
person_names[ string ]No
phonestringNo
sub_owner_idsstringNo
typestringorganizationperson
visibility_idsstringNo
visibility_typestringprivatepublic

CreateResponse

NameTypeDescriptionRequired
idintegerNo

CustomField

NameTypeDescriptionRequired
codestringNo
labelstringNo
modulestringNo
shortNamestringNo
valuestringNo

MultipleContactsByIdRequest

NameTypeDescriptionRequired
contact_ids[ integer ]No