Chuyển tới nội dung chính

22. Phụ Lục A — Danh Mục Đầy Đủ Endpoint (JWT nội bộ)

Bổ sung danh mục tham chiếu đầy đủ các endpoint nội bộ (xác thực JWT Authorization: Bearer). Các endpoint chi tiết (có ví dụ request/response) nằm ở các mục 1–20 phía trên; bảng dưới liệt kê toàn bộ endpoint còn lại theo nhóm.

AI & Trợ lý

MethodEndpointMô tả
GET/api/v1/ai/assistant-configLấy — assistant config
GET/api/v1/ai/configLấy — config
PUT/api/v1/ai/configCập nhật — config
POST/api/v1/ai/format-richTạo/Thực thi — format rich
GET/api/v1/ai/providersLấy — providers
POST/api/v1/ai/sales-handoff-messageTạo/Thực thi — sales handoff message
POST/api/v1/ai/sentiment/:idTạo/Thực thi — theo ID
POST/api/v1/ai/suggestTạo/Thực thi — suggest
POST/api/v1/ai/summarize/:idTạo/Thực thi — theo ID
GET/api/v1/ai/usageLấy — usage

Báo cáo

MethodEndpointMô tả
GET/api/v1/reports/appointmentsLấy — appointments
GET/api/v1/reports/contactsLấy — contacts
GET/api/v1/reports/exportLấy — export
GET/api/v1/reports/messagesLấy — messages

Báo cáo đã lưu

MethodEndpointMô tả
GET/api/v1/saved-reportsLấy — saved reports
POST/api/v1/saved-reportsTạo/Thực thi — saved reports
DELETE/api/v1/saved-reports/:idXoá — theo ID
GET/api/v1/saved-reports/:idLấy — theo ID
PUT/api/v1/saved-reports/:idCập nhật — theo ID
POST/api/v1/saved-reports/:id/runTạo/Thực thi — run

Bạn bè (DB)

MethodEndpointMô tả
GET/api/v1/friends-db/all-nicksLấy — all nicks

Bạn bè Zalo

MethodEndpointMô tả
POST/api/v1/friends/:friendId/zalo-labelTạo/Thực thi — zalo label
PATCH/api/v1/friends/:idCập nhật — theo ID
POST/api/v1/friends/:id/ensure-conversationTạo/Thực thi — ensure conversation
POST/api/v1/friends/:id/promote-to-parentTạo/Thực thi — promote to parent

Bể Lead (Lead Pool)

MethodEndpointMô tả
POST/api/v1/lead-pool/:id/find-zaloTạo/Thực thi — find zalo
POST/api/v1/lead-pool/:id/noteTạo/Thực thi — note
POST/api/v1/lead-pool/:id/open-chatTạo/Thực thi — open chat
GET/api/v1/lead-pool/:id/payloadLấy — payload
POST/api/v1/lead-pool/:id/returnTạo/Thực thi — return
GET/api/v1/lead-pool/available-nicksLấy — available nicks
GET/api/v1/lead-pool/eligibilityLấy — eligibility
GET/api/v1/lead-pool/my-historyLấy — my history
POST/api/v1/lead-pool/requestTạo/Thực thi — request
GET/api/v1/lead-pool/statsLấy — stats

Bộ lọc lưu sẵn

MethodEndpointMô tả
GET/api/v1/filter-presetsLấy — filter presets
POST/api/v1/filter-presetsTạo/Thực thi — filter presets

Chat

MethodEndpointMô tả
POST/api/v1/chat/send-handoffTạo/Thực thi — send handoff

Chấm điểm Lead

MethodEndpointMô tả
PUT/api/v1/scoring/configCập nhật — config
GET/api/v1/scoring/nba-templatesLấy — nba templates
GET/api/v1/scoring/stage-transitionsLấy — stage transitions
GET/api/v1/scoring/stuck-thresholdsLấy — stuck thresholds

Cài đặt (API key/Trạng thái/Webhook)

MethodEndpointMô tả
GET/api/v1/settings/api-keyLấy — api key
POST/api/v1/settings/api-key/generateTạo/Thực thi — generate
GET/api/v1/settings/statusesLấy — statuses
POST/api/v1/settings/statusesTạo/Thực thi — statuses
DELETE/api/v1/settings/statuses/:idXoá — theo ID
PUT/api/v1/settings/statuses/:idCập nhật — theo ID
POST/api/v1/settings/statuses/reorderTạo/Thực thi — reorder
GET/api/v1/settings/webhookLấy — webhook
PUT/api/v1/settings/webhookCập nhật — webhook
POST/api/v1/settings/webhook/testTạo/Thực thi — test

Dashboard

MethodEndpointMô tả
GET/api/v1/dashboard/action-hub/meLấy — me
GET/api/v1/dashboard/action-hub/picker/deptsLấy — depts
GET/api/v1/dashboard/action-hub/picker/usersLấy — users
GET/api/v1/dashboard/action-hub/systemLấy — system
GET/api/v1/dashboard/action-hub/teamLấy — team
GET/api/v1/dashboard/appointmentsLấy — appointments
GET/api/v1/dashboard/kpiLấy — kpi
GET/api/v1/dashboard/message-volumeLấy — message volume
GET/api/v1/dashboard/pipelineLấy — pipeline
GET/api/v1/dashboard/sourcesLấy — sources

Dòng thời gian

MethodEndpointMô tả
GET/api/v1/timeline/exportLấy — export

Ghi chú

MethodEndpointMô tả
DELETE/api/v1/notes/:idXoá — theo ID
PATCH/api/v1/notes/:idCập nhật — theo ID
POST/api/v1/notes/:id/ai-parseTạo/Thực thi — ai parse
POST/api/v1/notes/:id/link-appointmentTạo/Thực thi — link appointment
POST/api/v1/notes/:id/reactionsTạo/Thực thi — reactions

Hội thoại & Tin nhắn

MethodEndpointMô tả
DELETE/api/v1/conversations/:idXoá — theo ID
POST/api/v1/conversations/:id/cardTạo/Thực thi — card
POST/api/v1/conversations/:id/forwardTạo/Thực thi — forward
POST/api/v1/conversations/:id/linkTạo/Thực thi — link
POST/api/v1/conversations/:id/mark-readTạo/Thực thi — mark read
GET/api/v1/conversations/:id/messagesLấy — messages
DELETE/api/v1/conversations/:id/messages/:msgIdXoá — theo ID
POST/api/v1/conversations/:id/messages/:msgId/editTạo/Thực thi — edit
POST/api/v1/conversations/:id/messages/:msgId/undoTạo/Thực thi — undo
POST/api/v1/conversations/:id/pinTạo/Thực thi — pin
DELETE/api/v1/conversations/:id/reactionsXoá — reactions
POST/api/v1/conversations/:id/reactionsTạo/Thực thi — reactions
POST/api/v1/conversations/:id/restoreTạo/Thực thi — restore
POST/api/v1/conversations/:id/send-blockTạo/Thực thi — send block
POST/api/v1/conversations/:id/stickerTạo/Thực thi — sticker
PATCH/api/v1/conversations/:id/tabCập nhật — tab
POST/api/v1/conversations/:id/touch-profileTạo/Thực thi — touch profile
POST/api/v1/conversations/:id/typingTạo/Thực thi — typing
POST/api/v1/conversations/:id/unpinTạo/Thực thi — unpin
POST/api/v1/conversations/:id/upload-imageTạo/Thực thi — upload image
POST/api/v1/conversations/ensure-by-uidTạo/Thực thi — ensure by uid
GET/api/v1/conversations/event-countsLấy — event counts
GET/api/v1/conversations/sidebar-tagsLấy — sidebar tags

Khách hàng (timeline/log)

MethodEndpointMô tả
GET/api/v1/customers/:id/activity-logLấy — activity log
GET/api/v1/customers/:id/timelineLấy — timeline

Lead kẹt

MethodEndpointMô tả
GET/api/v1/leads/stuckLấy — stuck
POST/api/v1/leads/stuck/scanTạo/Thực thi — scan

Liên hệ & CRM

MethodEndpointMô tả
GET/api/v1/contacts/:contactId/notesLấy — notes
GET/api/v1/contacts/:id/appointmentsLấy — appointments
GET/api/v1/contacts/:id/cockpitLấy — cockpit
GET/api/v1/contacts/:id/engagement-timelineLấy — engagement timeline
GET/api/v1/contacts/:id/friendshipsLấy — friendships
POST/api/v1/contacts/:id/link-parentTạo/Thực thi — link parent
POST/api/v1/contacts/:id/merge-intoTạo/Thực thi — merge into
PUT/api/v1/contacts/:id/tagsCập nhật — tags
GET/api/v1/contacts/:id/teammatesLấy — teammates
POST/api/v1/contacts/:id/unlink-parentTạo/Thực thi — unlink parent
POST/api/v1/contacts/:id/virtual-conversationTạo/Thực thi — virtual conversation
GET/api/v1/contacts/by-zalo-uid/:uidLấy — theo ID
GET/api/v1/contacts/duplicatesLấy — duplicates
POST/api/v1/contacts/duplicates/:groupId/dismissTạo/Thực thi — dismiss
POST/api/v1/contacts/duplicates/:groupId/mergeTạo/Thực thi — merge
POST/api/v1/contacts/intelligence/recomputeTạo/Thực thi — recompute
GET/api/v1/contacts/parent-candidatesLấy — parent candidates
POST/api/v1/contacts/parent-candidates/:id/acceptTạo/Thực thi — accept
POST/api/v1/contacts/parent-candidates/:id/dismissTạo/Thực thi — dismiss
GET/api/v1/contacts/pipelineLấy — pipeline
POST/api/v1/contacts/quick-createTạo/Thực thi — quick create
POST/api/v1/contacts/resolve-by-keysTạo/Thực thi — resolve by keys
GET/api/v1/contacts/statsLấy — stats

Lịch hẹn

MethodEndpointMô tả
DELETE/api/v1/appointments/:idXoá — theo ID
GET/api/v1/appointments/:idLấy — theo ID
PUT/api/v1/appointments/:idCập nhật — theo ID
PATCH/api/v1/appointments/:id/statusCập nhật — status
GET/api/v1/appointments/todayLấy — today
GET/api/v1/appointments/upcomingLấy — upcoming

Người dùng

MethodEndpointMô tả
POST/api/v1/users/:id/handoffTạo/Thực thi — handoff
PATCH/api/v1/users/:id/max-privacy-nicksCập nhật — max privacy nicks
PUT/api/v1/users/:id/passwordCập nhật — password
POST/api/v1/users/bulk-assignTạo/Thực thi — bulk assign

Nhóm quyền (RBAC)

MethodEndpointMô tả
GET/api/v1/permission-groupsLấy — permission groups
POST/api/v1/permission-groupsTạo/Thực thi — permission groups
DELETE/api/v1/permission-groups/:idXoá — theo ID
GET/api/v1/permission-groups/:idLấy — theo ID
PATCH/api/v1/permission-groups/:idCập nhật — theo ID
GET/api/v1/permission-groups/metaLấy — meta

Nhóm thẻ CRM

MethodEndpointMô tả
GET/api/v1/crm-tag-groupsLấy — crm tag groups
POST/api/v1/crm-tag-groupsTạo/Thực thi — crm tag groups
DELETE/api/v1/crm-tag-groups/:idXoá — theo ID
PATCH/api/v1/crm-tag-groups/:idCập nhật — theo ID

Nhật ký kiểm toán

MethodEndpointMô tả
GET/api/v1/audit-logsLấy — audit logs

Phòng ban (RBAC)

MethodEndpointMô tả
DELETE/api/v1/departments/:idXoá — theo ID
PATCH/api/v1/departments/:idCập nhật — theo ID
POST/api/v1/departments/:id/membersTạo/Thực thi — members
GET/api/v1/departments/:id/members-treeLấy — members tree
DELETE/api/v1/departments/:id/members/:userIdXoá — theo ID

Public org branding

MethodEndpointMô tả
GET/api/v1/public/org-brandingLấy — org branding

Quyền riêng tư & PIN/OTP

MethodEndpointMô tả
POST/api/v1/privacy/lockTạo/Thực thi — lock
GET/api/v1/privacy/my-nicksLấy — my nicks
POST/api/v1/privacy/otp/requestTạo/Thực thi — request
GET/api/v1/privacy/otp/statusLấy — status
POST/api/v1/privacy/otp/verifyTạo/Thực thi — verify
GET/api/v1/privacy/statusLấy — status

RBAC người dùng

MethodEndpointMô tả
GET/api/v1/rbac/usersLấy — users
PATCH/api/v1/rbac/users/:id/permission-groupCập nhật — permission group

Thông tin user Zalo

MethodEndpointMô tả
GET/api/v1/zalo-user-info/:uidLấy — theo ID
POST/api/v1/zalo-user-info/batchTạo/Thực thi — batch

Thư mục tài khoản Zalo

MethodEndpointMô tả
GET/api/v1/account-foldersLấy — account folders
POST/api/v1/account-foldersTạo/Thực thi — account folders
POST/api/v1/account-folders/reorderTạo/Thực thi — reorder
POST/api/v1/account-folders/sync-by-ownerTạo/Thực thi — sync by owner

Thẻ CRM

MethodEndpointMô tả
GET/api/v1/crm-tagsLấy — crm tags
POST/api/v1/crm-tagsTạo/Thực thi — crm tags
DELETE/api/v1/crm-tags/:idXoá — theo ID
PATCH/api/v1/crm-tags/:idCập nhật — theo ID
POST/api/v1/crm-tags/reorderTạo/Thực thi — reorder

Tin nhắn

MethodEndpointMô tả
GET/api/v1/messages/:idLấy — theo ID

Tài khoản của tôi

MethodEndpointMô tả
POST/api/v1/me/avatarTạo/Thực thi — avatar
GET/api/v1/me/blocks/recentLấy — recent
POST/api/v1/me/change-passwordTạo/Thực thi — change password
GET/api/v1/me/internal-contactLấy — internal contact
GET/api/v1/me/onboardingLấy — onboarding
POST/api/v1/me/onboarding/dismissTạo/Thực thi — dismiss
POST/api/v1/me/onboarding/reopenTạo/Thực thi — reopen
POST/api/v1/me/onboarding/skip-stepTạo/Thực thi — skip step
GET/api/v1/me/preferencesLấy — preferences
DELETE/api/v1/me/preferences/:keyXoá — theo ID
GET/api/v1/me/preferences/:keyLấy — theo ID
PUT/api/v1/me/preferences/:keyCập nhật — theo ID
PATCH/api/v1/me/profileCập nhật — profile

Tài khoản Zalo (nâng cao)

MethodEndpointMô tả
POST/api/v1/zalo-accounts/:accountId/groups/:groupId/ensure-conversationTạo/Thực thi — ensure conversation
GET/api/v1/zalo-accounts/:id/accessLấy — access
GET/api/v1/zalo-accounts/:id/labelsLấy — labels
PATCH/api/v1/zalo-accounts/:id/labels/:labelIdCập nhật — theo ID
POST/api/v1/zalo-accounts/:id/labels/assign-threadTạo/Thực thi — assign thread
POST/api/v1/zalo-accounts/:id/labels/syncTạo/Thực thi — sync
POST/api/v1/zalo-accounts/:id/labels/touchTạo/Thực thi — touch
PATCH/api/v1/zalo-accounts/:id/privacy-modeCập nhật — privacy mode
POST/api/v1/zalo-accounts/:id/sync-contactsTạo/Thực thi — sync contacts
POST/api/v1/zalo-accounts/:id/sync-historyTạo/Thực thi — sync history
GET/api/v1/zalo-accounts/enrichedLấy — enriched
GET/api/v1/zalo-accounts/labels-overviewLấy — labels overview
GET/api/v1/zalo-accounts/sdk-limitsLấy — sdk limits
GET/api/v1/zalo-accounts/statsLấy — stats
GET/zalo-accountsLấy — zalo accounts

Tích hợp & Facebook

MethodEndpointMô tả
POST/api/v1/integrationsTạo/Thực thi — integrations
DELETE/api/v1/integrations/:idXoá — theo ID
PUT/api/v1/integrations/:idCập nhật — theo ID
GET/api/v1/integrations/:id/logsLấy — logs
POST/api/v1/integrations/:id/syncTạo/Thực thi — sync
DELETE/api/v1/integrations/facebook/:idXoá — theo ID
POST/api/v1/integrations/facebook/:id/rotate-verify-tokenTạo/Thực thi — rotate verify token
GET/api/v1/integrations/facebook/:id/verify-tokenLấy — verify token
POST/api/v1/integrations/facebook/connectTạo/Thực thi — connect
PATCH/api/v1/integrations/facebook/pull-configCập nhật — pull config
GET/api/v1/integrations/facebook/pull-statusLấy — pull status
GET/api/v1/integrations/facebook/statusLấy — status
POST/api/v1/integrations/facebook/system-user-tokenTạo/Thực thi — system user token

Tổ chức

MethodEndpointMô tả
GET/api/v1/organizationLấy — organization
GET/api/v1/organization/automation-settingsLấy — automation settings

Tự động hoá

MethodEndpointMô tả
DELETE/api/v1/automation/rules/:idXoá — theo ID
PUT/api/v1/automation/rules/:idCập nhật — theo ID
DELETE/api/v1/automation/templates/:idXoá — theo ID
PUT/api/v1/automation/templates/:idCập nhật — theo ID
POST/api/v1/automation/templates/:id/track-useTạo/Thực thi — track use
GET/api/v1/automation/templates/variablesLấy — variables

Webhook công khai

MethodEndpointMô tả
GET/api/v1/webhooks/fb-leadadsLấy — fb leadads
POST/api/v1/webhooks/fb-leadadsTạo/Thực thi — fb leadads

Zalo Bank Card

MethodEndpointMô tả
GET/api/v1/zalo-bankcardLấy — zalo bankcard

Zalo Sticker

MethodEndpointMô tả
GET/api/v1/zalo-sticker/:catId/:idLấy — theo ID

Zalo Sticker

MethodEndpointMô tả
GET/api/v1/zalo-sticker-listLấy — zalo sticker list

Đội

MethodEndpointMô tả
GET/api/v1/teams/:id/membersLấy — members

⚙️ Quản trị / Bảo trì (nội bộ — không khuyến nghị gọi từ tích hợp ngoài)

MethodEndpointMô tả
POST/api/v1/admin/engagement/backfillTạo/Thực thi — backfill
POST/api/v1/admin/engagement/recomputeTạo/Thực thi — recompute
POST/api/v1/admin/migrate-status-tableTạo/Thực thi — migrate status table
GET/api/v1/admin/privacy/auditLấy — audit
POST/api/v1/admin/privacy/reset-lock/:userIdTạo/Thực thi — theo ID
POST/api/v1/admin/rbac/create-test-usersTạo/Thực thi — create test users
POST/api/v1/admin/rbac/migrate-legacy-usersTạo/Thực thi — migrate legacy users
POST/api/v1/admin/rbac/seed-default-groupsTạo/Thực thi — seed default groups
POST/api/v1/admin/run-detectorTạo/Thực thi — run detector
POST/api/v1/contacts/backfill-friend-display-nameTạo/Thực thi — backfill friend display name
POST/api/v1/contacts/backfill-global-idTạo/Thực thi — backfill global id
POST/api/v1/contacts/backfill-missing-friendsTạo/Thực thi — backfill missing friends
POST/api/v1/contacts/backfill-orphan-friendsTạo/Thực thi — backfill orphan friends
POST/api/v1/lead-pool/admin/reset-quotaTạo/Thực thi — reset quota
GET/api/v1/lead-pool/admin/sale-noted-leadsLấy — sale noted leads
POST/api/v1/scoring/recompute-allTạo/Thực thi — recompute all
POST/api/v1/scoring/seed-defaultsTạo/Thực thi — seed defaults