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.

room_list Optional Alpha  #

A single room list email address to scope the response to the rooms within that named room list.

Currently only supported for Office 365 Enterprise Connect accounts connected via Microsoft Graph.

Must be a single email address.

When omitted, or given with no value, all resources for the Enterprise Connect account 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.