Skip to main content

Activity APIs

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

API​


Get Activities​

Show all activities.

Description:​
  • Allows you to retrieve a list of all activities.

GET​

/v1/crm/activities​

Request URL​
https://bifrost.deskera.com/v1/crm/activities?page=1&pageSize=10&sortBy=updated_at&sortDir=DESC
Curl​
curl -X GET "https://bifrost.deskera.com/v1/crm/activities?page=1&pageSize=10&sortBy=updated_at&sortDir=DESC" -H "accept: application/json" -H "x-access-token: sampleaccesstoken"
Parameters​
NameLocated inDescriptionRequiredSchema
pagequeryNointeger
pageSizequeryNointeger
sortByqueryNostring
sortDirqueryNostring
queryqueryquery=name=act,contact_id=179642,organization_id=196518,deal_id=1227,assignee_id=46944,date>1628121600,activityType=call,is_status=true,source=WEB,source_id=1Nostring
Sample Response​
{
"data": [
{
"id": 1,
"name": "Act 3",
"activity_type": "call",
"duration": "1h 21m",
"notes": "Test Note<br>",
"visibility_type": "team",
"is_availability": null,
"is_send_invitation": true,
"is_send_contacts_invitation": true,
"assigned_to": "",
"assignee_ids": [
46944
],
"assignee_details": [
{
"id": 46944,
"first_name": "C1",
"last_name": "C1",
"email": "crm-test@getnada.com",
"country_code": "",
"contact": "",
"profile_url": ""
}
],
"contact_ids": [
179642,
179640
],
"contact_details": [
{
"id": 179642,
"name": "T1 temp contact person",
"email": "",
"phone": "",
"country_code": "+232",
"address": "",
"type": "person",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
},
{
"id": 179640,
"name": "T0 temp contact person",
"email": "",
"phone": "",
"country_code": "+232",
"address": "",
"type": "person",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
}
],
"organization_ids": [
196518,
196517
],
"organization_details": [
{
"id": 196518,
"name": "A2",
"email": "",
"phone": "",
"country_code": "",
"address": "India ",
"type": "organization",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
},
{
"id": 196517,
"name": "A1",
"email": "",
"phone": "",
"country_code": "",
"address": "India ",
"type": "organization",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
}
],
"linked_to": 1227,
"deal_details": {
"id": 1227,
"name": "AA",
"pipeline_id": 13774,
"stage_id": 95977,
"stage": {
"pipeline_id": 0,
"order": 1,
"name": "Appointment Scheduled",
"deal_probability": 20,
"rotting_days": 30,
"help_text": "Appointment Scheduled",
"system_generated": false,
"won_lost_status": "open"
},
"contact_id": 146987,
"organization_id": 0,
"mobile": "+1(239) 595-0413",
"email": "ct-1@getnada.com",
"currency_code": "USD",
"amount": "0",
"closing_date": "2021-04-22T00:00:00Z",
"status": 0,
"activity_id": 0,
"order": 0,
"stage_name": "",
"deal_probability": 0,
"rotting_days": 0,
"owner_id": 46944,
"is_deleted": false,
"contact_info": {
"id": 146987,
"name": "CT-1",
"email": "ct-1@getnada.com",
"phone": "+1(239) 595-0413",
"country_code": "",
"address": "",
"type": "person",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
},
"organization_info": {
"id": 0,
"name": "",
"email": "",
"phone": "",
"country_code": "",
"address": "",
"type": "",
"organization_id": 0,
"label_id": 0,
"label": {},
"logo": ""
},
"owner_info": {
"id": 46944,
"first_name": "C1",
"last_name": "C1",
"email": "crm-test@getnada.com",
"country_code": "",
"contact": "",
"profile_url": ""
},
"reason": "",
"custom_field": [
{
"code": "D-0000008",
"label": "CF01",
"value": "",
"module": "",
"shortName": "CF01"
}
],
"created_at": "2021-04-22T05:16:05.857311Z"
},
"owner_id": 46944,
"owner_details": {
"id": 46944,
"first_name": "C1",
"last_name": "C1",
"email": "crm-test@getnada.com",
"country_code": "",
"contact": "",
"profile_url": ""
},
"tenant_id": 64797,
"is_status": true,
"created_at": "2021-08-05T17:20:58.875416+05:30",
"updated_at": "2021-08-05T17:20:58.875416+05:30",
"created_by": 46944,
"updated_by": 46944,
"is_deleted": false,
"EmailSent": "NEW",
"consumer_id": "",
"scheduled_status": "",
"batch_id": "",
"cron_status": "NEW",
"notification_error": "",
"source": "WEB",
"source_id": "1",
"user_timezone": "Asia/Singapore",
"start": "2021-08-05T12:37:03+05:30",
"end": "2021-08-05T13:58:03+05:30"
}
],
"paginationInfo": {
"page": 1,
"totalRecords": 3,
"isZeroState": false
}
}
Responses​
CodeDescriptionSchema
200OKActivityResponse
Security​
Security SchemaScopes
ApiKeyAuth

Create Activity​

Create activity.

Description:​
  • Allows you to add new activity.

POST​

/v1/crm/activities​

Request URL​
https://bifrost.deskera.com/v1/crm/activities
Curl​
curl -X POST "https://bifrost.deskera.com/v1/crm/activities" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "{\"name\":\"Act-001\",\"activity_type\":\"call\",\"start\":\"2021-08-05T13:15:49Z\",\"end\":\"2021-08-05T14:15:49Z\",\"notes\":\"VGVzdCBOb3RlPGJyPg==\",\"is_send_invitation\":true,\"is_send_contacts_invitation\":true,\"user_timezone\":\"Asia/Singapore\",\"contact_ids\":[179642,179640],\"organization_ids\":[196517,196518],\"assignee_ids\":[46944],\"linked_to\":1227,\"is_status\":false}"
Parameters​
NameLocated inDescriptionRequiredSchema
activitybodyCreate activityYesActivity
Sample Request​
{
"name": "Act-001",
"activity_type": "call",
"start": "2021-08-05T13:15:49Z",
"end": "2021-08-05T14:15:49Z",
"notes": "VGVzdCBOb3RlPGJyPg==",
"is_send_invitation": true,
"is_send_contacts_invitation": true,
"user_timezone": "Asia/Singapore",
"contact_ids": [
179642,
179640
],
"organization_ids": [
196517,
196518
],
"assignee_ids": [
46944
],
"linked_to": 1227,
"is_status": false
}
Sample Response​
{
"id":1
}
Responses​
CodeDescriptionSchema
201OKobject
Security​
Security SchemaScopes
ApiKeyAuth

Get Activity by Id​

Get Activity by Id.

Description:​
  • Allows you to retrieve activity detail by it's id.

GET​

/v1/crm/activities/{id}​

Request URL​
https://bifrost.deskera.com/v1/crm/activities/1
Curl​
curl -X GET "https://bifrost.deskera.com/v1/crm/activities/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken"
Parameters​
NameLocated inDescriptionRequiredSchema
idpathActivity IDYesinteger
Sample Response​
{
"id": 81,
"name": "Act 3",
"activity_type": "call",
"duration": "1h 21m",
"notes": "Test Note<br>",
"visibility_type": "team",
"is_availability": null,
"is_send_invitation": true,
"is_send_contacts_invitation": true,
"assigned_to": "",
"assignee_ids": [
46944
],
"assignee_details": [
{
"id": 46944,
"first_name": "C1",
"last_name": "C1",
"email": "crm-test@getnada.com",
"country_code": "",
"contact": "",
"profile_url": ""
}
],
"contact_ids": [
179642,
179640
],
"contact_details": [
{
"id": 179642,
"name": "T1 temp contact person",
"email": "",
"phone": "",
"country_code": "+232",
"address": "",
"type": "person",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
},
{
"id": 179640,
"name": "T0 temp contact person",
"email": "",
"phone": "",
"country_code": "+232",
"address": "",
"type": "person",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
}
],
"organization_ids": [
196518,
196517
],
"organization_details": [
{
"id": 196518,
"name": "A2",
"email": "",
"phone": "",
"country_code": "",
"address": "India ",
"type": "organization",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
},
{
"id": 196517,
"name": "A1",
"email": "",
"phone": "",
"country_code": "",
"address": "India ",
"type": "organization",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
}
],
"linked_to": 1227,
"deal_details": {
"id": 1227,
"name": "AA",
"pipeline_id": 13774,
"stage_id": 95977,
"stage": {
"pipeline_id": 0,
"order": 1,
"name": "Appointment Scheduled",
"deal_probability": 20,
"rotting_days": 30,
"help_text": "Appointment Scheduled",
"system_generated": false,
"won_lost_status": "open"
},
"contact_id": 146987,
"organization_id": 0,
"mobile": "+1(239) 595-0413",
"email": "ct-1@getnada.com",
"currency_code": "USD",
"amount": "0",
"closing_date": "2021-04-22T00:00:00Z",
"status": 0,
"activity_id": 0,
"order": 0,
"stage_name": "",
"deal_probability": 0,
"rotting_days": 0,
"owner_id": 46944,
"is_deleted": false,
"contact_info": {
"id": 146987,
"name": "CT-1",
"email": "ct-1@getnada.com",
"phone": "+1(239) 595-0413",
"country_code": "",
"address": "",
"type": "person",
"organization_id": 0,
"label_id": 0,
"label": {
"name": "No label"
},
"logo": ""
},
"organization_info": {
"id": 0,
"name": "",
"email": "",
"phone": "",
"country_code": "",
"address": "",
"type": "",
"organization_id": 0,
"label_id": 0,
"label": {},
"logo": ""
},
"owner_info": {
"id": 46944,
"first_name": "C1",
"last_name": "C1",
"email": "crm-test@getnada.com",
"country_code": "",
"contact": "",
"profile_url": ""
},
"reason": "",
"custom_field": [
{
"code": "D-0000008",
"label": "CF01",
"value": "",
"module": "",
"shortName": "CF01"
}
],
"created_at": "2021-04-22T05:16:05.857311Z"
},
"owner_id": 46944,
"owner_details": {
"id": 46944,
"first_name": "C1",
"last_name": "C1",
"email": "crm-test@getnada.com",
"country_code": "",
"contact": "",
"profile_url": ""
},
"tenant_id": 64797,
"is_status": true,
"created_at": "2021-08-05T17:20:58.875416+05:30",
"updated_at": "2021-08-05T17:20:58.875416+05:30",
"created_by": 46944,
"updated_by": 46944,
"is_deleted": false,
"EmailSent": "NEW",
"consumer_id": "",
"scheduled_status": "",
"batch_id": "",
"cron_status": "NEW",
"notification_error": "",
"source": "WEB",
"source_id": "1",
"user_timezone": "Asia/Singapore",
"start": "2021-08-05T12:37:03+05:30",
"end": "2021-08-05T13:58:03+05:30"
}
Responses​
CodeDescriptionSchema
200OKActivity
Security​
Security SchemaScopes
ApiKeyAuth

Update Activity by Id​

Update Activity.

Description:​
  • Allows you to update an existing activity record.

PUT​

/v1/crm/activities/{id}​

Request URL​
https://bifrost.deskera.com/v1/crm/activities/1
Curl​
curl -X PUT "https://bifrost.deskera.com/v1/crm/activities/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "{\"name\":\"Act-001\",\"activity_type\":\"call\",\"start\":\"2021-08-05T13:15:49Z\",\"end\":\"2021-08-05T14:15:49Z\",\"assigned\":[],\"attendee\":[],\"availability\":null,\"notes\":\"VGVzdCBOb3RlPGJyPg==\",\"is_send_invitation\":true,\"is_send_contacts_invitation\":true,\"user_timezone\":\"Asia/Singapore\",\"contact_ids\":[179642,179640],\"organization_ids\":[196517,196518],\"assignee_ids\":[46944],\"linked_to\":1227,\"is_status\":false}"
Parameters​
NameLocated inDescriptionRequiredSchema
idpathActivity IDYesinteger
ActivitybodyUpdate ActivityYesActivity
Sample Request​
{
"name": "Act-001",
"activity_type": "call",
"start": "2021-08-05T13:15:49Z",
"end": "2021-08-05T14:15:49Z",
"notes": "VGVzdCBOb3RlPGJyPg==",
"is_send_invitation": true,
"is_send_contacts_invitation": true,
"user_timezone": "Asia/Singapore",
"contact_ids": [
179642,
179640
],
"organization_ids": [
196517,
196518
],
"assignee_ids": [
46944
],
"linked_to": 1227,
"is_status": false
}
Sample Response​
{
"id":1
}
Responses​
CodeDescriptionSchema
200OKobject
Security​
Security SchemaScopes
ApiKeyAuth

Delete Activity by Id​

Delete Activity.

Description:​
  • Allows you to delete a specific activity.

DELETE​

/v1/crm/activities/{id}​

Request URL​
https://bifrost.deskera.com/v1/crm/activities/1
Curl​
curl -X DELETE "https://bifrost.deskera.com/v1/crm/activities/1" -H "accept: application/json" -H "x-access-token: sampleaccesstoken"
Parameters​
NameLocated inDescriptionRequiredSchema
idpathActivity IDYesinteger
Responses​
CodeDescriptionSchema
204OK
Security​
Security SchemaScopes
ApiKeyAuth

Bulk Update​

Update multiple activity.

Description:​
  • Allows you to update multiple activity.

PATCH​

/v1/crm/activities/bulkUpdate​

Request URL​
https://bifrost.deskera.com/v1/crm/activities/bulkUpdate
Curl​
curl -X PATCH "https://bifrost.deskera.com/v1/crm/activities/bulkUpdate" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "{ \"ids\": [246, 107],\"visibility_type\": \"private\"}"
Parameters​
NameLocated inDescriptionRequiredSchema
activitybodyUpdate multiple activityYesMultiActivityUpdate
Sample Request​
{
"ids": [246, 107],
"visibility_type: "private"
}
Responses​
CodeDescriptionSchema
200OK
Security​
Security SchemaScopes
ApiKeyAuth

Bulk Delete​

Delete multiple activity.

Description:​
  • Allows you to delete large amount of activity record.

POST​

/v1/crm/activities/bulkDelete​

Request URL​
https://bifrost.deskera.com/v1/crm/activities/bulkDelete
Curl​
curl -X POST "https://bifrost.deskera.com/v1/crm/activities/bulkDelete" -H "accept: application/json" -H "x-access-token: sampleaccesstoken" -H "Content-Type: application/json" -d "[ 1,2]"
Parameters​
NameLocated inDescriptionRequiredSchema
activitybodyDelete multiple activityYes[ integer ]
Responses​
CodeDescriptionSchema
204OK
Security​
Security SchemaScopes
ApiKeyAuth

Models​


ActivityResponse​

NameTypeDescriptionRequired
dataActivityNo
paginationInfoobjectNo

Activity​

NameTypeDescriptionRequired
idintegerNo
namestringNo
activity_typestringcallmeeting
durationintegerNo
notesstringIn base64 formatNo
visibility_typestringprivatepublic
is_availabilitybooleanNo
is_send_invitationbooleanNo
is_send_contacts_invitationbooleanNo
assigned_tostringNo
assignee_ids[integer]No
assignee_details[UserShortInfo]No
contact_ids[integer]No
contact_details[ContactShortInfo]No
organization_ids[integer]No
organization_details[ContactShortInfo]No
linked_tointegerNo
deal_detailsUserShortInfoNo
owner_idintegerNo
owner_detailsUserShortInfoNo
tenant_idintegerNo
is_statusbooleanNo
created_atstringNo
updated_atstringNo
created_byintegerNo
updated_byintegerNo
is_deletedbooleanNo
email_sentstringNo
consumer_idstringNo
scheduled_statusstringNo
batch_idstringNo
cron_statusstringNo
notification_errorstringNo
sourcestringNo
source_idstringNo
user_timezonestringe.g. Asia/SingaporeNo
startstringIn UTCNo
endstringIn UTCNo

MultiActivityUpdate​

NameTypeDescriptionRequired
ids[ integer ]No
visibility_typestringNo
is_statusbooleanNo