Full API documentation for your API
This documentation aims to provide all the information you need to work with our API.
To authenticate requests, include an Authorization header with the value "Bearer { BEARER_TOKEN }".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
APIs for managing customer service
The limit of the list for pagination.
The page of the list.
The search query.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs/names?limit=10&page=1&q=John" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of customer service names",
"data": {
"current_page": 1,
"data": [],
"first_page_url": "https://lead-service.devkilc.lcpare.com/api/cs/names?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://lead-service.devkilc.lcpare.com/api/cs/names?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://lead-service.devkilc.lcpare.com/api/cs/names?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "https://lead-service.devkilc.lcpare.com/api/cs/names",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0
},
"error": ""
}
The page of the list.
The limit of the list.
The search query.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs?page=1&limit=10&q=John" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Data not found",
"data": [],
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/cs" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"percent\": 0,
\"officer_id\": 14,
\"cs_channel\": [
{
\"cs_channel_id\": 16,
\"is_active\": true,
\"requirement\": []
}
]
}"
The ID of the customer service.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Customer service detail",
"data": {
"id": 1,
"id_officer": 47,
"counter": null,
"percent": 30,
"name": "zunililaifi",
"username": "Celsy",
"is_active": true,
"channel": [
{
"id": 2,
"channel_id": "Qontak",
"name": "Qontak",
"description": "{\"qontak_staff_id\" : \"132321231\"}",
"is_active": false,
"requirement": "{\"qontak_staff_id\": \"e363f52d-7f2e-4d85-bddc-6327a1a24d19\"}"
},
{
"id": 1,
"channel_id": "Sleekflow",
"name": "Sleekflow",
"description": "{\"sleekflow_staff_id\":\"3123212321\"}",
"is_active": false,
"requirement": "{\"sleekflow_staff_id\": \"f5ea904c-772f-4a6d-96ce-49394ca88200\"}"
}
]
},
"error": ""
}
The ID of the customer service.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/cs/1" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"percent\": 0,
\"cs_channel\": [
{
\"cs_channel_id\": 14,
\"is_active\": false,
\"requirement\": []
}
]
}"
The ID of the customer service.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/cs/1/set-active" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs/team-group/list" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of customer service with team, group",
"data": [
{
"id": 22,
"id_officer": 363,
"counter": null,
"percent": 0,
"name": "Anisa Solikhawati",
"username": "Celine",
"is_active": true,
"team_name": "HQ CS",
"team_id": 15,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 2,
"id_officer": 247,
"counter": null,
"percent": 100,
"name": "Irfan Mohamad Sukri",
"username": "Evan",
"is_active": true,
"team_name": "Retired CS",
"team_id": 13,
"group_name": "Retired Group CS",
"group_id": 29
},
{
"id": 12,
"id_officer": 246,
"counter": null,
"percent": 100,
"name": "Retha Febrianasari",
"username": "Ara",
"is_active": true,
"team_name": "HQ CS",
"team_id": 15,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 14,
"id_officer": 1,
"counter": null,
"percent": 10,
"name": "KILCIT Team",
"username": "IT IT",
"is_active": true,
"team_name": "Retired CS",
"team_id": 13,
"group_name": "Retired Group CS",
"group_id": 29
},
{
"id": 17,
"id_officer": 254,
"counter": null,
"percent": 100,
"name": "Nashiha Afidah",
"username": "Ryas",
"is_active": true,
"team_name": "Branch CS 2",
"team_id": 17,
"group_name": "Branch Group 2",
"group_id": 35
},
{
"id": 15,
"id_officer": 256,
"counter": null,
"percent": 100,
"name": "Tiara Selling",
"username": "Kenzie",
"is_active": true,
"team_name": "HQ CS",
"team_id": 15,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 13,
"id_officer": 249,
"counter": null,
"percent": 100,
"name": "Fitria Rachmawati Oemardi",
"username": "Yuki",
"is_active": true,
"team_name": "Branch CS 1",
"team_id": 16,
"group_name": "Branch Group 1",
"group_id": 33
},
{
"id": 11,
"id_officer": 48,
"counter": null,
"percent": 100,
"name": "Devina Dyah",
"username": "Zea",
"is_active": true,
"team_name": "Branch SPV",
"team_id": 19,
"group_name": "Branch Group 2",
"group_id": 35
},
{
"id": 9,
"id_officer": 66,
"counter": null,
"percent": 100,
"name": "Ms. Rossy Selling",
"username": "Nada",
"is_active": true,
"team_name": "HQ SPV",
"team_id": 18,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 7,
"id_officer": 248,
"counter": null,
"percent": 100,
"name": "eko wicaksono",
"username": "Kia",
"is_active": true,
"team_name": "Branch CS 1",
"team_id": 16,
"group_name": "Branch Group 1",
"group_id": 33
},
{
"id": 4,
"id_officer": 46,
"counter": null,
"percent": 100,
"name": "ajaynursyamsu2211",
"username": "Max",
"is_active": true,
"team_name": "HQ CS",
"team_id": 15,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 3,
"id_officer": 61,
"counter": null,
"percent": 100,
"name": "dewintan",
"username": "Fita",
"is_active": true,
"team_name": "Branch CS 1",
"team_id": 16,
"group_name": "Branch Group 1",
"group_id": 33
},
{
"id": 8,
"id_officer": 44,
"counter": null,
"percent": 20,
"name": "jehanadani",
"username": "Lucy",
"is_active": true,
"team_name": "Frontline",
"team_id": 12,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 1,
"id_officer": 47,
"counter": null,
"percent": 30,
"name": "zunililaifi",
"username": "Celsy",
"is_active": true,
"team_name": "Frontline",
"team_id": 12,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 10,
"id_officer": 250,
"counter": null,
"percent": 100,
"name": "Ismi Sofiatul Q.",
"username": "Hana",
"is_active": true,
"team_name": "Branch CS 2",
"team_id": 17,
"group_name": "Branch Group 2",
"group_id": 35
},
{
"id": 18,
"id_officer": 328,
"counter": null,
"percent": 0,
"name": "Thomas Aldi Setiawan",
"username": "Vyn",
"is_active": true,
"team_name": "HQ CS",
"team_id": 15,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 19,
"id_officer": 327,
"counter": null,
"percent": 0,
"name": "Evryta P.",
"username": "Gea",
"is_active": true,
"team_name": "HQ CS",
"team_id": 15,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 20,
"id_officer": 345,
"counter": null,
"percent": 0,
"name": "Ana Ismatul Mubarokah",
"username": "CS Tia",
"is_active": true,
"team_name": "HQ CS",
"team_id": 15,
"group_name": "HQ Group",
"group_id": 32
},
{
"id": 21,
"id_officer": 348,
"counter": null,
"percent": 0,
"name": "Nur Rafida",
"username": "Oliv",
"is_active": true,
"team_name": "Branch CS 2",
"team_id": 17,
"group_name": "Branch Group 2",
"group_id": 35
}
],
"error": ""
}
APIs for managing customer service channel
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs-channel/active" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of active customer service channel",
"data": [
{
"id": 10,
"channel_id": "haloai",
"name": "Halo AI",
"description": "{\"haloai_staff_id\" : \"132321231\"}",
"is_active": true,
"created_at": "2026-01-19T08:03:03.000000Z",
"updated_at": "2026-01-19T08:03:03.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
{
"id": 9,
"channel_id": "onesender",
"name": "One Sender",
"description": "{\"onesender_staff_id\":\"3123212321\", \"unique_id\":\"wa5799\"}",
"is_active": true,
"created_at": "2025-04-17T03:47:19.000000Z",
"updated_at": "2025-04-17T08:12:32.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
{
"id": 2,
"channel_id": "Qontak",
"name": "Qontak",
"description": "{\"qontak_staff_id\" : \"132321231\"}",
"is_active": true,
"created_at": "2024-09-12T09:38:15.000000Z",
"updated_at": "2026-04-03T02:59:48.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
}
],
"error": ""
}
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs-channel" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of customer service channel",
"data": [
{
"id": 10,
"channel_id": "haloai",
"name": "Halo AI",
"description": "{\"haloai_staff_id\" : \"132321231\"}",
"is_active": true,
"created_at": "2026-01-19T08:03:03.000000Z",
"updated_at": "2026-01-19T08:03:03.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
{
"id": 9,
"channel_id": "onesender",
"name": "One Sender",
"description": "{\"onesender_staff_id\":\"3123212321\", \"unique_id\":\"wa5799\"}",
"is_active": true,
"created_at": "2025-04-17T03:47:19.000000Z",
"updated_at": "2025-04-17T08:12:32.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
{
"id": 4,
"channel_id": "Pancake",
"name": "Pancake",
"description": "{\"token\": \"dsa\"}",
"is_active": false,
"created_at": "2024-09-12T09:42:27.000000Z",
"updated_at": "2025-04-17T03:53:55.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
{
"id": 2,
"channel_id": "Qontak",
"name": "Qontak",
"description": "{\"qontak_staff_id\" : \"132321231\"}",
"is_active": true,
"created_at": "2024-09-12T09:38:15.000000Z",
"updated_at": "2026-04-03T02:59:48.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
{
"id": 1,
"channel_id": "Sleekflow",
"name": "Sleekflow",
"description": "{\"sleekflow_staff_id\":\"3123212321\"}",
"is_active": false,
"created_at": "2024-08-30T14:22:52.000000Z",
"updated_at": "2025-04-17T03:53:49.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
}
],
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/cs-channel" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Voluptatem ut dolorem ea ducimus et et est.\"
}"
The ID of the cs channel.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs-channel/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Customer service channel detail",
"data": {
"id": 1,
"channel_id": "Sleekflow",
"name": "Sleekflow",
"description": "{\"sleekflow_staff_id\":\"3123212321\"}",
"is_active": false,
"created_at": "2024-08-30T14:22:52.000000Z",
"updated_at": "2025-04-17T03:53:49.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
"error": ""
}
The ID of the cs channel.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/cs-channel/1" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Pariatur consequatur velit ipsa illum dolor.\"
}"
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/cs-channel/1/set-active" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" APIs for managing group
The page of the list.
The limit of the list.
The search query.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs-group?page=1&limit=10&q=laboriosam" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of groups",
"data": {
"current_page": 1,
"data": [],
"first_page_url": "https://lead-service.devkilc.lcpare.com/api/cs-group?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://lead-service.devkilc.lcpare.com/api/cs-group?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://lead-service.devkilc.lcpare.com/api/cs-group?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "https://lead-service.devkilc.lcpare.com/api/cs-group",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0
},
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/cs-group" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"asperiores\",
\"branches\": [
{
\"is_active\": false
}
],
\"teams\": [
{
\"is_active\": true
}
]
}"
The ID of the cs group.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs-group/35" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Group detail",
"data": {
"id": 35,
"name": "Branch Group 2",
"created_at": "2025-07-16T01:54:07.000000Z",
"updated_at": "2025-07-16T01:54:09.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"is_active": true,
"cs_teams": [
{
"id": 17,
"name": "Branch CS 2",
"created_at": "2025-07-16T01:47:32.000000Z",
"updated_at": "2025-07-16T01:47:32.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"is_active": null,
"pivot": {
"cs_group_id": 35,
"cs_team_id": 17,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-07-16T01:54:07.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"id": 19,
"name": "Branch SPV",
"created_at": "2025-07-16T01:48:15.000000Z",
"updated_at": "2025-07-16T01:48:15.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"is_active": null,
"pivot": {
"cs_group_id": 35,
"cs_team_id": 19,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-09-05T01:03:39.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
}
],
"branches": [
{
"branch_id": 1,
"branch_uid": "de3c25fd-c066-41d1-8360-7c641655b3bd",
"code": "PARE",
"name_branch": "PARE - JATIM",
"img_url": "branches/WJA3JUdF7iNUxNUtPwgzywkVTozDjZ39JAsxmrDT.jpg",
"status": 1,
"created_at": "2022-11-11T09:18:15.000000Z",
"updated_at": "2024-01-11T08:29:08.000000Z",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"pivot": {
"cs_group_id": 35,
"branch_id": 1,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2026-05-31T21:09:49.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 2,
"branch_uid": "7c62d5a9-ce71-406a-bf49-22ce4ea1fd06",
"code": "BOGOR",
"name_branch": "BOGOR - JABAR",
"img_url": "branches/MNKgTo0SOxy2L4mVXbub4gcoswbbNOa1VMdZIAGd.jpg",
"status": 1,
"created_at": "2022-11-12T01:29:59.000000Z",
"updated_at": "2024-01-11T08:35:07.000000Z",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"pivot": {
"cs_group_id": 35,
"branch_id": 2,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2026-05-31T21:09:49.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 4,
"branch_uid": "b6572f91-5bb8-4c23-9268-31d2ccd8b5f6",
"code": "JOGJA",
"name_branch": "JOGJA - JOGJA",
"img_url": "branches/Z2tIgLBKCm2zWALmItaeZyyTwdOxUVrIqUYQdLSs.jpg",
"status": 1,
"created_at": "2023-05-15T14:18:32.000000Z",
"updated_at": "2024-01-11T09:01:28.000000Z",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"pivot": {
"cs_group_id": 35,
"branch_id": 4,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-07-16T01:54:07.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 5,
"branch_uid": "fc352b1e-6fc4-420d-9b39-4dbfa6a77264",
"code": "LAMPUNG",
"name_branch": "Bandar Lampung - Lampung",
"img_url": "branches/47mkQHLSeXMN2fwqx3R98BRWmed7xkROtZs73fW9.jpg",
"status": 1,
"created_at": "2023-06-05T13:03:25.000000Z",
"updated_at": "2024-12-20T06:25:19.000000Z",
"updated_by": "1a4fbc7d-3652-4d35-bc9a-c645ff8d6a49",
"pivot": {
"cs_group_id": 35,
"branch_id": 5,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-07-16T01:54:07.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 7,
"branch_uid": "a6bb2f65-6712-4b62-91f7-917330971466",
"code": "MEDAN",
"name_branch": "MEDAN - SUMATRA",
"img_url": "branches/luwoj3ogbuvmDF5iTVzbAh650hsZdrHJQfLYvnXw.jpg",
"status": 1,
"created_at": "2024-06-03T05:13:25.000000Z",
"updated_at": "2024-06-03T05:13:37.000000Z",
"updated_by": "e5984302-2b2e-4cc7-ae9d-f4fb44b3d582",
"pivot": {
"cs_group_id": 35,
"branch_id": 7,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-07-16T01:54:07.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 8,
"branch_uid": "b05586c5-ec2b-4cc5-ad2d-ca851c66a935",
"code": "MAKASSAR",
"name_branch": "MAKASSAR - SULAWESI",
"img_url": "branches/Fq2A3jOGxkkbI75pTNVCysea281aVagQvtSkCdPI.jpg",
"status": 1,
"created_at": "2024-07-06T04:09:35.000000Z",
"updated_at": "2024-07-06T04:09:35.000000Z",
"updated_by": "system",
"pivot": {
"cs_group_id": 35,
"branch_id": 8,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2026-05-31T21:09:49.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 9,
"branch_uid": "1c18bf81-096a-47ba-97d8-7cb8a512c580",
"code": "ONLINE",
"name_branch": "ONLINE",
"img_url": "branches/JtosUPLdgngRUOWGQ57wvBq0B19I6hTN6YXG0RJp.png",
"status": 1,
"created_at": "2024-07-29T11:59:52.000000Z",
"updated_at": "2024-07-29T11:59:52.000000Z",
"updated_by": "system",
"pivot": {
"cs_group_id": 35,
"branch_id": 9,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2026-05-31T21:09:49.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 10,
"branch_uid": "c5c2400c-9b57-435f-b682-dd6869581dec",
"code": "SURABAYA",
"name_branch": "SURABAYA - JATIM",
"img_url": "branches/FycM7DrfrKoykaSOds6ZVGyYqCKa9JI8klgLWB1o.png",
"status": 1,
"created_at": "2025-05-01T07:39:20.000000Z",
"updated_at": "2025-05-01T07:39:20.000000Z",
"updated_by": "system",
"pivot": {
"cs_group_id": 35,
"branch_id": 10,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2026-05-31T21:09:49.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 11,
"branch_uid": "ae62d13e-028d-4bfb-89f0-666739ebfcba",
"code": "SEMARANG",
"name_branch": "SEMARANG - JATENG",
"img_url": "branches/cQyADLaNTqa1aDa2LSgn0FFHWG7LGZoZrk8kSar1.png",
"status": 1,
"created_at": "2025-05-01T07:39:58.000000Z",
"updated_at": "2025-05-01T07:39:58.000000Z",
"updated_by": "system",
"pivot": {
"cs_group_id": 35,
"branch_id": 11,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-07-16T01:54:07.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 12,
"branch_uid": "16c90942-ff15-4ae3-8036-4ef42ee4981e",
"code": "BEKASI",
"name_branch": "BEKASI - JABAR",
"img_url": "branches/R1ULdCmdJmFhD1KXMpjmPc3swNi3hOcGZW1m3hOq.png",
"status": 1,
"created_at": "2025-05-01T07:40:28.000000Z",
"updated_at": "2025-05-01T07:40:28.000000Z",
"updated_by": "system",
"pivot": {
"cs_group_id": 35,
"branch_id": 12,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-07-16T01:54:07.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 13,
"branch_uid": "ad1aeb7b-c06c-4667-acf6-739790cb3aca",
"code": "MAKASSAR-TAMALANREA",
"name_branch": "MAKASSAR TAMALANREA - Sulawesi",
"img_url": "branches/YgKrlnHyhhOJQiNCql4ruOIG26ISz9Ri9f918nni.png",
"status": 1,
"created_at": "2025-09-22T07:57:38.000000Z",
"updated_at": "2026-02-12T10:50:53.000000Z",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"pivot": {
"cs_group_id": 35,
"branch_id": 13,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2026-05-31T21:09:49.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
},
{
"branch_id": 14,
"branch_uid": "8843541a-cb6a-4f7d-be4f-0420a9587321",
"code": "JOGJA-GONDOKUSUMAN",
"name_branch": "JOGJA GONDOKUSUMAN - JOGJA",
"img_url": "branches/fAeWWbd2rfP4bCENm3iN2QO7l46gbbBofQXwWgYP.png",
"status": 1,
"created_at": "2025-10-18T02:01:39.000000Z",
"updated_at": "2026-02-12T10:51:07.000000Z",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"pivot": {
"cs_group_id": 35,
"branch_id": 14,
"is_active": true,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-11-05T17:07:13.000000Z",
"updated_at": "2026-05-31T21:09:49.000000Z"
}
}
]
},
"error": ""
}
The ID of the cs group.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/cs-group/35" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ipsa\",
\"branches\": [
{
\"is_active\": false
}
],
\"teams\": [
{
\"is_active\": false
}
]
}"
The ID of the cs group.
curl --request DELETE \
"https://lead-service.devkilc.lcpare.com/api/cs-group/35" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/cs-group/35/set-active" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" APIs for managing customer service team
The page of the list.
The limit of the list.
The search query.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs-team?page=1&limit=10&q=John" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of teams",
"data": {
"current_page": 1,
"data": [],
"first_page_url": "https://lead-service.devkilc.lcpare.com/api/cs-team?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://lead-service.devkilc.lcpare.com/api/cs-team?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://lead-service.devkilc.lcpare.com/api/cs-team?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "https://lead-service.devkilc.lcpare.com/api/cs-team",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0
},
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/cs-team" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"quia\",
\"customer_service\": [
{
\"id\": 2
}
]
}"
The ID of the cs team.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/cs-team/13" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Team detail",
"data": {
"id": 13,
"name": "Retired CS",
"created_at": "2025-02-12T06:33:12.000000Z",
"updated_at": "2025-02-12T06:33:12.000000Z",
"deleted_at": null,
"created_by": "623567a0-5aad-42d3-a508-a072ff5bb888",
"updated_by": "623567a0-5aad-42d3-a508-a072ff5bb888",
"deleted_by": null,
"customer_services": [
{
"id": 5,
"id_officer": 69,
"counter": null,
"percent": 100,
"name": "izanugroho92",
"username": "ryas",
"is_active": false
},
{
"id": 16,
"id_officer": 255,
"counter": null,
"percent": 100,
"name": "Andy yusmant",
"username": "Jeka",
"is_active": false
},
{
"id": 6,
"id_officer": 67,
"counter": null,
"percent": 90,
"name": "jihanabdiah11",
"username": "tia",
"is_active": false
},
{
"id": 14,
"id_officer": 1,
"counter": null,
"percent": 10,
"name": "KILCIT Team",
"username": "IT IT",
"is_active": true
},
{
"id": 2,
"id_officer": 247,
"counter": null,
"percent": 100,
"name": "Irfan Mohamad Sukri",
"username": "Evan",
"is_active": true
}
]
},
"error": ""
}
The ID of the cs team.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/cs-team/13" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"commodi\",
\"customer_service\": [
{
\"id\": 15,
\"is_active\": true,
\"channel_requirement\": [
{
\"id\": 15,
\"is_active\": true
}
]
}
]
}"
The ID of the Cs Team.
curl --request DELETE \
"https://lead-service.devkilc.lcpare.com/api/cs-team/1" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" The ID of the team.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/cs-team/13/set-active" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/sending-initiate-whatsapp" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "WhatsApp initiation sent",
"data": [],
"error": ""
}
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/start-of-pause-assignment" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Pause assignment started",
"data": [],
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/qontak/assign-cs" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"room_id\": \"est\",
\"phone_number\": \"sed\",
\"name\": \"provident\",
\"mesage\": \"et\",
\"branch_id\": 3
}"
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/qontak/initiate-message" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/qontak/initiate-message-at-morning" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/qontak/label-sync" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": false,
"message": "webhook-token header is not valid",
"data": null,
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/qontak/label/veritatis" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request DELETE \
"https://lead-service.devkilc.lcpare.com/api/qontak/label/sequi" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/qontak/check-lead/tempora" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": false,
"message": "webhook-token header is not valid",
"data": null,
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/qontak/conversation-main-gate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"room_id\": \"ut\",
\"phone_number\": \"iste\",
\"name\": \"expedita\",
\"mesage\": \"ut\"
}"
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/qontak/retrieve-lead" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"room_id\": \"aut\",
\"phone_number\": \"assumenda\",
\"name\": \"reiciendis\",
\"branch_id\": \"ipsum\"
}"
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/qontak/assign-unassigned-lead" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Successfully assign lead into selected CS",
"data": null,
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/label-chat/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"payload\": []
}"
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead-share-link" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead-share-link/lead/378787" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/lead-share-link" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"lead_id\": 1
}"
curl --request PATCH \
"https://lead-service.devkilc.lcpare.com/api/lead-share-link/quia/is-used" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"is_used\": true
}"
curl --request PATCH \
"https://lead-service.devkilc.lcpare.com/api/lead-share-link/reiciendis/first-use" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_use_by_lead_id\": 1
}"
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead-share-link-usage" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead-share-link-usage/share-link/illum" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead-share-link-usage/lead/378787" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/lead-share-link-usage" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"lead_share_link_uid\": \"uuid\",
\"lead_id\": 1
}"
APIs for managing lead
The page of the list.
The limit of the list.
The search query for lead name.
The search query for lead history name.
The search query for email.
The search query for whatsapp.
The search query for course package name.
The search query for bank.
The search query for registration id.
The search query for utm campaign.
The search query for utm source.
The search query for utm medium.
The search query for utm content.
The search query for clid.
The search query for response info.
The search query for source.
The customer service id.
The start date.
The end date.
The start period date.
The end period date.
The start registration date.
The end registration date.
The start payment date.
The end payment date.
The branch id.
The category id.
The status id.
The is replied status.
The show status.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead/histories?page=1&limit=10&lead_name=non&lead_history_name=voluptatem&email=ucartwright%40example.com&whatsapp=quasi&course_package_name=molestias&bank=consectetur®istration_id=harum&utm_campaign=aliquid&utm_source=et&utm_medium=dolore&utm_content=amet&clid=quidem&response_info=est&source=nulla&cs_id=1&start_date=2021-01-01&end_date=2021-12-31&start_period=2021-01-01&end_period=2021-12-31&start_registration=2021-01-01&end_registration=2021-12-31&start_payment=2021-01-01&end_payment=2021-12-31&branch_id=1&category_id=1&status_id=1&is_replied=true&show=own" \
--header "Authorization: Bearer {Token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of lead histories",
"data": {
"current_page": 1,
"data": [],
"first_page_url": "https://lead-service.devkilc.lcpare.com/api/lead/histories?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://lead-service.devkilc.lcpare.com/api/lead/histories?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://lead-service.devkilc.lcpare.com/api/lead/histories?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "https://lead-service.devkilc.lcpare.com/api/lead/histories",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0
},
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/lead/histories/send-message" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"history_lead_id\": 9
}"
The lead id.
The registration id.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead/histories/detail?lead_id=109468®istration_id=058534" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Lead History Detail",
"data": {
"id": 131320,
"created_at": "2023-06-17T17:00:00.000000Z",
"name": "David Martin Munthe",
"course_package_name": "Paket Holiday Ceria 2 Minggu",
"branch_name": "PARE - JATIM",
"category_name": "LC OFFLINE",
"registration_date": "2023-06-18 00:00:00+00",
"payment_date": "2023-06-20",
"registration_number": "058534",
"period_date": "2023-06-26",
"bank": "IDN",
"status_name": "ENGAGED",
"utm_campaign": null,
"utm_source": null,
"utm_medium": null,
"utm_content": null,
"clid": null,
"response_info": null,
"source": "Registrasi",
"is_replied": null,
"lead_name": "David Martin Munthe",
"lead_email": "davidmmunthe8sg@gmail.com",
"lead_whatsapp": "6282190187672",
"lead_created_at": "2023-06-18T03:22:47.000000Z"
},
"error": ""
}
The lead id.
The whatsapp number.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead/histories/latest?lead_id=1&wa_number=628123456789" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"lead_id\": 9,
\"wa_number\": \"autem\"
}"
content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": false,
"message": "No history found in last 3 months",
"data": null,
"error": ""
}
curl --request PATCH \
"https://lead-service.devkilc.lcpare.com/api/lead/histories/update-utm" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"lead_id\": 1,
\"utm_campaign\": \"ullam\",
\"utm_source\": \"autem\",
\"utm_medium\": \"dicta\",
\"utm_content\": \"alias\",
\"cs_id\": 5
}"
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead/validate-email" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"armstrong.precious@example.net\",
\"whatsapp\": \"dolor\"
}"
content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Email validation result",
"data": {
"email": "armstrong.precious@example.net",
"is_allowed": true,
"reason": null,
"lead_data": null
},
"error": ""
}
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead/get-category-list" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of lead categories",
"data": [
{
"id": 2,
"name": "LC OFFLINE"
},
{
"id": 1,
"name": "LC ONLINE"
}
],
"error": ""
}
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead/get-status-list" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of lead statuses",
"data": [
{
"id": 2,
"name": "ENGAGED"
},
{
"id": 1,
"name": "NEW LEAD"
}
],
"error": ""
}
The page of the list.
The limit of the list.
The search query.
The customer service id.
The start date.
The end date.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead?page=1&limit=10&q=ullam&cs_id=1&start_date=2021-01-01&end_date=2021-12-31" \
--header "Authorization: Bearer {Token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of leads",
"data": [],
"error": ""
}
The ID of the lead.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/lead/378787" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Detail of lead",
"data": {
"id": 378787,
"created_at": "2025-11-19T09:04:50.000000Z",
"name": "AHMAD ULYA ZAIN",
"email": null,
"whatsapp": "6282145817692",
"histories": [
{
"id": 471865,
"created_at": "2025-11-19T09:04:50.000000Z",
"history_name": "AHMAD ULYA ZAIN",
"course_package_name": "EM/EMP",
"branch_name": "PARE - JATIM",
"category_name": "LC OFFLINE",
"registration_date": null,
"payment_date": null,
"registration_number": null,
"period_date": null,
"bank": null,
"status_name": "NEW LEAD",
"cs_name": "Retha Febrianasari",
"cs_team_name": "HQ CS",
"cs_group_name": "HQ Group",
"utm_campaign": "paid_1845483945016449",
"utm_source": "TTADS",
"utm_medium": "Iep 01 Gambar_1845485090442289",
"utm_content": null,
"clid": "{\"id\":\"E_C_P_CuEBNm7nlL4dhpgsIBZzHbsQzkYxtlGEI424-REpslB28575uPPw-hTqNZf8jX7-HZUHbH3G-2R29nVc5npPPdAxyaZw9Iml13L7kxUHSsqsB7qA0IZe_Zjqih2pRRo9TU9X-OJxzTZNZUJ4aq6QLeHl5GZ0YRe-ozHA6nbbApYtOW7vuKVc6rSYzPO9YFXNbly11u6vce_FNMiiQGqPrgDpkTkmHhArd2i0oP-isRI95aiHJg8ZYMoyiI46dA4VvP0aClNNoHVBpWzemGsUk742IRsTRZaSr5tihP-RNMfjqqwlEgR2Mi4w\",\"source\":\"tiktok_ads\"}",
"response_info": null,
"source": "TanyaCs",
"is_replied": null
}
]
},
"error": ""
}
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/dashboard-cs" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": false,
"message": "Customer Service Not Found",
"data": null,
"error": ""
}
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/dashboard-spv" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Dashboard of Spv Selling",
"data": {
"statistics": {
"total_lead_count": 579449,
"lead_count_today": 0,
"lead_count_yesterday": 0,
"lead_count_this_month": 3,
"lead_count_last_month": 0,
"total_registered_lead_count": 61898,
"registered_lead_count_today": 0,
"registered_lead_count_yesterday": 0,
"registered_lead_count_this_month": 0,
"registered_lead_count_last_month": 0,
"total_payment_lead_count": 34290,
"payment_lead_count_today": 0,
"payment_lead_count_yesterday": 0,
"payment_lead_count_this_month": 0,
"payment_lead_count_last_month": 0
},
"per_team": [
{
"team_name": "ARIEL",
"total_lead_count": 84648,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 9645,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 5702,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "DIAZ",
"total_lead_count": 77555,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 8525,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 4907,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "IZZY",
"total_lead_count": 99425,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 10939,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 6469,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "ZURI",
"total_lead_count": 55886,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 6724,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 3817,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "NIKY",
"total_lead_count": 26543,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 2287,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 1474,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "Unknown",
"total_lead_count": 8930,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 828,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 485,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "SPV",
"total_lead_count": 45215,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 7824,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 4275,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "Frontline",
"total_lead_count": 459,
"lead_count_today": 0,
"lead_count_this_month": 3,
"total_registered_lead_count": 358,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 168,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "Retired CS",
"total_lead_count": 5413,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 391,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 161,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "NEW CS",
"total_lead_count": 884,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 89,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 45,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "HQ CS",
"total_lead_count": 101928,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 7731,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 3385,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "Branch CS 1",
"total_lead_count": 38101,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 3263,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 1762,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "Branch CS 2",
"total_lead_count": 28557,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 2698,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 1362,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "HQ SPV",
"total_lead_count": 2776,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 222,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 109,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
},
{
"team_name": "Branch SPV",
"total_lead_count": 3129,
"lead_count_today": 0,
"lead_count_this_month": 0,
"total_registered_lead_count": 374,
"registered_lead_count_today": 0,
"registered_lead_count_this_month": 0,
"total_payment_lead_count": 169,
"payment_lead_count_today": 0,
"payment_lead_count_this_month": 0,
"schedule": []
}
]
},
"error": ""
}
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/get-lead-repeat-closing/temporibus" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": false,
"message": "webhook-token header is not valid",
"data": null,
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/affiliate/check-phone" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"whatsapp\": \"atque\"
}"
APIs for managing retrieve lead
The secret key for retrieving lead.
The number whatsapp for retrieving lead
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/retrieve-lead/token?secret_key=lcokaoke&number_whatsapp=molestiae" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "success",
"data": {
"secret_key": "lcokaoke",
"number_whatsapp": "molestiae",
"token": "b4b417d7b3072330f3d32d9b44557a9f"
},
"error": ""
}
The whatsapp number.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/retrieve-lead/clid?whatsapp=628951596034" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"whatsapp\": \"omnis\"
}"
content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": false,
"message": "No CLID found for this WhatsApp number within 30 days",
"data": null,
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/retrieve-lead" \
--header "Authorization: Bearer {Token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Akbar Hidayat\",
\"whatsapp\": \"081393597900\",
\"branch_code\": \"PARE\",
\"course_package_name\": \"Basic English\",
\"source\": \"TanyaCs\",
\"email\": \"john@example.com\",
\"period_date\": \"2024-09-01\",
\"registration_id\": 1001,
\"registration_date\": \"2023-09-10 00:00:00\",
\"payment_date\": \"2023-09-15 00:00:00\",
\"cs_id\": \"N0F3ZStvZGxyL202c3FhOFBpUENOdz09OjpwTZypzA8lmuaybr4w4paO\",
\"affiliate\": \"Affiliate XYZ\",
\"description\": \"Interested in advanced course packages.\",
\"utm_source\": \"FB\",
\"utm_medium\": \"\",
\"utm_campaign\": \"PAID\",
\"utm_term\": \"\",
\"utm_content\": \"pare\",
\"clid\": {
\"campaign_id\": \"12345\",
\"ad_group_id\": \"67890\",
\"keyword\": \"belajar bahasa inggris\"
},
\"occupation\": \"LULUS_KULIAH\",
\"lead_id_referral\": 10
}"
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/update-payment-lead" \
--header "Authorization: Bearer {Token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"registration_id\": 0,
\"payment_date\": \"2021-08-01\",
\"bank\": \"BCA\",
\"whatsapp\": \"081393597900\"
}"
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/update-status-bio" \
--header "Authorization: Bearer {Token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"registration_id\": 0,
\"bio_filled\": true,
\"whatsapp\": \"081393597900\"
}"
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/select-cs" \
--header "Authorization: Bearer {Token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"cs_id\": \"facilis\",
\"whatsapp\": \"081393597900\",
\"branch_code\": \"PARE\"
}"
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/halo-ai/assign-cs" \
--header "Content-Type: application/json" \
--header "Accept: application/json" curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/halo-ai/messages/initiate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" APIs for managing schedule
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/schedule/create-today" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": false,
"message": "cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to user-service.devkilc.lcpare.com:443 (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://user-service.devkilc.lcpare.com/api/user-service/dayoff-officer-now",
"data": [
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php",
"line": 338,
"function": "Illuminate\\Http\\Client\\{closure}",
"class": "Illuminate\\Http\\Client\\PendingRequest",
"type": "->",
"args": [
1
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Client/PendingRequest.php",
"line": 905,
"function": "retry",
"args": [
0,
{},
100,
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Client/PendingRequest.php",
"line": 772,
"function": "send",
"class": "Illuminate\\Http\\Client\\PendingRequest",
"type": "->",
"args": [
"GET",
"https://user-service.devkilc.lcpare.com/api/user-service/dayoff-officer-now",
{
"json": null
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Client/Factory.php",
"line": 510,
"function": "get",
"class": "Illuminate\\Http\\Client\\PendingRequest",
"type": "->",
"args": [
"https://user-service.devkilc.lcpare.com/api/user-service/dayoff-officer-now"
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php",
"line": 361,
"function": "__call",
"class": "Illuminate\\Http\\Client\\Factory",
"type": "->",
"args": [
"get",
[
"https://user-service.devkilc.lcpare.com/api/user-service/dayoff-officer-now"
]
]
},
{
"file": "/var/www/html/app/Http/Controllers/ScheduleController.php",
"line": 163,
"function": "__callStatic",
"class": "Illuminate\\Support\\Facades\\Facade",
"type": "::",
"args": [
"get",
[
"https://user-service.devkilc.lcpare.com/api/user-service/dayoff-officer-now"
]
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php",
"line": 32,
"function": "App\\Http\\Controllers\\{closure}",
"class": "App\\Http\\Controllers\\ScheduleController",
"type": "->",
"args": [
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php",
"line": 495,
"function": "transaction",
"class": "Illuminate\\Database\\Connection",
"type": "->",
"args": [
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php",
"line": 361,
"function": "__call",
"class": "Illuminate\\Database\\DatabaseManager",
"type": "->",
"args": [
"transaction",
[
{}
]
]
},
{
"file": "/var/www/html/app/Http/Controllers/ScheduleController.php",
"line": 157,
"function": "__callStatic",
"class": "Illuminate\\Support\\Facades\\Facade",
"type": "::",
"args": [
"transaction",
[
{}
]
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
"line": 47,
"function": "createSchedule",
"class": "App\\Http\\Controllers\\ScheduleController",
"type": "->",
"args": []
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 266,
"function": "dispatch",
"class": "Illuminate\\Routing\\ControllerDispatcher",
"type": "->",
"args": [
{
"uri": "api/schedule/create-today",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"api"
],
"uses": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"controller": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"namespace": null,
"prefix": "api",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": [],
"parameterNames": [],
"computedMiddleware": [
"api"
],
"compiled": {}
},
{},
"createSchedule"
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 212,
"function": "runController",
"class": "Illuminate\\Routing\\Route",
"type": "->",
"args": []
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 808,
"function": "run",
"class": "Illuminate\\Routing\\Route",
"type": "->",
"args": []
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 170,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
"line": 51,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 209,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 127,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 807,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 786,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"uri": "api/schedule/create-today",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"api"
],
"uses": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"controller": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"namespace": null,
"prefix": "api",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": [],
"parameterNames": [],
"computedMiddleware": [
"api"
],
"compiled": {}
},
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 750,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{
"uri": "api/schedule/create-today",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"api"
],
"uses": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"controller": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"namespace": null,
"prefix": "api",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": [],
"parameterNames": [],
"computedMiddleware": [
"api"
],
"compiled": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 739,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 201,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 170,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 209,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 51,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 209,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 209,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 110,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 209,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 209,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 58,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 209,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php",
"line": 22,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 209,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\InvokeDeferredCallbacks",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 127,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 176,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 145,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 256,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 249,
"function": "callLaravelRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 86,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{
"uri": "api/schedule/create-today",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"api"
],
"uses": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"controller": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"namespace": null,
"prefix": "api",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": [],
"parameterNames": [],
"computedMiddleware": [
"api"
],
"compiled": {}
}
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 39,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->",
"args": [
{
"custom": [],
"httpMethods": [
"GET"
],
"uri": "api/schedule/create-today",
"metadata": {
"custom": [],
"groupName": "Schedule",
"groupDescription": "\nAPIs for managing schedule",
"subgroup": "",
"subgroupDescription": "",
"title": "Create Schedule",
"description": "",
"authenticated": false,
"deprecated": false
},
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
},
"urlParameters": [],
"cleanUrlParameters": [],
"queryParameters": [],
"cleanQueryParameters": [],
"bodyParameters": [],
"cleanBodyParameters": [],
"fileParameters": [],
"responses": [],
"responseFields": [],
"auth": [],
"controller": {
"name": "App\\Http\\Controllers\\ScheduleController"
},
"method": {
"name": "createSchedule",
"class": "App\\Http\\Controllers\\ScheduleController"
},
"route": {
"uri": "api/schedule/create-today",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"api"
],
"uses": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"controller": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"namespace": null,
"prefix": "api",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": [],
"parameterNames": [],
"computedMiddleware": [
"api"
],
"compiled": {}
}
},
{
"only": [
"GET *"
],
"config": {
"app.debug": false
}
}
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 240,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->",
"args": [
{
"custom": [],
"httpMethods": [
"GET"
],
"uri": "api/schedule/create-today",
"metadata": {
"custom": [],
"groupName": "Schedule",
"groupDescription": "\nAPIs for managing schedule",
"subgroup": "",
"subgroupDescription": "",
"title": "Create Schedule",
"description": "",
"authenticated": false,
"deprecated": false
},
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
},
"urlParameters": [],
"cleanUrlParameters": [],
"queryParameters": [],
"cleanQueryParameters": [],
"bodyParameters": [],
"cleanBodyParameters": [],
"fileParameters": [],
"responses": [],
"responseFields": [],
"auth": [],
"controller": {
"name": "App\\Http\\Controllers\\ScheduleController"
},
"method": {
"name": "createSchedule",
"class": "App\\Http\\Controllers\\ScheduleController"
},
"route": {
"uri": "api/schedule/create-today",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"api"
],
"uses": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"controller": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"namespace": null,
"prefix": "api",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": [],
"parameterNames": [],
"computedMiddleware": [
"api"
],
"compiled": {}
}
},
{
"only": [
"GET *"
],
"config": {
"app.debug": false
}
}
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 165,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->",
"args": [
"responses",
{
"custom": [],
"httpMethods": [
"GET"
],
"uri": "api/schedule/create-today",
"metadata": {
"custom": [],
"groupName": "Schedule",
"groupDescription": "\nAPIs for managing schedule",
"subgroup": "",
"subgroupDescription": "",
"title": "Create Schedule",
"description": "",
"authenticated": false,
"deprecated": false
},
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
},
"urlParameters": [],
"cleanUrlParameters": [],
"queryParameters": [],
"cleanQueryParameters": [],
"bodyParameters": [],
"cleanBodyParameters": [],
"fileParameters": [],
"responses": [],
"responseFields": [],
"auth": [],
"controller": {
"name": "App\\Http\\Controllers\\ScheduleController"
},
"method": {
"name": "createSchedule",
"class": "App\\Http\\Controllers\\ScheduleController"
},
"route": {
"uri": "api/schedule/create-today",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"api"
],
"uses": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"controller": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"namespace": null,
"prefix": "api",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": [],
"parameterNames": [],
"computedMiddleware": [
"api"
],
"compiled": {}
}
},
[],
{}
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 97,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->",
"args": [
{
"custom": [],
"httpMethods": [
"GET"
],
"uri": "api/schedule/create-today",
"metadata": {
"custom": [],
"groupName": "Schedule",
"groupDescription": "\nAPIs for managing schedule",
"subgroup": "",
"subgroupDescription": "",
"title": "Create Schedule",
"description": "",
"authenticated": false,
"deprecated": false
},
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
},
"urlParameters": [],
"cleanUrlParameters": [],
"queryParameters": [],
"cleanQueryParameters": [],
"bodyParameters": [],
"cleanBodyParameters": [],
"fileParameters": [],
"responses": [],
"responseFields": [],
"auth": [],
"controller": {
"name": "App\\Http\\Controllers\\ScheduleController"
},
"method": {
"name": "createSchedule",
"class": "App\\Http\\Controllers\\ScheduleController"
},
"route": {
"uri": "api/schedule/create-today",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"api"
],
"uses": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"controller": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"namespace": null,
"prefix": "api",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": [],
"parameterNames": [],
"computedMiddleware": [
"api"
],
"compiled": {}
}
},
[]
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 125,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->",
"args": [
{
"uri": "api/schedule/create-today",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"api"
],
"uses": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"controller": "App\\Http\\Controllers\\ScheduleController@createSchedule",
"namespace": null,
"prefix": "api",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": [],
"parameterNames": [],
"computedMiddleware": [
"api"
],
"compiled": {}
},
[]
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 72,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->",
"args": [
[
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
],
[],
[]
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 50,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->",
"args": [
{},
false
]
},
{
"file": "/var/www/html/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 55,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->",
"args": []
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 43,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::",
"args": []
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 95,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::",
"args": [
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 35,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::",
"args": [
{
"contextual": {
"Laravel\\Telescope\\Storage\\DatabaseEntriesRepository": {
"$connection": "telescope",
"$chunkSize": 1000
}
},
"contextualAttributes": []
},
[
{},
"handle"
],
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 696,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::",
"args": [
{
"contextual": {
"Laravel\\Telescope\\Storage\\DatabaseEntriesRepository": {
"$connection": "telescope",
"$chunkSize": 1000
}
},
"contextualAttributes": []
},
[
{},
"handle"
],
[],
null
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 213,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->",
"args": [
[
{},
"handle"
]
]
},
{
"file": "/var/www/html/vendor/symfony/console/Command/Command.php",
"line": 318,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 182,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "/var/www/html/vendor/symfony/console/Application.php",
"line": 1092,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "/var/www/html/vendor/symfony/console/Application.php",
"line": 341,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->",
"args": [
{},
{},
{}
]
},
{
"file": "/var/www/html/vendor/symfony/console/Application.php",
"line": 192,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 198,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
"line": 1235,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "/var/www/html/artisan",
"line": 13,
"function": "handleCommand",
"class": "Illuminate\\Foundation\\Application",
"type": "->",
"args": [
{}
]
}
],
"error": "Internal Server Error"
}
The page of the list.
The limit of the list.
The date of the schedule.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/schedule?page=1&limit=10&date=2021-09-01" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List Schedule",
"data": {
"current_page": 1,
"data": [],
"first_page_url": "https://lead-service.devkilc.lcpare.com/api/schedule?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://lead-service.devkilc.lcpare.com/api/schedule?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://lead-service.devkilc.lcpare.com/api/schedule?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "https://lead-service.devkilc.lcpare.com/api/schedule",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0
},
"error": ""
}
The ID of the schedule.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/schedule/618" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Detail Schedule",
"data": {
"id": 618,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T08:38:31.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"updated_by_name": "system",
"schedule_shift": [
{
"id": 1632,
"schedule_id": 618,
"shift_id": 4,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T08:38:31.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"shift": {
"id": 4,
"name": "24 Jam",
"start_time": "00:00:00",
"end_time": "23:59:00",
"created_at": "2024-10-29T09:17:33.000000Z",
"updated_at": "2024-10-29T09:17:33.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
"schedule_shift_cs_with_customer_service": [
{
"id": 3,
"schedule_shift_id": 1632,
"percent": 0,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T08:38:31.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 0,
"name": "dewintan",
"username": "Fita",
"team_id": 16,
"team_name": "Branch CS 1",
"group_id": 33,
"group_name": "Branch Group 1",
"template_schedule_shift_cs_id": 11200
},
{
"id": 20,
"schedule_shift_id": 1632,
"percent": 80,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:21:30.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 16,
"name": "Ana Ismatul Mubarokah",
"username": "CS Tia",
"team_id": 15,
"team_name": "HQ CS",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 11209
},
{
"id": 12,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:38:23.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 20,
"name": "Retha Febrianasari",
"username": "Ara",
"team_id": 15,
"team_name": "HQ CS",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 11204
},
{
"id": 18,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:39:13.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 20,
"name": "Thomas Aldi Setiawan",
"username": "Vyn",
"team_id": 15,
"team_name": "HQ CS",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 11207
},
{
"id": 7,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:42:23.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 23,
"name": "eko wicaksono",
"username": "Kia",
"team_id": 16,
"team_name": "Branch CS 1",
"group_id": 33,
"group_name": "Branch Group 1",
"template_schedule_shift_cs_id": 11203
},
{
"id": 19,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:43:52.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 20,
"name": "Evryta P.",
"username": "Gea",
"team_id": 15,
"team_name": "HQ CS",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 11208
},
{
"id": 11,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:45:32.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 23,
"name": "Devina Dyah",
"username": "Zea",
"team_id": 19,
"team_name": "Branch SPV",
"group_id": 35,
"group_name": "Branch Group 2",
"template_schedule_shift_cs_id": 11205
},
{
"id": 4,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:45:36.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 21,
"name": "ajaynursyamsu2211",
"username": "Max",
"team_id": 15,
"team_name": "HQ CS",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 11197
},
{
"id": 13,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:46:59.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 24,
"name": "Fitria Rachmawati Oemardi",
"username": "Yuki",
"team_id": 16,
"team_name": "Branch CS 1",
"group_id": 33,
"group_name": "Branch Group 1",
"template_schedule_shift_cs_id": 11199
},
{
"id": 21,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:52:44.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 16,
"name": "Nur Rafida",
"username": "Oliv",
"team_id": 17,
"team_name": "Branch CS 2",
"group_id": 35,
"group_name": "Branch Group 2",
"template_schedule_shift_cs_id": 11210
},
{
"id": 10,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:53:13.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 17,
"name": "Ismi Sofiatul Q.",
"username": "Hana",
"team_id": 17,
"team_name": "Branch CS 2",
"group_id": 35,
"group_name": "Branch Group 2",
"template_schedule_shift_cs_id": 11196
},
{
"id": 2,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:54:26.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 21,
"name": "Irfan Mohamad Sukri",
"username": "Evan",
"team_id": 13,
"team_name": "Retired CS",
"group_id": 29,
"group_name": "Retired Group CS",
"template_schedule_shift_cs_id": 11198
},
{
"id": 17,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:54:58.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 17,
"name": "Nashiha Afidah",
"username": "Ryas",
"team_id": 17,
"team_name": "Branch CS 2",
"group_id": 35,
"group_name": "Branch Group 2",
"template_schedule_shift_cs_id": 11201
},
{
"id": 15,
"schedule_shift_id": 1632,
"percent": 100,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T23:58:35.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 21,
"name": "Tiara Selling",
"username": "Kenzie",
"team_id": 15,
"team_name": "HQ CS",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 11202
},
{
"id": 9,
"schedule_shift_id": 1632,
"percent": 10,
"is_active": true,
"created_at": "2025-11-19T08:38:31.000000Z",
"updated_at": "2025-11-19T22:41:03.000000Z",
"deleted_at": null,
"created_by": "system",
"updated_by": "system",
"deleted_by": null,
"counter": 3,
"name": "Ms. Rossy Selling",
"username": "Nada",
"team_id": 18,
"team_name": "HQ SPV",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 11206
}
]
}
]
},
"error": ""
}
The ID of the schedule.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/schedule/618" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"schedule_shifts\": [
{
\"id\": 7,
\"is_active\": true,
\"customer_services\": [
{
\"id\": 4,
\"percent\": 2,
\"is_active\": false,
\"counter\": 20
}
]
}
]
}"
APIs for managing setting
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/setting" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Setting",
"data": {
"id": 1,
"max_cs_per_team": 10,
"max_days_lead": 2,
"updated_by": null,
"created_by": null,
"deleted_by": null,
"deleted_at": null,
"created_at": "2024-08-30T02:35:06.000000Z",
"updated_at": "2024-09-16T02:59:01.000000Z",
"cs_time_create": "00:00",
"user_initiate": true
},
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/setting" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"max_cs_per_team\": 10,
\"max_days_lead\": 10,
\"cs_time_create\": \"00:00:00\"
}"
The ID of the setting.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/setting/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"max_cs_per_team\": 10,
\"max_days_lead\": 10,
\"cs_time_create\": \"00:00:00\"
}"
APIs for managing shift
The page of the list.
The limit of the list.
The search query.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/shift?page=1&limit=10&q=John" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "List of shifts",
"data": {
"current_page": 1,
"data": [],
"first_page_url": "https://lead-service.devkilc.lcpare.com/api/shift?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://lead-service.devkilc.lcpare.com/api/shift?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://lead-service.devkilc.lcpare.com/api/shift?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "https://lead-service.devkilc.lcpare.com/api/shift",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0
},
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/shift" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"incidunt\",
\"start_time\": \"dolor\",
\"end_time\": \"ex\"
}"
The ID of the shift.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/shift/2" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Shift detail",
"data": {
"id": 2,
"name": "Sore",
"start_time": "14:00:00",
"end_time": "23:59:00",
"created_at": "2024-09-02T04:14:00.000000Z",
"updated_at": "2024-10-03T08:29:46.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
"error": ""
}
The ID of the shift.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/shift/2" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dolorem\",
\"start_time\": \"alias\",
\"end_time\": \"dolorem\"
}"
The ID of the shift.
curl --request DELETE \
"https://lead-service.devkilc.lcpare.com/api/shift/2" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" APIs for managing template schedule
The page of the list.
The limit of the list.
The search query.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/template-schedule?page=1&limit=10&q=All+Shift" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "1",
"data": {
"current_page": 1,
"data": [
{
"id": 7,
"name": "All Shift",
"created_at": "2025-05-08T02:25:34.000000Z",
"updated_at": "2025-10-27T04:23:29.000000Z",
"deleted_at": null,
"created_by": "5cb9b47b-8da5-47dd-98fb-92b2fff31476",
"updated_by": "e04549b0-5d1b-43c0-bc3a-cdd4e4fbb187",
"deleted_by": null,
"is_active": true
}
],
"first_page_url": "https://lead-service.devkilc.lcpare.com/api/template-schedule?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://lead-service.devkilc.lcpare.com/api/template-schedule?page=1",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://lead-service.devkilc.lcpare.com/api/template-schedule?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"next_page_url": null,
"path": "https://lead-service.devkilc.lcpare.com/api/template-schedule",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
},
"error": ""
}
curl --request POST \
"https://lead-service.devkilc.lcpare.com/api/template-schedule" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"aperiam\",
\"shifts\": [
{
\"id\": 20,
\"customer_services\": [
{
\"id\": 3,
\"percent\": 0
}
]
}
]
}"
The ID of the template schedule.
curl --request GET \
--get "https://lead-service.devkilc.lcpare.com/api/template-schedule/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json" content-type
: application/json
cache-control
: no-cache, private
access-control-allow-origin
: *
{
"success": true,
"message": "Success get detail template schedule",
"data": {
"id": 3,
"name": "Daily",
"created_at": "2024-09-18T01:49:56.000000Z",
"updated_at": "2024-10-09T09:18:57.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "5cb9b47b-8da5-47dd-98fb-92b2fff31476",
"deleted_by": null,
"is_active": false,
"template_shift": [
{
"id": 14,
"template_schedule_id": 3,
"shift_id": 1,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"shift": {
"id": 1,
"name": "Tes",
"start_time": "00:00:00",
"end_time": "13:59:00",
"created_at": "2024-09-02T01:51:56.000000Z",
"updated_at": "2024-10-07T07:11:12.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "5cb9b47b-8da5-47dd-98fb-92b2fff31476",
"deleted_by": null
},
"customer_service": [
{
"id": 4,
"customer_service_id": 4,
"template_schedule_shift_id": 14,
"percent": 10,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "ajaynursyamsu2211",
"username": "Max",
"team_id": 15,
"officer_id": 46,
"team_name": "HQ CS",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 33
},
{
"id": 2,
"customer_service_id": 2,
"template_schedule_shift_id": 14,
"percent": 10,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "Irfan Mohamad Sukri",
"username": "Evan",
"team_id": 13,
"officer_id": 247,
"team_name": "Retired CS",
"group_id": 29,
"group_name": "Retired Group CS",
"template_schedule_shift_cs_id": 34
},
{
"id": 3,
"customer_service_id": 3,
"template_schedule_shift_id": 14,
"percent": 10,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "dewintan",
"username": "Fita",
"team_id": 16,
"officer_id": 61,
"team_name": "Branch CS 1",
"group_id": 33,
"group_name": "Branch Group 1",
"template_schedule_shift_cs_id": 35
},
{
"id": 11,
"customer_service_id": 11,
"template_schedule_shift_id": 14,
"percent": 0,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "Devina Dyah",
"username": "Zea",
"team_id": 19,
"officer_id": 48,
"team_name": "Branch SPV",
"group_id": 35,
"group_name": "Branch Group 2",
"template_schedule_shift_cs_id": 36
},
{
"id": 14,
"customer_service_id": 14,
"template_schedule_shift_id": 14,
"percent": 10,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "KILCIT Team",
"username": "IT IT",
"team_id": 13,
"officer_id": 1,
"team_name": "Retired CS",
"group_id": 29,
"group_name": "Retired Group CS",
"template_schedule_shift_cs_id": 37
}
]
},
{
"id": 15,
"template_schedule_id": 3,
"shift_id": 2,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"shift": {
"id": 2,
"name": "Sore",
"start_time": "14:00:00",
"end_time": "23:59:00",
"created_at": "2024-09-02T04:14:00.000000Z",
"updated_at": "2024-10-03T08:29:46.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null
},
"customer_service": [
{
"id": 10,
"customer_service_id": 10,
"template_schedule_shift_id": 15,
"percent": 20,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "Ismi Sofiatul Q.",
"username": "Hana",
"team_id": 17,
"officer_id": 250,
"team_name": "Branch CS 2",
"group_id": 35,
"group_name": "Branch Group 2",
"template_schedule_shift_cs_id": 38
},
{
"id": 13,
"customer_service_id": 13,
"template_schedule_shift_id": 15,
"percent": 10,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "Fitria Rachmawati Oemardi",
"username": "Yuki",
"team_id": 16,
"officer_id": 249,
"team_name": "Branch CS 1",
"group_id": 33,
"group_name": "Branch Group 1",
"template_schedule_shift_cs_id": 39
},
{
"id": 5,
"customer_service_id": 5,
"template_schedule_shift_id": 15,
"percent": 30,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "izanugroho92",
"username": "ryas",
"team_id": 13,
"officer_id": 69,
"team_name": "Retired CS",
"group_id": 29,
"group_name": "Retired Group CS",
"template_schedule_shift_cs_id": 40
},
{
"id": 12,
"customer_service_id": 12,
"template_schedule_shift_id": 15,
"percent": 100,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "Retha Febrianasari",
"username": "Ara",
"team_id": 15,
"officer_id": 246,
"team_name": "HQ CS",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 41
},
{
"id": 8,
"customer_service_id": 8,
"template_schedule_shift_id": 15,
"percent": 20,
"created_at": "2024-09-21T05:27:47.000000Z",
"updated_at": "2024-09-21T05:27:47.000000Z",
"deleted_at": null,
"created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
"deleted_by": null,
"name": "jehanadani",
"username": "Lucy",
"team_id": 12,
"officer_id": 44,
"team_name": "Frontline",
"group_id": 32,
"group_name": "HQ Group",
"template_schedule_shift_cs_id": 42
}
]
}
]
},
"error": ""
}
The ID of the template schedule.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/template-schedule/3" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vel\",
\"shifts\": [
{
\"id\": 8,
\"customer_services\": [
{
\"id\": 20,
\"percent\": 0
}
]
}
]
}"
The ID of the template schedule.
curl --request DELETE \
"https://lead-service.devkilc.lcpare.com/api/template-schedule/3" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json" The ID of the template schedule.
curl --request PUT \
"https://lead-service.devkilc.lcpare.com/api/template-schedule/1/set-active" \
--header "Authorization: Bearer { BEARER_TOKEN }" \
--header "Content-Type: application/json" \
--header "Accept: application/json"