Tarsheed
  1. Auth
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
      POST
    • Update Device
      PATCH
    • Delete Device
      DELETE
    • Get All Devices id For IOT System
      GET
    • Toggle Device Status
      PATCH
  • category
    • get all categories
  • Sensor
    • Create New Sensor
    • Update Sensor
    • Delete Sensor
    • Get All Sensor For Spesfic user
  • Automation
    • Add New Automation
    • Get all Automation for Spesfic User
    • Delete Spesfic Automation
    • Update Spesfic Automation
    • Apply Automation Manually
  • payment
    • Pay
  • Notification
    • Get notification
    • Mark as Read
    • Get notification Copy Copy
  • text-chat
  1. Auth

Login

Developing
POST
Login Endpoint

Request

Body Params application/json

Example
{
    "email": "string",
    "password": "string"
}

Request Code 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 POST '' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "string",
    "password": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "message": "Login successful!",
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ZDc5OTViMmU1Zjg3N2JiNTg1NGZiYSIsImVtYWlsIjoiYWhtZWRtb2hhbW1lZHNhbGFoMjAwQGdtYWlsLmNvbSIsImlhdCI6MTc0MjE4MzIzMiwiZXhwIjoxNzQ0Nzc1MjMyfQ.lhnp6GWR_7DXNRZUEJYb6hoszYMm1pUJFB6RGrmAG2Q",
    "data": {
        "id": "67d7995b2e5f877bb5854fba",
        "username": "Lee Heathcote",
        "email": "ahmedmohammedsalah200@gmail.com"
    }
}
Modified at 2025-03-17 03:47:43
Previous
Verifiy Email
Next
Resend Verfication Code
Built with