Base URL
https://{tenant}.logzi.com/api/crm_source/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0. A CRM source indicates the origin of a lead (e.g. website, phone, referral). It has a customizable name and description.
/api/crm_source/get
Retrieve a single CRM source by identifier.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the CRM source |
Example request
GET /api/crm_source/get?id=1
X-API-KEY: {your_api_key}
/api/crm_source/list
List of all CRM sources.
No parameters required — returns all available sources.
Example request
GET /api/crm_source/list
X-API-KEY: {your_api_key}
/api/crm_source/save
Create or update a CRM source. For a new source use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new source, >0 = update | |
source_name | string | Name of the source (e.g. "Website") | |
source_desc | string | Description of the source |
Example request
POST /api/crm_source/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"source_name": "Weboldal",
"source_desc": "Kapcsolatfelvételi űrlapon keresztül"
}
}
/api/crm_source/delete
Delete a CRM source by identifier.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the source to delete |
Example request
POST /api/crm_source/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!