openapi: 3.0.1 info: description: Gain greater visibility by connecting your fleets, equipment, sites, and people. title: Samsara Door API version: '2024-11-18' servers: - url: https://api.samsara.com/ - url: https://api.eu.samsara.com/ security: - AccessTokenHeader: [] tags: - name: Door paths: /v1/sensors/door: post: description: "\n\n\nThis endpoint is still on our legacy API.\n\n\n\nGet door monitor status (closed / open) for requested sensors. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.\n\nTo use this endpoint, select **Write Sensors** under the Equipment category when creating or editing an API token. Learn More." operationId: V1getSensorsDoor requestBody: $ref: '#/components/requestBodies/inline_object_5' content: application/json: schema: properties: sensors: description: List of sensor IDs to query. example: - 122 items: format: int64 type: integer type: array required: - sensors type: object description: List of sensor IDs to query. required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/V1DoorResponse' description: List of sensor objects containing the current door status reported by each sensor. default: content: application/json: schema: $ref: '#/components/schemas/V1ErrorResponse' description: Unexpected error. summary: Get Door Status tags: - Door x-codegen-request-body-name: V1sensorParam components: schemas: inline_object_5: properties: sensors: description: List of sensor IDs to query. example: - 122 items: format: int64 type: integer type: array required: - sensors type: object V1ErrorResponse: description: Error message describing why the request failed. type: string V1DoorResponse: description: Contains the current door status of a sensor. properties: groupId: description: Deprecated. example: 101 format: int64 type: integer sensors: items: $ref: '#/components/schemas/V1DoorResponse_sensors' type: array type: object V1DoorResponse_sensors: properties: doorClosed: description: Flag indicating whether the current door is closed or open. example: true type: boolean doorStatusTime: description: The timestamp of reported door status, specified in RFC 3339 time. example: '2019-04-17T16:42:55Z' type: string id: description: ID of the sensor. example: 122 format: int64 type: integer name: description: Name of the sensor. example: Trailer Door V1Sensor type: string trailerId: description: ID of the trailer associated with the sensor for the data point. If no trailer is connected, this parameter will not be reported. example: 123 type: integer vehicleId: description: ID of the vehicle associated with the sensor for the data point. If no vehicle is connected, this parameter will not be reported. example: 124 type: integer type: object requestBodies: inline_object_5: content: application/json: schema: $ref: '#/components/schemas/inline_object_5' required: true securitySchemes: AccessTokenHeader: type: http scheme: bearer x-original-swagger-version: '2.0' x-readme: explorer-enabled: true proxy-enabled: true