API Introduction

Guide to navigating the V4MOS.AI API reference

This section contains every public endpoint of the V4MOS.AI API, organized by platform. Each endpoint page is generated from the OpenAPI specification and includes parameters, response schemas, code samples and a playground to try the call.

Base URL

https://data.v4mos.ai

All requests must be made over HTTPS, with JSON (UTF-8) requests and responses.

Platforms

📊 Advertising & Media

  • Google Ads - Accounts, campaigns, ad groups, keywords, conversions and segmentations
  • Facebook Ads - Accounts, campaigns, ad sets, ads, creatives and breakdowns
  • Google Analytics - GA4 sessions, events, transactions, customers and products

🛒 E-commerce

  • Tray - Customers, orders and products
  • Shopify - Customers, orders, order items and products
  • VTEX - Orders and order items
  • E-commerce Summary - Aggregated order summary for VTEX, Shopify and Tray

🎯 CRM

  • HubSpot - Contacts, deals, companies, pipelines and products
  • Kommo - Leads, contacts, pipelines and users
  • CRM V4 - Leads, opportunities, companies, contacts and pipelines

📈 Analytics

  • Profitability - Profitability indicators, metric evolution and cohorts
  • Products - Sales, margin, stock and entry cohort per product
  • Acquisition - Funnel, channels, campaigns and paid media

Common API Patterns

Authentication

Every request requires the credentials in the headers and organizationId as a query parameter. See Authentication to generate your credentials.

x-client-id: your_client_id
x-client-secret: your_client_secret

Common Query Parameters

ParameterTypeDescriptionDefault
organizationIdstringOrganization IDrequired
pageintegerPage number1
limitintegerRecords per page (1 to 5000)500
orderBystringField to sort byvaries by endpoint
orderDirectionstringSort direction (ASC/DESC)varies by endpoint

Date filters and other parameters vary by endpoint; see each endpoint page. Pagination and rate limit details are in Limits and Best Practices.

Pagination

List endpoints are paginated with page and limit; the response carries the records in data and the pagination state in meta:

{
  "data": [...],
  "meta": {
    "page": 1,
    "limit": 500,
    "hasNextPage": true,
    "hasPreviousPage": false
  }
}
  • page starts at 1; limit ranges from 1 to 5000 (default 500). Out-of-range values are adjusted automatically.
  • To walk through every record, increment page while meta.hasNextPage is true.
  • Aggregated endpoints (such as E-commerce Summary) return a single result, without pagination. Check the response schema on each endpoint page.

Full examples in Limits and Best Practices.

Common errors

StatusWhen it happensHow to fix it
400Missing organizationId or invalid parameter (validation error)Send organizationId on every request and check parameter names, types and formats
401Missing x-client-id/x-client-secret headers or invalid credentialsCheck the headers or generate new credentials in Authentication
429Rate limit of 100 requests per minute per credential exceededWait for the Retry-After header and retry with exponential backoff
500Internal server errorRetry with backoff; if it persists, contact support

Error responses are JSON, with the problem description in message.

Next Steps

  1. Generate your credentials in Authentication
  2. Pick a platform from the sidebar
  3. Try the endpoints in each page's playground
  4. Learn how data is refreshed in Data Synchronization and Updates

On this page