Skip to content

Instantly share code, notes, and snippets.

@arevindh
Last active September 3, 2025 14:04
Show Gist options
  • Select an option

  • Save arevindh/253302628ad10eed8126a820c2ecdaec to your computer and use it in GitHub Desktop.

Select an option

Save arevindh/253302628ad10eed8126a820c2ecdaec to your computer and use it in GitHub Desktop.
Tinxy_Open_APIs https://tinxyapi.pages.dev/
{
"info": {
"_postman_id": "32c262fa-7384-4477-a610-cde252c8829e",
"name": "Tinxy Open APIs",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Device State",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer 60fe161c60687be22a0a1b5806724bfb5e7a1c18"
},
{
"key": "",
"value": "",
"disabled": true
}
],
"url": {
"raw": "https://backend.tinxy.in/v2/devices/6131bbacb1aba6001317ec1b/state?deviceNumber=1",
"protocol": "https",
"host": [
"backend",
"tinxy",
"in"
],
"path": [
"v2",
"devices",
"6131bbacb1aba6001317ec1b",
"state"
],
"query": [
{
"key": "deviceNumber",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "Devices with userID",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer 8428a2f9645f86dbdf4902aaadf73767d88272a6",
"type": "text"
}
],
"url": {
"raw": "https://backend.tinxy.in/v2/devices/",
"protocol": "https",
"host": [
"backend",
"tinxy",
"in"
],
"path": [
"v2",
"devices",
""
]
}
},
"response": []
},
{
"name": "Device Toggle",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer 8428a2f9645f86dbdf4902aaadf73767d88272a6"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"request\": {\n\t\t\"state\": 1,\n \"brightness\": 0\n\t},\n \"deviceNumber\": 1\n}"
},
"url": {
"raw": "https://backend.tinxy.in/v2/devices/6107cad3ec41f400139e315d/toggle",
"protocol": "https",
"host": [
"backend",
"tinxy",
"in"
],
"path": [
"v2",
"devices",
"6107cad3ec41f400139e315d",
"toggle"
]
}
},
"response": []
}
]
}
@uiyash
Copy link

uiyash commented Apr 15, 2022

How to toggle on/off device with 2 relays

@arevindh
Copy link
Author

@uiyash just change the device number to 2

@akashks1998
Copy link

is there any api endpoint to trigger scenes?

@arevindh
Copy link
Author

@akashks1998 not sure try asking on their forum https://forum.tinxy.in

@karthik288m
Copy link

tinxy_custom_integration
Screenshot 2024-05-27 205129
I have integrated Tinxy API into Our business POS App to control devices, Now no need open Tinxy everytime I need to Operate Devices.

@karthik288m
Copy link

Tinxy_Android_Integration.mp4

@msiddique21
Copy link

Can we unlock door lock with api ?

@arevindh
Copy link
Author

arevindh commented Sep 2, 2025

Can we unlock door lock with api ?

Yes.

@msiddique21
Copy link

I am passing below request using postman.
{
"request": {
"state": 1,
"brightness": 0
},
"deviceNumber": 1
}

It is working fine for the light, but not for the door lock. Do we need to make any changes in the request for the door lock?

@msiddique21
Copy link

Hi @arevindh
?

@arevindh
Copy link
Author

arevindh commented Sep 3, 2025

Hi @arevindh ?

Let me try contacting the tinxy contact person about this .

@msiddique21
Copy link

Sure

@arevindh
Copy link
Author

arevindh commented Sep 3, 2025

@muhammadsiddique21 meanwhile can you try

/v2/devices/{id}/toggle


{
    "request": {
        "state": 1
    },
    "deviceNumber": 0
}

deviceNumber 0 or 1 not sure

states 0 / 1

@msiddique21
Copy link

Yes, It is working fine. Thanks @arevindh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment