Back Home

API Reference

Welcome to the developer zone. Here you'll find comprehensive documentation for our suite of APIs. This section is designed to provide developers with all the necessary information to integrate our services seamlessly into their applications.

Core User Management API

Endpoints for managing user accounts, profiles, and authentication.

GET /users

Retrieves a list of all users.

Parameters:

Name Type Description Required
limit Integer Maximum number of users to return. No
offset Integer Number of users to skip before starting to collect the result set. No

Example Response:

[
    {
        "id": "usr_abc123",
        "username": "alice_dev",
        "email": "alice.dev@example.com",
        "created_at": "2023-10-27T10:00:00Z"
    },
    {
        "id": "usr_def456",
        "username": "bob_engineer",
        "email": "bob.engineer@example.com",
        "created_at": "2023-10-27T10:05:00Z"
    }
]

POST /users

Creates a new user.

Request Body:

{
    "username": "new_user",
    "email": "new.user@example.com",
    "password": "secure_password_123"
}

Example Response:

{
    "id": "usr_ghi789",
    "username": "new_user",
    "email": "new.user@example.com",
    "created_at": "2023-10-27T10:10:00Z"
}

Product Catalog API

Endpoints for accessing and managing product information.

GET /products/{id}

Retrieves details for a specific product by its ID.

URL Parameters:

Name Type Description Required
id String The unique identifier of the product. Yes

Example Response:

{
    "id": "prod_xyz987",
    "name": "Quantum Widget",
    "description": "A cutting-edge widget that operates on quantum principles.",
    "price": 99.99,
    "stock": 150
}

PUT /products/{id}

Updates an existing product.

URL Parameters:

Name Type Description Required
id String The unique identifier of the product to update. Yes

Request Body:

{
    "price": 109.99,
    "stock": 145
}

Example Response:

{
    "id": "prod_xyz987",
    "name": "Quantum Widget",
    "description": "A cutting-edge widget that operates on quantum principles.",
    "price": 109.99,
    "stock": 145
}

Data Ingestion API

For pushing data into our systems.

POST /ingest/data

Ingests a batch of data points.

Request Body:

[
    {"timestamp": "2023-10-27T11:00:00Z", "value": 10.5, "sensor_id": "sns_a1"},
    {"timestamp": "2023-10-27T11:01:00Z", "value": 10.7, "sensor_id": "sns_a1"},
    {"timestamp": "2023-10-27T11:00:30Z", "value": 55.2, "sensor_id": "sns_b2"}
]

Example Response:

{
    "status": "success",
    "message": "Data ingested successfully.",
    "records_processed": 3
}
Explore more by visiting our project blueprints section.