Retrieves information about non-visit activities (tasks) performed during a specified time range. The API supports optional filtering by task IDs and user ID.
Request
Endpoint
POST https://yourdomain.pharmahrm.com/crm-api/db-function/run
Authentication
Bearer Token required
Request Structure
Headers
| Key | Value |
|---|---|
| Authorization | Bearer <token>
|
| Content-Type | application/json |
Request Body
{
"function": "api_get_actions_json",
"format": "json",
"arguments": {
"date_from": "2025-08-04",
"date_till": "2025-08-04",
"ids": "1,2,3,4",
"user_id": 1
}
}| Name | Type | Required | Description |
|---|---|---|---|
| function | string | Yes | The name of the API method. Use "api_get_actions_json" for this call. |
| format | string | Yes | The response format - json |
| arguments | object | Yes | Parameters block. |
| date_from | string | Yes | Start date of the reporting period (visit start date). Format: YYYY-MM-DD
|
| date_till | string | Yes | End date of the reporting period (visit end date). Format: YYYY-MM-DD
|
| ids | string | Optional | Comma-separated list of non-visit activity (task) IDs from Proxima CRM. |
| user_id | integer | Optional | Proxima CRM user ID. Returns non-visit activities for a specific user. |
Successful Response
200 OK
Format
JSON
Example Response
[
{
"action_id": 2977,
"action_name": "Офісний день ~ ",
"action_state": "Виконана",
"action_user_id": 20,
"action_datefrom": "2025-08-04T06:00:00",
"action_datetill": "2025-08-04T06:30:00",
"action_tasktype": "Офісний день",
"action_gmt_offset": 10800
}
]| Field | Description |
|---|---|
| action_id | Task ID in the Proxima CRM database |
| action_name | Task name or title |
| action_datefrom | Scheduled task start date and time (UTC). Format: YYYY-MM-DD HH:MM:SS |
| action_datetill | Scheduled task end date and time (UTC). Format: YYYY-MM-DD HH:MM:SS |
| action_tasktype | Type of task (e.g., Meeting, Training, Admin work) |
| action_user_id | ID of the user assigned to the task in Proxima CRM |
| action_state | Task status (e.g., Planned, Completed, Cancelled) |
| action_gmt_offset | Offset from UTC in minutes |
Error Responses
40x/50x
{
"message": "string"
}| Code | Meaning |
|---|---|
| 400 | Bad request (e.g., missing required parameters) |
| 401 | Unauthorized (invalid or missing token) |
| 500 | Internal server error |