OBrain Hub

API Reference

Documentation of Public and Administrative endpoints.

API Reference

The OBrain OConnect Hub provides a RESTful API for integration and management.

Authentication

TypeHeaderUsage
User JWTAuthorization: Bearer <token>Management Portal (Admin/Manager)
API KeyX-API-Key: <key>External Integrations (Storefronts)
Idempotencyx-idempotency-key: <string>Prevent duplicate mutations

Public API Endpoints (v1)

Get Products

GET /api/v1/products Lists available products for the store, filtered by plan and rank index.

Create Order

POST /api/v1/orders Creates a new order in the hub for processing.

Administrative Endpoints

Integration Sync

POST /api/integrations/sync Manually triggers a product export to connected platforms.

Intelligence (Fase 2)

  • POST /api/intelligence/scan-global: Scans global trends (TikTok/US/EU).
  • POST /api/intelligence/analyze-reviews: Extracts market gaps from reviews.
  • POST /api/intelligence/reposition: Generates high-conversion product copy.

Agent Trigger (Debug)

GET /api/admin/debug/price-scan Triggers a manual scan of competitor prices for the top 10 products.