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

22. Appendix A — Complete Endpoint Catalog (Internal, JWT)

Complete reference of all internal endpoints (JWT auth: Authorization: Bearer). Endpoints with full request/response examples are in sections 1–20 above; the tables below list every remaining endpoint grouped by module.

AI & Assistant

MethodEndpointDescription
GET/api/v1/ai/assistant-configGet — assistant config
GET/api/v1/ai/configGet — config
PUT/api/v1/ai/configUpdate — config
POST/api/v1/ai/format-richCreate/Run — format rich
GET/api/v1/ai/providersGet — providers
POST/api/v1/ai/sales-handoff-messageCreate/Run — sales handoff message
POST/api/v1/ai/sentiment/:idCreate/Run — by ID
POST/api/v1/ai/suggestCreate/Run — suggest
POST/api/v1/ai/summarize/:idCreate/Run — by ID
GET/api/v1/ai/usageGet — usage

Appointments

MethodEndpointDescription
DELETE/api/v1/appointments/:idDelete — by ID
GET/api/v1/appointments/:idGet — by ID
PUT/api/v1/appointments/:idUpdate — by ID
PATCH/api/v1/appointments/:id/statusUpdate — status
GET/api/v1/appointments/todayGet — today
GET/api/v1/appointments/upcomingGet — upcoming

Audit Logs

MethodEndpointDescription
GET/api/v1/audit-logsGet — audit logs

Automation

MethodEndpointDescription
DELETE/api/v1/automation/rules/:idDelete — by ID
PUT/api/v1/automation/rules/:idUpdate — by ID
DELETE/api/v1/automation/templates/:idDelete — by ID
PUT/api/v1/automation/templates/:idUpdate — by ID
POST/api/v1/automation/templates/:id/track-useCreate/Run — track use
GET/api/v1/automation/templates/variablesGet — variables

Chat

MethodEndpointDescription
POST/api/v1/chat/send-handoffCreate/Run — send handoff

Contacts & CRM

MethodEndpointDescription
GET/api/v1/contacts/:contactId/notesGet — notes
GET/api/v1/contacts/:id/appointmentsGet — appointments
GET/api/v1/contacts/:id/cockpitGet — cockpit
GET/api/v1/contacts/:id/engagement-timelineGet — engagement timeline
GET/api/v1/contacts/:id/friendshipsGet — friendships
POST/api/v1/contacts/:id/link-parentCreate/Run — link parent
POST/api/v1/contacts/:id/merge-intoCreate/Run — merge into
PUT/api/v1/contacts/:id/tagsUpdate — tags
GET/api/v1/contacts/:id/teammatesGet — teammates
POST/api/v1/contacts/:id/unlink-parentCreate/Run — unlink parent
POST/api/v1/contacts/:id/virtual-conversationCreate/Run — virtual conversation
GET/api/v1/contacts/by-zalo-uid/:uidGet — by ID
GET/api/v1/contacts/duplicatesGet — duplicates
POST/api/v1/contacts/duplicates/:groupId/dismissCreate/Run — dismiss
POST/api/v1/contacts/duplicates/:groupId/mergeCreate/Run — merge
POST/api/v1/contacts/intelligence/recomputeCreate/Run — recompute
GET/api/v1/contacts/parent-candidatesGet — parent candidates
POST/api/v1/contacts/parent-candidates/:id/acceptCreate/Run — accept
POST/api/v1/contacts/parent-candidates/:id/dismissCreate/Run — dismiss
GET/api/v1/contacts/pipelineGet — pipeline
POST/api/v1/contacts/quick-createCreate/Run — quick create
POST/api/v1/contacts/resolve-by-keysCreate/Run — resolve by keys
GET/api/v1/contacts/statsGet — stats

Conversations & Messages

MethodEndpointDescription
DELETE/api/v1/conversations/:idDelete — by ID
POST/api/v1/conversations/:id/cardCreate/Run — card
POST/api/v1/conversations/:id/forwardCreate/Run — forward
POST/api/v1/conversations/:id/linkCreate/Run — link
POST/api/v1/conversations/:id/mark-readCreate/Run — mark read
GET/api/v1/conversations/:id/messagesGet — messages
DELETE/api/v1/conversations/:id/messages/:msgIdDelete — by ID
POST/api/v1/conversations/:id/messages/:msgId/editCreate/Run — edit
POST/api/v1/conversations/:id/messages/:msgId/undoCreate/Run — undo
POST/api/v1/conversations/:id/pinCreate/Run — pin
DELETE/api/v1/conversations/:id/reactionsDelete — reactions
POST/api/v1/conversations/:id/reactionsCreate/Run — reactions
POST/api/v1/conversations/:id/restoreCreate/Run — restore
POST/api/v1/conversations/:id/send-blockCreate/Run — send block
POST/api/v1/conversations/:id/stickerCreate/Run — sticker
PATCH/api/v1/conversations/:id/tabUpdate — tab
POST/api/v1/conversations/:id/touch-profileCreate/Run — touch profile
POST/api/v1/conversations/:id/typingCreate/Run — typing
POST/api/v1/conversations/:id/unpinCreate/Run — unpin
POST/api/v1/conversations/:id/upload-imageCreate/Run — upload image
POST/api/v1/conversations/ensure-by-uidCreate/Run — ensure by uid
GET/api/v1/conversations/event-countsGet — event counts
GET/api/v1/conversations/sidebar-tagsGet — sidebar tags

CRM Tag Groups

MethodEndpointDescription
GET/api/v1/crm-tag-groupsGet — crm tag groups
POST/api/v1/crm-tag-groupsCreate/Run — crm tag groups
DELETE/api/v1/crm-tag-groups/:idDelete — by ID
PATCH/api/v1/crm-tag-groups/:idUpdate — by ID

CRM Tags

MethodEndpointDescription
GET/api/v1/crm-tagsGet — crm tags
POST/api/v1/crm-tagsCreate/Run — crm tags
DELETE/api/v1/crm-tags/:idDelete — by ID
PATCH/api/v1/crm-tags/:idUpdate — by ID
POST/api/v1/crm-tags/reorderCreate/Run — reorder

Customers (timeline/log)

MethodEndpointDescription
GET/api/v1/customers/:id/activity-logGet — activity log
GET/api/v1/customers/:id/timelineGet — timeline

Dashboard

MethodEndpointDescription
GET/api/v1/dashboard/action-hub/meGet — me
GET/api/v1/dashboard/action-hub/picker/deptsGet — depts
GET/api/v1/dashboard/action-hub/picker/usersGet — users
GET/api/v1/dashboard/action-hub/systemGet — system
GET/api/v1/dashboard/action-hub/teamGet — team
GET/api/v1/dashboard/appointmentsGet — appointments
GET/api/v1/dashboard/kpiGet — kpi
GET/api/v1/dashboard/message-volumeGet — message volume
GET/api/v1/dashboard/pipelineGet — pipeline
GET/api/v1/dashboard/sourcesGet — sources

Departments (RBAC)

MethodEndpointDescription
DELETE/api/v1/departments/:idDelete — by ID
PATCH/api/v1/departments/:idUpdate — by ID
POST/api/v1/departments/:id/membersCreate/Run — members
GET/api/v1/departments/:id/members-treeGet — members tree
DELETE/api/v1/departments/:id/members/:userIdDelete — by ID

Filter Presets

MethodEndpointDescription
GET/api/v1/filter-presetsGet — filter presets
POST/api/v1/filter-presetsCreate/Run — filter presets

Friends (DB)

MethodEndpointDescription
GET/api/v1/friends-db/all-nicksGet — all nicks

Integrations & Facebook

MethodEndpointDescription
POST/api/v1/integrationsCreate/Run — integrations
DELETE/api/v1/integrations/:idDelete — by ID
PUT/api/v1/integrations/:idUpdate — by ID
GET/api/v1/integrations/:id/logsGet — logs
POST/api/v1/integrations/:id/syncCreate/Run — sync
DELETE/api/v1/integrations/facebook/:idDelete — by ID
POST/api/v1/integrations/facebook/:id/rotate-verify-tokenCreate/Run — rotate verify token
GET/api/v1/integrations/facebook/:id/verify-tokenGet — verify token
POST/api/v1/integrations/facebook/connectCreate/Run — connect
PATCH/api/v1/integrations/facebook/pull-configUpdate — pull config
GET/api/v1/integrations/facebook/pull-statusGet — pull status
GET/api/v1/integrations/facebook/statusGet — status
POST/api/v1/integrations/facebook/system-user-tokenCreate/Run — system user token

Lead Pool

MethodEndpointDescription
POST/api/v1/lead-pool/:id/find-zaloCreate/Run — find zalo
POST/api/v1/lead-pool/:id/noteCreate/Run — note
POST/api/v1/lead-pool/:id/open-chatCreate/Run — open chat
GET/api/v1/lead-pool/:id/payloadGet — payload
POST/api/v1/lead-pool/:id/returnCreate/Run — return
GET/api/v1/lead-pool/available-nicksGet — available nicks
GET/api/v1/lead-pool/eligibilityGet — eligibility
GET/api/v1/lead-pool/my-historyGet — my history
POST/api/v1/lead-pool/requestCreate/Run — request
GET/api/v1/lead-pool/statsGet — stats

Lead Scoring

MethodEndpointDescription
PUT/api/v1/scoring/configUpdate — config
GET/api/v1/scoring/nba-templatesGet — nba templates
GET/api/v1/scoring/stage-transitionsGet — stage transitions
GET/api/v1/scoring/stuck-thresholdsGet — stuck thresholds

Messages

MethodEndpointDescription
GET/api/v1/messages/:idGet — by ID

My Account

MethodEndpointDescription
POST/api/v1/me/avatarCreate/Run — avatar
GET/api/v1/me/blocks/recentGet — recent
POST/api/v1/me/change-passwordCreate/Run — change password
GET/api/v1/me/internal-contactGet — internal contact
GET/api/v1/me/onboardingGet — onboarding
POST/api/v1/me/onboarding/dismissCreate/Run — dismiss
POST/api/v1/me/onboarding/reopenCreate/Run — reopen
POST/api/v1/me/onboarding/skip-stepCreate/Run — skip step
GET/api/v1/me/preferencesGet — preferences
DELETE/api/v1/me/preferences/:keyDelete — by ID
GET/api/v1/me/preferences/:keyGet — by ID
PUT/api/v1/me/preferences/:keyUpdate — by ID
PATCH/api/v1/me/profileUpdate — profile

Notes

MethodEndpointDescription
DELETE/api/v1/notes/:idDelete — by ID
PATCH/api/v1/notes/:idUpdate — by ID
POST/api/v1/notes/:id/ai-parseCreate/Run — ai parse
POST/api/v1/notes/:id/link-appointmentCreate/Run — link appointment
POST/api/v1/notes/:id/reactionsCreate/Run — reactions

Organization

MethodEndpointDescription
GET/api/v1/organizationGet — organization
GET/api/v1/organization/automation-settingsGet — automation settings

Permission Groups (RBAC)

MethodEndpointDescription
GET/api/v1/permission-groupsGet — permission groups
POST/api/v1/permission-groupsCreate/Run — permission groups
DELETE/api/v1/permission-groups/:idDelete — by ID
GET/api/v1/permission-groups/:idGet — by ID
PATCH/api/v1/permission-groups/:idUpdate — by ID
GET/api/v1/permission-groups/metaGet — meta

Privacy & PIN/OTP

MethodEndpointDescription
POST/api/v1/privacy/lockCreate/Run — lock
GET/api/v1/privacy/my-nicksGet — my nicks
POST/api/v1/privacy/otp/requestCreate/Run — request
GET/api/v1/privacy/otp/statusGet — status
POST/api/v1/privacy/otp/verifyCreate/Run — verify
GET/api/v1/privacy/statusGet — status

Public Org Branding

MethodEndpointDescription
GET/api/v1/public/org-brandingGet — org branding

Public Webhooks

MethodEndpointDescription
GET/api/v1/webhooks/fb-leadadsGet — fb leadads
POST/api/v1/webhooks/fb-leadadsCreate/Run — fb leadads

RBAC Users

MethodEndpointDescription
GET/api/v1/rbac/usersGet — users
PATCH/api/v1/rbac/users/:id/permission-groupUpdate — permission group

Reports

MethodEndpointDescription
GET/api/v1/reports/appointmentsGet — appointments
GET/api/v1/reports/contactsGet — contacts
GET/api/v1/reports/exportGet — export
GET/api/v1/reports/messagesGet — messages

Saved Reports

MethodEndpointDescription
GET/api/v1/saved-reportsGet — saved reports
POST/api/v1/saved-reportsCreate/Run — saved reports
DELETE/api/v1/saved-reports/:idDelete — by ID
GET/api/v1/saved-reports/:idGet — by ID
PUT/api/v1/saved-reports/:idUpdate — by ID
POST/api/v1/saved-reports/:id/runCreate/Run — run

Settings (API key/Statuses/Webhook)

MethodEndpointDescription
GET/api/v1/settings/api-keyGet — api key
POST/api/v1/settings/api-key/generateCreate/Run — generate
GET/api/v1/settings/statusesGet — statuses
POST/api/v1/settings/statusesCreate/Run — statuses
DELETE/api/v1/settings/statuses/:idDelete — by ID
PUT/api/v1/settings/statuses/:idUpdate — by ID
POST/api/v1/settings/statuses/reorderCreate/Run — reorder
GET/api/v1/settings/webhookGet — webhook
PUT/api/v1/settings/webhookUpdate — webhook
POST/api/v1/settings/webhook/testCreate/Run — test

Stuck Leads

MethodEndpointDescription
GET/api/v1/leads/stuckGet — stuck
POST/api/v1/leads/stuck/scanCreate/Run — scan

Teams

MethodEndpointDescription
GET/api/v1/teams/:id/membersGet — members

Timeline

MethodEndpointDescription
GET/api/v1/timeline/exportGet — export

Users

MethodEndpointDescription
POST/api/v1/users/:id/handoffCreate/Run — handoff
PATCH/api/v1/users/:id/max-privacy-nicksUpdate — max privacy nicks
PUT/api/v1/users/:id/passwordUpdate — password
POST/api/v1/users/bulk-assignCreate/Run — bulk assign

Zalo Account Folders

MethodEndpointDescription
GET/api/v1/account-foldersGet — account folders
POST/api/v1/account-foldersCreate/Run — account folders
POST/api/v1/account-folders/reorderCreate/Run — reorder
POST/api/v1/account-folders/sync-by-ownerCreate/Run — sync by owner

Zalo Accounts (advanced)

MethodEndpointDescription
POST/api/v1/zalo-accounts/:accountId/groups/:groupId/ensure-conversationCreate/Run — ensure conversation
GET/api/v1/zalo-accounts/:id/accessGet — access
GET/api/v1/zalo-accounts/:id/labelsGet — labels
PATCH/api/v1/zalo-accounts/:id/labels/:labelIdUpdate — by ID
POST/api/v1/zalo-accounts/:id/labels/assign-threadCreate/Run — assign thread
POST/api/v1/zalo-accounts/:id/labels/syncCreate/Run — sync
POST/api/v1/zalo-accounts/:id/labels/touchCreate/Run — touch
PATCH/api/v1/zalo-accounts/:id/privacy-modeUpdate — privacy mode
POST/api/v1/zalo-accounts/:id/sync-contactsCreate/Run — sync contacts
POST/api/v1/zalo-accounts/:id/sync-historyCreate/Run — sync history
GET/api/v1/zalo-accounts/enrichedGet — enriched
GET/api/v1/zalo-accounts/labels-overviewGet — labels overview
GET/api/v1/zalo-accounts/sdk-limitsGet — sdk limits
GET/api/v1/zalo-accounts/statsGet — stats
GET/zalo-accountsGet — zalo accounts

Zalo Bank Card

MethodEndpointDescription
GET/api/v1/zalo-bankcardGet — zalo bankcard

Zalo Friends

MethodEndpointDescription
POST/api/v1/friends/:friendId/zalo-labelCreate/Run — zalo label
PATCH/api/v1/friends/:idUpdate — by ID
POST/api/v1/friends/:id/ensure-conversationCreate/Run — ensure conversation
POST/api/v1/friends/:id/promote-to-parentCreate/Run — promote to parent

Zalo Sticker

MethodEndpointDescription
GET/api/v1/zalo-sticker/:catId/:idGet — by ID

Zalo Sticker

MethodEndpointDescription
GET/api/v1/zalo-sticker-listGet — zalo sticker list

Zalo User Info

MethodEndpointDescription
GET/api/v1/zalo-user-info/:uidGet — by ID
POST/api/v1/zalo-user-info/batchCreate/Run — batch
MethodEndpointDescription
POST/api/v1/admin/engagement/backfillCreate/Run — backfill
POST/api/v1/admin/engagement/recomputeCreate/Run — recompute
POST/api/v1/admin/migrate-status-tableCreate/Run — migrate status table
GET/api/v1/admin/privacy/auditGet — audit
POST/api/v1/admin/privacy/reset-lock/:userIdCreate/Run — by ID
POST/api/v1/admin/rbac/create-test-usersCreate/Run — create test users
POST/api/v1/admin/rbac/migrate-legacy-usersCreate/Run — migrate legacy users
POST/api/v1/admin/rbac/seed-default-groupsCreate/Run — seed default groups
POST/api/v1/admin/run-detectorCreate/Run — run detector
POST/api/v1/contacts/backfill-friend-display-nameCreate/Run — backfill friend display name
POST/api/v1/contacts/backfill-global-idCreate/Run — backfill global id
POST/api/v1/contacts/backfill-missing-friendsCreate/Run — backfill missing friends
POST/api/v1/contacts/backfill-orphan-friendsCreate/Run — backfill orphan friends
POST/api/v1/lead-pool/admin/reset-quotaCreate/Run — reset quota
GET/api/v1/lead-pool/admin/sale-noted-leadsGet — sale noted leads
POST/api/v1/scoring/recompute-allCreate/Run — recompute all
POST/api/v1/scoring/seed-defaultsCreate/Run — seed defaults