Smart Device API

Connect, control, and automate your smart devices with our powerful RESTful API. Build amazing IoT applications with ease.

🚀 Get Started with API Key

Why Choose Onwords API?

Everything you need to build powerful IoT applications and integrate smart devices seamlessly.

🔌

Easy Integration

Simple RESTful API that works with any programming language. Get up and running in minutes with our comprehensive documentation.

🔒

Secure & Reliable

Enterprise-grade security with API key authentication. Your devices and data are protected with industry-standard encryption.

Real-time Control

Control your smart devices in real-time with low latency responses. Perfect for automation and monitoring applications.

📊

Rich Data Access

Access comprehensive device data including status, sensor readings, and historical information for analytics.

🔄

Device Management

Easily manage multiple devices, organize them by rooms and homes, and control access permissions.

📱

Cross-platform

Works seamlessly across web, mobile, and desktop applications. Build once, deploy everywhere.

API Documentation

Comprehensive guides and references to help you integrate quickly and efficiently.

📚 API Documentation

Complete API reference with examples, endpoints, and integration guides for the Onwords Gate Control API.

View Full Documentation

🔧 Getting Started

Learn the basics of authentication, making your first API call, and understanding responses.

Read Guide

💡 API Reference

Complete reference for all available endpoints, parameters, and response formats with examples.

View Reference

🛠️ Code Examples

Ready-to-use code examples and integration samples for quick implementation.

Browse Examples

Simple to Use

Get started with just a few lines of code. Our API is designed to be intuitive and developer-friendly.

🔑 Get Your API Key
example.py
# Import requests library
import requests

# Your API configuration
API_KEY = "your_api_key_here"

# Base URL
BASE_URL = "ostapi.onwords.in/"

# device_action
def device_action(product_id, action):
    headers = {
        "api-key": API_KEY,
    }

    data  = {
        "product_id": product_id,
        "action": action,
    }
   
    response = requests.post(f"{BASE_URL}",json=data,
    headers=headers)
    
    return response.json()

    # Control device
    status = device_action("device_123, open_gate")
                

Ready to Get Started?

Join thousands of developers building amazing IoT applications with Onwords API.