Tarsheed
  1. Sensor
Tarsheed
  • Auth
    • Create Account
      POST
    • Verifiy Email
      POST
    • Login
      POST
    • Resend Verfication Code
      POST
    • Forget Password Request
      POST
    • Forget password Verify Code
      POST
    • Reset Password
      PATCH
    • Login With Google
      POST
    • Login With Facebook
      POST
  • Users
    • Get all users
      GET
    • Get specific user
      GET
    • Delete user account
      DELETE
    • Update user data
      PUT
    • Change user password
      PUT
    • Get Recomendation
      GET
    • Get Avarage Cost For Spesfic User
      GET
    • Get The Power Saving Modes Settings
      GET
    • Update the Usage of the power saving mode
      PATCH
  • Reports
    • GetUserReport
      GET
  • Room
    • Create New Room
      POST
    • Update Room
      PATCH
    • Delete Room
      DELETE
    • Get Room Details
      GET
    • Get all Rooms for spesfic user
      GET
  • Device
    • Create New Device
    • Update Device
    • Delete Device
    • Get All Devices id For IOT System
    • Toggle Device Status
  • category
    • get all categories
  • Sensor
    • Create New Sensor
      POST
    • Update Sensor
      PUT
    • Delete Sensor
      DELETE
    • Get All Sensor For Spesfic user
      GET
  • Automation
    • Add New Automation
    • Get all Automation for Spesfic User
    • Delete Spesfic Automation
    • Update Spesfic Automation
    • Apply Automation Manually
  1. Sensor

Get All Sensor For Spesfic user

Developing
GET
sensor/getAll
SensorDelete

Request

Header Params
Authorization
string 
optional
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3OWU4M2Y0OGUxMThjNDA3OWIyNTFjMyIsImVtYWlsIjoiYWxpaXNtYWlsaDA4QGdtYWlsLmNvbSIsInJvbGUiOiJjdXN0b21lciIsImlhdCI6MTc0MTI0MjUwMiwiZXhwIjoxNzQzODM0NTAyfQ.ABNTRtJ6iJn1AJpPKcUrr1SOW2aYXRjRkn0Vv1YURoI
Body Params application/json
object {0}
Example
{}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'sensor/getAll' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3OWU4M2Y0OGUxMThjNDA3OWIyNTFjMyIsImVtYWlsIjoiYWxpaXNtYWlsaDA4QGdtYWlsLmNvbSIsInJvbGUiOiJjdXN0b21lciIsImlhdCI6MTc0MTI0MjUwMiwiZXhwIjoxNzQzODM0NTAyfQ.ABNTRtJ6iJn1AJpPKcUrr1SOW2aYXRjRkn0Vv1YURoI' \
--header 'Content-Type: application/json' \
--data-raw '{}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "sensors": [
        {
            "_id": "680fde842cac80aed5479a4b",
            "userId": "680a9b2dcdf756b0e0909dde",
            "name": "Temperature Sensor",
            "description": "Measures the room temperature",
            "pinNumber": 7,
            "roomId": "660fd3f959d7a5dc97aa1234",
            "categoryId": "660fd3f959d7a5dc97aa5678",
            "createdAt": "2025-04-28T20:01:08.759Z",
            "updatedAt": "2025-04-28T20:01:08.759Z",
            "__v": 0
        },
        {
            "_id": "680fdeec2cac80aed5479a4e",
            "userId": "680a9b2dcdf756b0e0909dde",
            "name": "Humidity Sensor",
            "description": "Measures the room humidity",
            "pinNumber": 8,
            "roomId": "660fd3f959d7a5dc97aa1234",
            "categoryId": "660fd3f959d7a5dc97aa5678",
            "createdAt": "2025-04-28T20:02:52.469Z",
            "updatedAt": "2025-04-28T20:02:52.469Z",
            "__v": 0
        }
    ]
}
Previous
Delete Sensor
Next
Add New Automation
Built with