hust.media
✉️
Support
🤝
Về chúng tôi
📜
Điều khoản sử dụng
🛡️
Chính sách bảo mật

hust.media
Terms of ServicePrivacy PolicySite Map
© Hust Media 2021 - 2026
Table of Contents

Related Insights

Hust Media System Overview
Hust Media System Overview
A technical overview of Hust Media’s platform architecture, core processing flow, API gateway, verification logic, and operational layers that support the Engineering Notes section.
10/1/2025Engineering Notes
Core Engine: Hybrid Frontend Architecture
Core Engine: Hybrid Frontend Architecture
This note shows how ReactJS, NextJS, shared contracts, and dual routing keep frontend behavior consistent, supporting platform growth through cleaner flow and stable rendering performance.
8/27/2025Engineering Notes
Core Engine: Credit Scoring and Abuse Prevention
Core Engine: Credit Scoring and Abuse Prevention
This note shows how credit scoring, verification, and abuse-prevention rules keep reward states consistent, supporting growth through cleaner validation and safer workflow control.
7/30/2025Engineering Notes
Hust Media Public API v3
Hust Media Public API v3
This note shows how shared API routing, payload validation, and response handling keep utility requests consistent, supporting platform growth through cleaner service flows and stable integration behavior.
7/5/2025Engineering Notes
Threat Signal Verification and Risk Indexing
Threat Signal Verification and Risk Indexing
This note shows how threat signals, external feeds, AI verification, and post-audit indexing improve evidence quality, supporting platform growth through cleaner, searchable risk records.
6/5/2025Engineering Notes
Core Processing: Validation and Quality Workflow
Core Processing: Validation and Quality Workflow
This note shows how input evaluation, automated validation, and quality-control checks improve record consistency, supporting platform growth through cleaner processing and stable workflows.
5/1/2025Engineering Notes

Hust Media Public API v3

Back to Notes
This note shows how shared API routing, payload validation, and response handling keep utility requests consistent, supporting platform growth through cleaner service flows and stable integration behavior.
Written date: 07/05/2025 22:43:14Engineering Notes

Introduction

This note documents the current v3 API contract behind the platform utilities. It focuses on the shared gateway structure, service-based request routing, and the response handling rules used by the client so integration and operational behavior stay consistent over time.

Authentication

All current utilities route through the same v3 gateway and require an API Key in the JSON body. Requests use Content-Type: application/json, while routing is handled by service and payload structure rather than separate endpoints for each utility.

Endpoint

POST /api/v3

This endpoint is the shared submission layer for the current utilities. In the client flow, each request starts with action: "add", username: "", a normalized national_market value ("vi" or "en"), and a utility-specific service id.

Request Body

The current client logic uses one common request contract and then adjusts a few fields per utility. Core fields include action, key, username, national_market, service, link, comments, and quantity. The exact payload branch is selected by service id together with fields such as link, comments, or images_data.

In practice, link, comments, and quantity are reused differently depending on the selected service:

  • Text to Speech sends normalized text through link with a fixed quantity.
  • Speech to Text sends audio as base64 data in comments.voice_data, with quantity derived from rounded audio duration.
  • Image to Text sends uploaded image data through images_data, with a fixed quantity of 1.
  • Vietnamese to English sends trimmed source text through comments, with quantity based on trimmed character length.

Response Handling

The client reads response.text() first, then attempts JSON parsing, and falls back to the raw text as a message when parsing fails. A request is treated as successful only when response.ok is true and the returned payload does not include an error field.

Depending on the service, the client reads result data from message, order, voice, text_vip, or text. For text-returning utilities, text_vip is preferred when both text fields are available.

Example Request

HTTP
POST /api/v3
Content-Type: application/json

{
  "action": "add",
  "comments": ["comment_1", "comment_2"],
  "key": "YOUR_API_KEY",
  "link": "<SERVICE_LINK_VALUE>",
  "quantity": 1000,
  "service": "<SERVICE_ID>"
}

Example Response (Success)

JSON
{
  "order": 98412
}

Example Response (Error)

JSON
{
  "error": "quantity_less_than_min"
}

Technical Notes

All current utilities use the same v3 gateway. Requests are separated by service id and payload shape, not by different backend endpoints. The client also blocks repeated submissions at the start of each request flow to reduce duplicate sends.

By Hust Media • Written date: 07/05/2025 22:43:14

Related Insights

Hust Media System Overview
Hust Media System Overview
A technical overview of Hust Media’s platform architecture, core processing flow, API gateway, verification logic, and operational layers that support the Engineering Notes section.
10/1/2025Engineering Notes
Core Engine: Hybrid Frontend Architecture
Core Engine: Hybrid Frontend Architecture
This note shows how ReactJS, NextJS, shared contracts, and dual routing keep frontend behavior consistent, supporting platform growth through cleaner flow and stable rendering performance.
8/27/2025Engineering Notes
Core Engine: Credit Scoring and Abuse Prevention
Core Engine: Credit Scoring and Abuse Prevention
This note shows how credit scoring, verification, and abuse-prevention rules keep reward states consistent, supporting growth through cleaner validation and safer workflow control.
7/30/2025Engineering Notes
Hust Media Public API v3
Hust Media Public API v3
This note shows how shared API routing, payload validation, and response handling keep utility requests consistent, supporting platform growth through cleaner service flows and stable integration behavior.
7/5/2025Engineering Notes
Threat Signal Verification and Risk Indexing
Threat Signal Verification and Risk Indexing
This note shows how threat signals, external feeds, AI verification, and post-audit indexing improve evidence quality, supporting platform growth through cleaner, searchable risk records.
6/5/2025Engineering Notes
Core Processing: Validation and Quality Workflow
Core Processing: Validation and Quality Workflow
This note shows how input evaluation, automated validation, and quality-control checks improve record consistency, supporting platform growth through cleaner processing and stable workflows.
5/1/2025Engineering Notes
Was this content helpful to you?