Schedule Session
This API allows you to schedule a remote support session at a convenient time for both the technician and the customer.
Required OAuth Scope
ZohoLens.sessionapi.CREATE
Endpoint
POST /api/v2/lens_session/schedule
Parameters
Parameter | Type | Description |
mode | string | Required. |
title | string | Required. |
notes | string | Optional. |
customer_email | string | Required. |
schedule_time | long | Required. |
schedule_upto | long | Required. |
utc_offset | string | Required. |
time_zone | string | Required. |
reminder | int |
Required. |
department_id | long | Required. |
Notes:
Ensure that the schedule_time and schedule_upto are provided in milliseconds since the Unix epoch.
The utc_offset should reflect the customer's local time zone offset from UTC.
The reminder parameter specifies how many minutes before the session the reminder should be sent.
Sample Request
Copiedcurl --location --request POST 'https://lens.zoho.com/api/v2/lens_session/schedule' \
--header 'Authorization: Zoho-oauthtoken {access_token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"mode": "SCHEDULE",
"title": "Support Session",
"notes": "Assisting with Hardware installation",
"customer_email": "customer@example.com",
"schedule_time": 1683038400000,
"schedule_upto": 1683042000000,
"utc_offset": "+05:30",
"time_zone": "Asia/Kolkata",
"reminder": 15,
"department_id": 123456789
}'
Sample Response
Copied{
"representation": {
"statue": "ok",
"schedule_id": "215*****************",
"technician_url": "https://lens.zoho.com/lens-schedule?digest=4a0bc***********************&og=RUF********************&role=V&schedule_id=215****************&x-com-zoho-lens-orgid={zsoid}",
"customer_url": "https://lens.zoho.com/lens-schedule?digest=4a0bc*****************&og=RUF***********************&role=A&schedule_id=215*******************&x-com-zoho-lens-orgid={zsoid}"
},
"resource_type":"/api/v2/lens_session/schedule"
}