Introduction

B2B CRM Api Documentation

Authentication

HTTP: Bearer Auth

Default JWT Authorization

Security Scheme Typehttp
HTTP Authorization SchemeBearer
Bearer formatJWT

API Reference

Below is a categorized list of all available API endpoints with their HTTP methods and routes.

📂 API Keys

MethodPathDescription
POST/api-keysCreate a new API key
GET/api-keys/{id}Get an API key by ID
PATCH/api-keys/{id}/regenerateRegenerate an API key
PATCH/api-keys/{id}/soft-deleteSoft delete an API key
PATCH/api-keys/{id}/statusUpdate the status of an API key

📂 Company

MethodPathDescription
POST/companyCreate a new company
DELETE/companyDelete a company
GET/company/account-owner/{accountOwnerId}Get companies by account owner ID
POST/company/allGet all companies
GET/company/check-permissionsCheck import permissions
GET/company/columnsGet company entity columns
POST/company/create-bulkCreate bulk companies
DELETE/company/delete/{id}Delete a company
GET/company/exportGenerate Excel file
GET/company/get-name-and-idGet company name and ID
POST/company/importImport companies
PATCH/company/restoreRestore companies
GET/company/simpleGet simple companies
DELETE/company/softSoft delete companies
PATCH/company/update/{id}Update a company
POST/company/upload-excelUpload Excel file
GET/company/{id}Get a company by ID

📂 Lead

MethodPathDescription
POST/leadCreate a new lead
DELETE/leadDelete leads
POST/lead/allGet all leads
GET/lead/check-permissionsCheck import permissions
GET/lead/columnsGet lead entity columns
DELETE/lead/delete/{id}Delete a lead
GET/lead/exportGenerate Excel file
GET/lead/get-name-and-idGet lead name and ID
POST/lead/importImport leads
GET/lead/lead/{id}Get a lead by ID
POST/lead/leads-bulkCreate bulk leads
POST/lead/persons-to-leadsConvert persons to leads
PATCH/lead/restoreRestore leads
DELETE/lead/softSoft delete leads
PUT/lead/{id}Update a lead
PATCH/lead/{id}/update-with-personUpdate a lead with a person

📂 Person

MethodPathDescription
POST/personCreate a new person
DELETE/personDelete persons
POST/person/allGet all persons
GET/person/check-permissionsCheck import permissions
GET/person/columnsGet person entity columns
POST/person/create-bulkCreate bulk persons
DELETE/person/delete/{id}Delete a person
GET/person/exportGenerate Excel file
GET/person/get-name-and-idGet person name and ID
POST/person/importImport persons
GET/person/person/{id}Get a person by ID
PATCH/person/restoreRestore persons
DELETE/person/softSoft delete persons
PATCH/person/update/{id}Update a person
POST/person/upload-excelUpload Excel file

📂 Task

MethodPathDescription
POST/taskCreate a new task
GET/task/allGet all tasks
POST/task/by-assigneeGet tasks by assignee
POST/task/get-tasks-by-targetGet task by target
POST/task/softSoft delete tasks
POST/task/targetCreate a new task target
GET/task/{id}Get a task by ID
PATCH/task/{id}Update a task
DELETE/task/{id}Delete a task

📂 Note

MethodPathDescription
POST/noteCreate a new note
GET/note/allGet all notes
POST/note/get-notes-by-targetGet note by target
POST/note/soft-deleteSoft delete notes
POST/note/targetCreate a new note target
GET/note/{id}Get a note by ID
PATCH/note/{id}Update a note
DELETE/note/{id}Delete a note

📂 Workspace Member

MethodPathDescription
GET/workspace-memberGet all workspace members
GET/workspace-member/members/{workspaceId}Get workspace members by workspace ID
GET/workspace-member/{userId}Get a workspace member by user ID
PATCH/workspace-member/{userId}Update a workspace member
DELETE/workspace-member/{userId}Delete a workspace member