Complete guide for integrating with Onwords smart gate control systems. This API enables secure control of various gate types including sliding gates, arm gates, and advanced gate systems through simple HTTP requests.
🔑
1. Generate API Key
Example Flow
1
Visit https://ostapi.onwords.in and click on "Get API Key" from the menu.
2
You'll be redirected to the login page. Enter your email and password, then click Submit.
3
After logging in, you'll see a list of your devices. Select the devices you want to generate the API key for.
4
Click the "Generate API Key" button. Your new API key will be displayed. Copy and save it securely.
API Key Generated
✅
Secure key ready for API calls
Description
This endpoint is used to generate a secure API Key via the Onwords Smart Things app. Upon key generation, the API securely stores and associates the API key with the selected product(s), enabling authorized access for future device control operations.
⚠️Security Note
Ensure to store the API key securely, as it is required for all future authenticated device control actions. Never expose your API key in client-side code or public repositories.
📱
2. Get Device List
Before controlling any devices, you need to retrieve the list of devices associated with your API key. This endpoint returns all devices you have access to, along with their unique identifiers and types.
Endpoint:
GEThttps://ostapi.onwords.in/get_device_list
Description:
This endpoint authenticates your API key and returns a list of all devices you have permission to control. Each device includes essential information such as the product ID, device name, gate type, and current status.
📋
Request Headers
Name
Description
Authorization *
string
(header)
Bearer token containing your API key. Format: Bearer your-api-key
Authenticates the user, validates the API key and product access, and sends control commands to the selected device. This endpoint supports various gate types and provides real-time device control capabilities.
📋
Request Headers
Name
Description
Authorization *
string
(header)
Bearer token containing your API key. Format: Bearer your-api-key
# Get Device List
curl -X POST https://ostapi.onwords.in/get_device_list \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json"
# Control Device
curl -X POST https://ostapi.onwords.in/control-device/ \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"product_id": "device_123",
"action": "open"
}'
Support & Integration Assistance
For any queries, support, or integration assistance, feel free to reach out to our technical team. We're here to help you integrate seamlessly with the Onwords Gate Control API.