List Resources

Read as Markdown Required plan: Growth

Description #

The resources (rooms and equipment) associated with an Enterprise Connect account can be listed via the resources endpoint.

This requires the Enterprise Connect authentication to have the service_account/resources/manage scope granted.

URL format #

{data_center_url}/v1/resources

Example request #

GET /v1/resources HTTP/1.1
Host: {data_center_url}
Authorization: Bearer {ACCESS_TOKEN}

Example Response #

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "resources": [
    {
      "email": "board-room-london@example.com",
      "name": "Board room (London)"
    },
    {
      "email": "board-room-madrid@example.com",
      "name": "Board room (Madrid)"
    },
    {
      "email": "3dprinter@example.com",
      "name": "3D Printer"
    },
    {
      "email": "vr-headset@example.com",
      "name": "Oculus Rift"
    }
  ]
}

Example request with details #

GET /v1/resources?include_details=capacity%20location HTTP/1.1
Host: {data_center_url}
Authorization: Bearer {ACCESS_TOKEN}

Example response with details #

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "resources": [
    {
      "email": "board-room-london@example.com",
      "name": "Board room (London)",
      "capacity": 14,
      "location": {
        "building_name": "London HQ",
        "floor_name": "4",
        "floor_section": "North wing",
        "address": {
          "lines": ["123 Example St"],
          "locality": "London",
          "region": "Greater London",
          "postal_code": "EC1A 1BB",
          "country": "GB"
        },
        "coordinates": {
          "lat": 51.5155,
          "long": -0.0922
        }
      }
    },
    {
      "email": "3dprinter@example.com",
      "name": "3D Printer"
    }
  ]
}

Request parameters #

data_center_url required

The URL for the data center you want to communicate with. Possible choices are:

  • api-au.cronofy.com - πŸ‡¦πŸ‡Ί Australia
  • api-ca.cronofy.com - πŸ‡¨πŸ‡¦ Canada
  • api-de.cronofy.com - πŸ‡©πŸ‡ͺ Germany
  • api-sg.cronofy.com - πŸ‡ΈπŸ‡¬ Singapore
  • api-uk.cronofy.com - πŸ‡¬πŸ‡§ United Kingdom
  • api.cronofy.com - πŸ‡ΊπŸ‡Έ United States

Find out more about Cronofy's data centers.

include_details optional  #

A space separated list of detail types to include in the response.

Supported values are:

  • capacity
  • location

Unknown values will result in a validation error.

When omitted, only the base resource fields are returned.

Response parameters #

resources.email  #

The email address for the resource.

May be used to obtain access tokens for the resource calendar via Requesting Delegated Access.

resources.name  #

The name defined for the resource by the Enterprise Connect account.

resources.generated_name optional  #

A generated display name for the resource.

Currently returned for Google Workspace resources as CalendarResource.generatedResourceName.

resources.provider_uid optional  #

The upstream provider’s unique identifier for the resource.

Currently returned for Google Workspace resources as CalendarResource.resourceId.

resources.capacity optional  #

An integer representing the seating capacity of the resource. Only present when include_details contains capacity and the upstream provider has a value configured for the resource.

resources.location optional  #

An object describing the physical location of the resource. Only present when include_details contains location and the upstream provider has location data for the resource. All sub-fields are optional and omitted when the provider does not supply them.

resources.location.building_name optional  #

The name of the building the resource is located in.

resources.location.floor_name optional  #

A descriptive label for the floor the resource is located on, for example “Ground”, “Mezzanine”, or “4”.

resources.location.floor_number optional  #

The numeric floor number. Only available from Microsoft Graph.

resources.location.floor_section optional  #

The section within the floor the resource is located in.

resources.location.address optional  #

An object describing the postal address of the resource’s building.

resources.location.address.lines optional  #

An array of String values representing the street address lines.

resources.location.address.locality optional  #

The city or town.

resources.location.address.region optional  #

The state, province, or administrative area.

resources.location.address.postal_code optional  #

The postal or ZIP code.

resources.location.address.country optional  #

The country. An ISO 3166-1 alpha-2 code where the provider supplies a structured country value, otherwise the provider’s own representation.

resources.location.coordinates optional  #

An object describing the geographic coordinates of the resource’s building.

resources.location.coordinates.lat optional  #

The latitude in decimal degrees.

resources.location.coordinates.long optional  #

The longitude in decimal degrees.

Provider mapping #

The detail fields are derived from the following upstream provider attributes. Availability depends on what the provider exposes and what the account administrator has configured.

Cronofy fieldGoogle WorkspaceMicrosoft Graph
provider_uidCalendarResource.resourceIdβ€”
emailCalendarResource.resourceEmailroom.emailAddress
nameCalendarResource.resourceNameroom.displayName
generated_nameCalendarResource.generatedResourceNameβ€”
capacityCalendarResource.capacityroom.capacity
location.building_nameBuilding.buildingNameroom.building
location.floor_nameCalendarResource.floorNameroom.floorLabel
location.floor_numberβ€”room.floorNumber
location.floor_sectionCalendarResource.floorSectionβ€”
location.addressBuilding.addressroom.address
location.coordinatesBuilding.coordinatesroom.geoCoordinates

For Google Workspace, address and coordinate data are properties of the building rather than the resource itself. A separate lookup is performed to resolve building details.