Skip to main content
GET
/
api
/
spaces
/
coworkergooglecalendars
/
{id}
Get one CoworkerGoogleCalendar
curl --request GET \
  --url https://spaces.nexudus.com/api/spaces/coworkergooglecalendars/{id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "ResourceId": 123,
  "CoworkerId": 123,
  "CoworkerFullName": "<string>",
  "Name": "<string>",
  "SubscriptionId": "<string>",
  "CalendarId": "<string>",
  "SubscriptionExpireDate": "<string>",
  "WatchResourceId": "<string>",
  "EventSyncToken": "<string>",
  "Id": 123,
  "UniqueId": "<string>",
  "CreatedOn": "<string>",
  "UpdatedOn": "<string>",
  "UpdatedBy": "<string>",
  "IsNew": true,
  "SystemId": "<string>"
}
A CoworkerGoogleCalendar record represents a Google Calendar account connected to a customer’s Nexudus account. These records are created automatically when a customer connects their own Google Calendar from the Members Portal or the Nexudus app. Once connected, customers can book resources at a location directly from their Google Calendar. Each record stores the Google push-notification subscription details (SubscriptionId, WatchResourceId, SubscriptionExpireDate) used to keep the calendar in sync, as well as an EventSyncToken for incremental Google Calendar API event queries. For more information, see the Google Calendar (Customer) help article.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the CoworkerGoogleCalendar-Read role.

Path Parameters

id
integer
required
The Id of the CoworkerGoogleCalendar record to retrieve.

Code Examples

curl -X GET \
  "https://spaces.nexudus.com/api/spaces/coworkergooglecalendars/87654321" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

200

ResourceId
integer
ID of the Nexudus resource (room or desk) used as the Google Calendar push-notification watch target for this connection.
CoworkerId
integer
ID of the customer who connected their Google Calendar.
CoworkerFullName
string
Full name of the customer who connected their Google Calendar.
Name
string
Display name of the connected Google Calendar.
SubscriptionId
string
Google push-notification channel ID used to receive calendar change notifications.
CalendarId
string
Google Calendar ID of the customer’s connected calendar (e.g. user@gmail.com or a secondary calendar ID).
SubscriptionExpireDate
string
Date and time when the Google push-notification channel subscription expires and must be renewed.
WatchResourceId
string
Google-assigned resource ID for the active push-notification watch channel.
EventSyncToken
string
Incremental sync token returned by the Google Calendar API, used to fetch only events changed since the last sync.
Id
integer
Unique record identifier.
UniqueId
string
UUID of the record.
CreatedOn
string
Date and time the record was created (ISO 8601).
UpdatedOn
string
Date and time the record was last updated (ISO 8601).
UpdatedBy
string
Email of the user who last updated this record.
IsNew
boolean
Whether the record was recently created.
SystemId
string
External system identifier.
Example Response
{
  "ResourceId": 0,
  "CoworkerId": null,
  "CoworkerFullName": null,
  "Name": "",
  "SubscriptionId": "",
  "CalendarId": "",
  "SubscriptionExpireDate": "2025-01-15T10:30:00Z",
  "WatchResourceId": "",
  "EventSyncToken": null,
  "Id": 87654321,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "CreatedOn": "2025-01-10T08:00:00Z",
  "UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "UpdatedBy": "admin@example.com",
  "IsNew": false,
  "SystemId": null,
  "ToStringText": "CoworkerGoogleCalendar Example",
  "LocalizationDetails": null,
  "CustomFields": null
}