Home//
REST API Reference
/- Retrieve teammate office hours
Identify an admin
Set an admin to away
List all activity logs
Search activity logs
List all activity log event types
List all admins
List teammate office hours
Update teammate office hours in bulk
Update teammate office hours
Find an admin by email
Retrieve an admin
Remove an admin
Activity Log Event Types
Admin
Teammate Office Hours
Retrieve teammate office...
You can retrieve a teammate's own office hours schedule assignment. An office_hours_schedule_id of null means the teammate has no schedule of their own and inherits office hours instead. This endpoint does not return the inherited schedule.
The teammate must belong to your workspace and be accessible to you. An unknown, malformed, or other-workspace teammate id returns a 422 error, not a 404.
Requires either the read_all or read_write_office_hours OAuth scope and permission to access reporting. Set Intercom-Version: Preview.
Security
bearerAuth
Intercom-Versionstring(intercom_version_preview)
Preview Intercom API version. Used for closed beta endpoints or other features under managed availability.
Default:"Preview"
Value:"Preview"
Example:Preview
- The production API serverhttps://api.intercom.io/admins/{id}/office_hours
- The european API serverhttps://api.eu.intercom.io/admins/{id}/office_hours
- The australian API serverhttps://api.au.intercom.io/admins/{id}/office_hours
curl -i -X GET \
https://api.intercom.io/admins/456/office_hours \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Intercom-Version: Preview'Teammate office hours assignment
The type of the object, always admin_office_hours.
Value:"admin_office_hours"
Example:"admin_office_hours"
Response
- Assigned schedule
- Inherited office hours
{ "type": "admin_office_hours", "admin_id": "456", "office_hours_schedule_id": "123" }