---
updatedAt: 2026-08-06T21:58:37.000Z
agentTools:
  projectIndex: https://vergesense.readme.io/llms.txt
---

# /spaces/thresholds/crossings

Fetch all threshold crossings for spaces on a given day.
Response conforms to the JSON API spec https://jsonapi.org/.
Responses are limited to `1,000` threshold crossings after which pagination will take place.

## Example Requests

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Description
      </th>

      <th style={{ textAlign: "left" }}>
        Query
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Query for 1 day of data.
      </td>

      <td style={{ textAlign: "left" }}>
        `https://api.vergesense.com/spaces/thresholds/crossings?date=2022-08-02`
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Query for 1 hour of data.
      </td>

      <td style={{ textAlign: "left" }}>
        `https://api.vergesense.com/spaces/thresholds/crossings?filter[timestamp][gte]=2022-08-02T16:00:00Z&filter[timestamp][lt]=2022-08-02T17:00:00Z`
      </td>
    </tr>
  </tbody>
</Table>

## Response

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Description
      </th>

      <th>
        Data Type
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `data`
      </td>

      <td>
        Array of space threshold crossings.
      </td>

      <td>
        Array of Space Threshold Crossing Data Models (see below)
      </td>
    </tr>

    <tr>
      <td>
        `included`
      </td>

      <td>
        Included relationships.
      </td>

      <td>
        [Building](https://vergesense.readme.io/reference/building)\
        [Floor](https://vergesense.readme.io/reference/floor)\
        [Space](https://vergesense.readme.io/reference/space)\
        [Threshold](https://vergesense.readme.io/reference/threshold)
      </td>
    </tr>

    <tr>
      <td>
        `links`
      </td>

      <td>
        Pagination links.
      </td>

      <td>
        [Links](https://vergesense.readme.io/reference/links)
      </td>
    </tr>
  </tbody>
</Table>

**Space Threshold Crossing Model**

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Description
      </th>

      <th>
        Data Type
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`
      </td>

      <td>
        Unique identifier for the threshold crossing in the form:\
        `[space id]|[timestamp]`
      </td>

      <td>
        `String`
      </td>
    </tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        `space_threshold_crossing`
      </td>

      <td>
        `String`
      </td>
    </tr>

    <tr>
      <td>
        `attributes.space_id`
      </td>

      <td>
        The space (building/floor/space) that the threshold crossing was reported for
      </td>

      <td>
        `String`
      </td>
    </tr>

    <tr>
      <td>
        `attributes.threshold_id`
      </td>

      <td>
        The threshold that the threshold crossing was reported for
      </td>

      <td>
        `String`
      </td>
    </tr>

    <tr>
      <td>
        `attributes.timestamp`
      </td>

      <td>
        Timestamp of the crossing (UTC)
      </td>

      <td>
        `String`
      </td>
    </tr>

    <tr>
      <td>
        `attributes.direction`
      </td>

      <td>
        Direction of the crossing. `in|out`
      </td>

      <td>
        `String`\
        One of `in` or `out`.
      </td>
    </tr>

    <tr>
      <td>
        `relationships.building`
      </td>

      <td>
        Only present if the crossing was reported for a building. Details included in the `included` top level response key.
      </td>

      <td>
        `Object|null`
      </td>
    </tr>

    <tr>
      <td>
        `relationships.floor`
      </td>

      <td>
        Only present if the crossing was reported for a floor. Details included in the `included` top level response key.
      </td>

      <td>
        `Object|null`
      </td>
    </tr>

    <tr>
      <td>
        `relationships.space`
      </td>

      <td>
        Only present if the crossing was reported for a space. Details included in the `included` top level response key.
      </td>

      <td>
        `Object|null`
      </td>
    </tr>

    <tr>
      <td>
        `relationships.threshold`
      </td>

      <td>
        The threshold that the crossing was associated with
      </td>

      <td>
        `Object`
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "vergesense-api",
    "version": "2021-03-29"
  },
  "servers": [
    {
      "url": "https://api.vergesense.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "vs-api-key",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/spaces/thresholds/crossings": {
      "get": {
        "summary": "/spaces/thresholds/crossings",
        "description": "Fetch all threshold crossings for spaces on a given day.\nResponse conforms to the JSON API spec https://jsonapi.org/.\nResponses are limited to `1,000` threshold crossings after which pagination will take place.",
        "operationId": "spaces_thresholds_crossings",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "description": "Date to fetch thresholds crossings for. Date is required unless a timestamp filter query parameter is provided.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filter[timestamp][gte]",
            "in": "query",
            "description": "Greater than or equal to the timestamp.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "filter[timestamp][lte]",
            "in": "query",
            "description": "Greater than the timestamp.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "filter[timestamp][gt]",
            "in": "query",
            "description": "Less than or equal to the timestamp.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "filter[timestamp][lt]",
            "in": "query",
            "description": "Less than the timestamp.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "vs-api-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Building Crossings": {
                    "value": "{\n    \"data\": [\n        {\n            \"id\": \"422713|86|2021-10-29T00:00:27.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"422713\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:27.000Z\",\n                \"direction\": \"in\"\n            },\n            \"relationships\": {\n                \"building\": {\n                    \"data\": {\n                        \"id\": \"422713\",\n                        \"type\": \"building\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"422713|86|2021-10-29T00:00:28.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"422713\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:28.000Z\",\n                \"direction\": \"in\"\n            },\n            \"relationships\": {\n                \"building\": {\n                    \"data\": {\n                        \"id\": \"422713\",\n                        \"type\": \"building\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"422713|86|2021-10-29T00:00:29.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"422713\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:29.000Z\",\n                \"direction\": \"out\"\n            },\n            \"relationships\": {\n                \"building\": {\n                    \"data\": {\n                        \"id\": \"422713\",\n                        \"type\": \"building\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        }\n    ],\n    \"included\": [\n        {\n            \"id\": \"86\",\n            \"type\": \"threshold\",\n            \"attributes\": {\n                \"external_name\": \"Line 0\",\n                \"external_id\": \"0\"\n            }\n        },\n        {\n            \"id\": \"422713\",\n            \"type\": \"building\",\n            \"attributes\": {\n                \"name\": \"Building 1\",\n                \"building_ref_id\": \"B1\"\n            }\n        }\n    ],\n    \"links\": {\n        \"next\": null,\n        \"prev\": null\n    }\n}"
                  },
                  "Building and Floor Crossings": {
                    "value": "{\n    \"data\": [\n        {\n            \"id\": \"422713|86|2021-10-29T00:00:27.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"422713\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:27.000Z\",\n                \"direction\": \"in\"\n            },\n            \"relationships\": {\n                \"building\": {\n                    \"data\": {\n                        \"id\": \"422713\",\n                        \"type\": \"building\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"426305|86|2021-10-29T00:00:27.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"426305\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:27.000Z\",\n                \"direction\": \"in\"\n            },\n            \"relationships\": {\n                \"floor\": {\n                    \"data\": {\n                        \"id\": \"426305\",\n                        \"type\": \"floor\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        }\n    ],\n    \"included\": [\n        {\n            \"id\": \"86\",\n            \"type\": \"threshold\",\n            \"attributes\": {\n                \"external_name\": \"Line 0\",\n                \"external_id\": \"0\"\n            }\n        },\n        {\n            \"id\": \"422713\",\n            \"type\": \"building\",\n            \"attributes\": {\n                \"name\": \"Building 1\",\n                \"building_ref_id\": \"B1\"\n            }\n        },\n        {\n            \"id\": \"426305\",\n            \"type\": \"floor\",\n            \"attributes\": {\n                \"name\": \"5\",\n                \"floor_ref_id\": \"05\"\n            }\n        }\n    ],\n    \"links\": {\n        \"next\": \"/spaces/thresholds/crossings?date=2021-10-29&page[number]=2&page[size]=2\",\n        \"prev\": null\n    }\n}"
                  },
                  "Floor Crossings": {
                    "value": "{\n    \"data\": [\n        {\n            \"id\": \"426305|86|2021-10-29T00:00:27.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"426305\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:27.000Z\",\n                \"direction\": \"in\"\n            },\n            \"relationships\": {\n                \"floor\": {\n                    \"data\": {\n                        \"id\": \"426305\",\n                        \"type\": \"floor\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"426305|86|2021-10-29T00:00:28.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"426305\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:28.000Z\",\n                \"direction\": \"in\"\n            },\n            \"relationships\": {\n                \"floor\": {\n                    \"data\": {\n                        \"id\": \"426305\",\n                        \"type\": \"floor\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"426305|86|2021-10-29T00:00:29.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"426305\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:29.000Z\",\n                \"direction\": \"out\"\n            },\n            \"relationships\": {\n                \"floor\": {\n                    \"data\": {\n                        \"id\": \"426305\",\n                        \"type\": \"floor\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        }\n    ],\n    \"included\": [\n        {\n            \"id\": \"86\",\n            \"type\": \"threshold\",\n            \"attributes\": {\n                \"external_name\": \"Line 0\",\n                \"external_id\": \"0\"\n            }\n        },\n        {\n            \"id\": \"426305\",\n            \"type\": \"floor\",\n            \"attributes\": {\n                \"name\": \"5\",\n                \"floor_ref_id\": \"05\"\n            }\n        }\n    ],\n    \"links\": {\n        \"next\": \"/spaces/thresholds/crossings?date=2021-10-29&page[number]=2&page[size]=2\",\n        \"prev\": null\n    }\n}"
                  },
                  "Floor and Space Crossings": {
                    "value": "{\n    \"data\": [\n        {\n            \"id\": \"422799|86|2021-10-29T00:00:27.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"422799\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:27.000Z\",\n                \"direction\": \"in\"\n            },\n            \"relationships\": {\n                \"space\": {\n                    \"data\": {\n                        \"id\": \"422799\",\n                        \"type\": \"space\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"426305|86|2021-10-29T00:00:27.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"426305\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:27.000Z\",\n                \"direction\": \"out\"\n            },\n            \"relationships\": {\n                \"floor\": {\n                    \"data\": {\n                        \"id\": \"426305\",\n                        \"type\": \"floor\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        }\n    ],\n    \"included\": [\n        {\n            \"id\": \"86\",\n            \"type\": \"threshold\",\n            \"attributes\": {\n                \"external_name\": \"Line 0\",\n                \"external_id\": \"0\"\n            }\n        },\n        {\n            \"id\": \"426305\",\n            \"type\": \"floor\",\n            \"attributes\": {\n                \"name\": \"5\",\n                \"floor_ref_id\": \"05\"\n            }\n        },\n        {\n            \"id\": \"422799\",\n            \"type\": \"space\",\n            \"attributes\": {\n                \"name\": \"Restroom\",\n                \"building_ref_id\": \"R1\"\n            }\n        }\n    ],\n    \"links\": {\n        \"next\": null,\n        \"prev\": null\n    }\n}"
                  },
                  "Space Crossings": {
                    "value": "{\n    \"data\": [\n        {\n            \"id\": \"426399|86|2021-10-29T00:00:27.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"426399\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:27.000Z\",\n                \"direction\": \"in\"\n            },\n            \"relationships\": {\n                \"space\": {\n                    \"data\": {\n                        \"id\": \"426399\",\n                        \"type\": \"space\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"426399|86|2021-10-29T00:00:28.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"426399\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:28.000Z\",\n                \"direction\": \"in\"\n            },\n            \"relationships\": {\n                \"space\": {\n                    \"data\": {\n                        \"id\": \"426399\",\n                        \"type\": \"space\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"426399|86|2021-10-29T00:00:29.000Z\",\n            \"type\": \"space_threshold_crossing\",\n            \"attributes\": {\n                \"space_id\": \"426399\",\n                \"threshold_id\": \"86\",\n                \"timestamp\": \"2021-10-29T00:00:29.000Z\",\n                \"direction\": \"out\"\n            },\n            \"relationships\": {\n                \"space\": {\n                    \"data\": {\n                        \"id\": \"426399\",\n                        \"type\": \"space\"\n                    }\n                },\n                \"threshold\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"threshold\"\n                    }\n                }\n            }\n        }\n    ],\n    \"included\": [\n        {\n            \"id\": \"86\",\n            \"type\": \"threshold\",\n            \"attributes\": {\n                \"external_name\": \"Line 0\",\n                \"external_id\": \"0\"\n            }\n        },\n        {\n            \"id\": \"426399\",\n            \"type\": \"space\",\n            \"attributes\": {\n                \"name\": \"Bathroom\",\n                \"space_ref_id\": \"B1\"\n            }\n        }\n    ],\n    \"links\": {\n        \"next\": \"/spaces/thresholds/crossings?date=2021-10-29&page[number]=2&page[size]=2\",\n        \"prev\": null\n    }\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Building Crossings",
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "422713|86|2021-10-29T00:00:27.000Z"
                              },
                              "type": {
                                "type": "string",
                                "example": "space_threshold_crossing"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "space_id": {
                                    "type": "string",
                                    "example": "422713"
                                  },
                                  "threshold_id": {
                                    "type": "string",
                                    "example": "86"
                                  },
                                  "timestamp": {
                                    "type": "string",
                                    "example": "2021-10-29T00:00:27.000Z"
                                  },
                                  "direction": {
                                    "type": "string",
                                    "example": "in"
                                  }
                                }
                              },
                              "relationships": {
                                "type": "object",
                                "properties": {
                                  "building": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "422713"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "building"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "threshold": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "86"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "threshold"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "included": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "86"
                              },
                              "type": {
                                "type": "string",
                                "example": "threshold"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "external_name": {
                                    "type": "string",
                                    "example": "Line 0"
                                  },
                                  "external_id": {
                                    "type": "string",
                                    "example": "0"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "next": {},
                            "prev": {}
                          }
                        }
                      }
                    },
                    {
                      "title": "Building and Floor Crossings",
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "422713|86|2021-10-29T00:00:27.000Z"
                              },
                              "type": {
                                "type": "string",
                                "example": "space_threshold_crossing"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "space_id": {
                                    "type": "string",
                                    "example": "422713"
                                  },
                                  "threshold_id": {
                                    "type": "string",
                                    "example": "86"
                                  },
                                  "timestamp": {
                                    "type": "string",
                                    "example": "2021-10-29T00:00:27.000Z"
                                  },
                                  "direction": {
                                    "type": "string",
                                    "example": "in"
                                  }
                                }
                              },
                              "relationships": {
                                "type": "object",
                                "properties": {
                                  "building": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "422713"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "building"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "threshold": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "86"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "threshold"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "included": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "86"
                              },
                              "type": {
                                "type": "string",
                                "example": "threshold"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "external_name": {
                                    "type": "string",
                                    "example": "Line 0"
                                  },
                                  "external_id": {
                                    "type": "string",
                                    "example": "0"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "next": {
                              "type": "string",
                              "example": "/spaces/thresholds/crossings?date=2021-10-29&page[number]=2&page[size]=2"
                            },
                            "prev": {}
                          }
                        }
                      }
                    },
                    {
                      "title": "Floor Crossings",
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "426305|86|2021-10-29T00:00:27.000Z"
                              },
                              "type": {
                                "type": "string",
                                "example": "space_threshold_crossing"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "space_id": {
                                    "type": "string",
                                    "example": "426305"
                                  },
                                  "threshold_id": {
                                    "type": "string",
                                    "example": "86"
                                  },
                                  "timestamp": {
                                    "type": "string",
                                    "example": "2021-10-29T00:00:27.000Z"
                                  },
                                  "direction": {
                                    "type": "string",
                                    "example": "in"
                                  }
                                }
                              },
                              "relationships": {
                                "type": "object",
                                "properties": {
                                  "floor": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "426305"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "floor"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "threshold": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "86"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "threshold"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "included": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "86"
                              },
                              "type": {
                                "type": "string",
                                "example": "threshold"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "external_name": {
                                    "type": "string",
                                    "example": "Line 0"
                                  },
                                  "external_id": {
                                    "type": "string",
                                    "example": "0"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "next": {
                              "type": "string",
                              "example": "/spaces/thresholds/crossings?date=2021-10-29&page[number]=2&page[size]=2"
                            },
                            "prev": {}
                          }
                        }
                      }
                    },
                    {
                      "title": "Floor and Space Crossings",
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "422799|86|2021-10-29T00:00:27.000Z"
                              },
                              "type": {
                                "type": "string",
                                "example": "space_threshold_crossing"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "space_id": {
                                    "type": "string",
                                    "example": "422799"
                                  },
                                  "threshold_id": {
                                    "type": "string",
                                    "example": "86"
                                  },
                                  "timestamp": {
                                    "type": "string",
                                    "example": "2021-10-29T00:00:27.000Z"
                                  },
                                  "direction": {
                                    "type": "string",
                                    "example": "in"
                                  }
                                }
                              },
                              "relationships": {
                                "type": "object",
                                "properties": {
                                  "space": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "422799"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "space"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "threshold": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "86"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "threshold"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "included": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "86"
                              },
                              "type": {
                                "type": "string",
                                "example": "threshold"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "external_name": {
                                    "type": "string",
                                    "example": "Line 0"
                                  },
                                  "external_id": {
                                    "type": "string",
                                    "example": "0"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "next": {},
                            "prev": {}
                          }
                        }
                      }
                    },
                    {
                      "title": "Space Crossings",
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "426399|86|2021-10-29T00:00:27.000Z"
                              },
                              "type": {
                                "type": "string",
                                "example": "space_threshold_crossing"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "space_id": {
                                    "type": "string",
                                    "example": "426399"
                                  },
                                  "threshold_id": {
                                    "type": "string",
                                    "example": "86"
                                  },
                                  "timestamp": {
                                    "type": "string",
                                    "example": "2021-10-29T00:00:27.000Z"
                                  },
                                  "direction": {
                                    "type": "string",
                                    "example": "in"
                                  }
                                }
                              },
                              "relationships": {
                                "type": "object",
                                "properties": {
                                  "space": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "426399"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "space"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "threshold": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "example": "86"
                                          },
                                          "type": {
                                            "type": "string",
                                            "example": "threshold"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "included": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "86"
                              },
                              "type": {
                                "type": "string",
                                "example": "threshold"
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "external_name": {
                                    "type": "string",
                                    "example": "Line 0"
                                  },
                                  "external_id": {
                                    "type": "string",
                                    "example": "0"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "next": {
                              "type": "string",
                              "example": "/spaces/thresholds/crossings?date=2021-10-29&page[number]=2&page[size]=2"
                            },
                            "prev": {}
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid Date Parameter": {
                    "value": "{\n    \"errors\": [\n        {\n            \"status\": \"400\",\n            \"source\": {\n                \"parameter\": \"date\"\n            },\n            \"title\": \"Invalid Parameter\",\n            \"detail\": \"Invalid Date\"\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "example": "400"
                          },
                          "source": {
                            "type": "object",
                            "properties": {
                              "parameter": {
                                "type": "string",
                                "example": "date"
                              }
                            }
                          },
                          "title": {
                            "type": "string",
                            "example": "Invalid Parameter"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Invalid Date"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```