POST
Workdiary.Get
Return one team member Work diary attendance rows for a month or one day (dashboard table: DATE, ENTRANCE, EXIT, TOTAL HOURS, Final Total, EXTRA HOURS, NOTE, FILES), plus month calendar day states (worked / missing / holiday / day_off / today / future). Opens when you click a name on Workdiary.List. Alias: Workdiary.Entries.List.
Permissions
- User must be logged in with a valid bearer token.
- The user must be from the same company domain as the request Host (call the API on that account subdomain or allowed custom domain). A token from another company returns success=0, error user_not_in_company.
- Returned or changed records are limited by the user permissions, team access, folder access, and account settings.
Action
- Returns Workdiary information as JSON for the UI.
Push Service
No push is sent because this function only reads data or returns helper information.
Automation
No automation is run for this function.
Special Instructions
- On a company subdomain (e.g. https://{user_domain}.bull36.com) the user must match that Host — Login and protected APIs reject another company with success=0, error user_not_in_company. On a main brand host (bull36.com, biz1.co.il, mastrocrm.com, …) the company domain gate is skipped.
- This is the member attendance LIST API (not Workdiary.List which is the monthly team summary table).
- sick / sick_day filter: optional. 1 = only sick-day rows, 2 = only vacation-day rows, 0 = only normal (non-sick, non-vacation) rows. Omit for all rows (same as dashboard).
- Each data[] row includes sick_day (0|1|2), sick_day_type (normal|sick|vacation), entrance, exit, total_hours, final_total, extra_hours, note, files, approve.
- Vacation rows (sick_day=2): entrance and exit are empty; note defaults to "Vacation Day" when blank; total_hours shows 0:00.
- this_day=all_data for full month, or day number 01-31 for one day.
Required Parameters
No body parameters are required for this function.
Optional Parameters
| Name | Type | Sample | What it gives |
|---|---|---|---|
sm_datepost | string | 2026-08 | Month YYYY-MM or "August 2026". |
this_daypost | string | all_data | all_data for full month, or day number 01-31. |
sickpost | int | 1 | Filter: 1 = sick only, 2 = vacation only, 0 = normal only. Alias: sick_day. Omit = all. |
sick_daypost | int | 2 | Alias for sick. |
Authentication
Send the bearer token returned by Login in the request header. The user must be from the same company domain as this Host — a token from another company is rejected (user_not_in_company).
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/Workdiary.Get",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"sm_date": "2026-09",
"this_day": "all_data",
"sick": "2"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/Workdiary.Get",
"url_domain": "https:\/\/{domain}\/app\/Workdiary.Get"
}Endpoint
POST /app/Workdiary.Get
POST https://{user}.bull36.com/app/Workdiary.Get
POST https://{domain}/app/Workdiary.GetSample Output
{
"success": 1,
"user_id": 14,
"month": "2026-09",
"count": 3,
"data": [
{
"date": "01-09-2026",
"entrance": "",
"exit": "",
"total_hours": "0:00",
"note": "Vacation Day",
"sick_day": 2,
"sick_day_type": "vacation"
},
{
"date": "02-09-2026",
"entrance": "",
"exit": "",
"total_hours": "0:00",
"note": "Vacation Day",
"sick_day": 2,
"sick_day_type": "vacation"
},
{
"date": "05-08-2026",
"entrance": "",
"exit": "",
"total_hours": "0:00",
"note": "Sick day",
"sick_day": 1,
"sick_day_type": "sick"
}
]
}JavaScript Example
const token = 'YOUR TOKEN';
// Vacation days only
const body = new URLSearchParams({ user_id: '14', sm_date: '2026-09', this_day: 'all_data', sick: '2' });
const res = await fetch('/app/Workdiary.Get', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());Error Example
{
"success": 0,
"message": "Team member not found"
}