Skip to main content

Call logs

Base URL https://api.leadx.in/api/key/protected. Every request needs an apikey header — see Authentication.

6 endpoints.

GET /calllog

Get all call logs.

Auth apikey

:::note Used by the web app pages/Calllogs.jsx :::

Query parameters — the standard list contract: p, n, sortBy, sortOrder, searchBy, searchValue, filters, advancedFilters, ids, nids. See Pagination and Filtering.

Responsedata is an array of CallLog objects, alongside the pagination fields described in Response format. updatedBy, createdBy are populated, so they arrive as nested objects rather than ids.

POST /calllog

Create call log.

Auth apikey · Success 200

:::note Used by the web app pages/Calllogs.jsx :::

Responsedata is one CallLog object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

DELETE /calllog

Delete call log.

Auth apikey · Success 200

:::note Used by the web app pages/Calllogs.jsx :::

Request body — the standard bulk selection: ids, nids, selectAll. Query-string filters apply when selectAll is set.

Responsedata is null; the outcome is the status code and message.

GET /calllog/:id

Get call log.

Auth apikey

Path parameters

Name
idRequired

Responsedata is one CallLog object. lead is populated, so it arrives as nested objects rather than ids.

Errors CallLogNotFound_400

PUT /calllog/:id

Update call log.

Auth apikey · Success 200

Path parameters

Name
idRequired

Responsedata is one CallLog object.

Errors CallLogNotFound_400

POST /calllog/bulk

Bulk create call log.

Auth apikey · Success 200

Responsedata is one CallLog object. (Resource deduced from the collections this handler reads, not read off an explicit return.)