Skip to main content

Architecture

Understanding the technical architecture of PriveTag B2A Platform.

System Overview

Component Details

API Gateway

The entry point for all AI agent requests:

Recommendation Engine

Processes recommendation requests: Key Technologies:
  • Language: TypeScript (Node.js)
  • ML Model: Custom scoring algorithm
  • Cache: Redis for hot data

Booking Service

Handles booking creation and voucher delivery:

Inventory Hub

Aggregates availability from multiple sources: Inventory Priority:
  1. Direct venue partnerships (highest margin)
  2. Klook (good coverage, fast API)
  3. Viator (extensive catalog)
  4. GetYourGuide / KKday (backup)

Ground Truth Engine

Processes and stores verified visit data:

Data Flow

Recommendation Flow

Booking Flow

Database Schema

Core Tables

Caching Strategy

Cache Layers

Cache Keys

Scalability

Horizontal Scaling

Performance Targets

Security

API Security

  • Authentication: API key in x-api-key header
  • Rate Limiting: Per-key limits
  • IP Allowlisting: Optional for enterprise
  • Encryption: TLS 1.3 for all connections

Data Security

  • At Rest: AES-256 encryption
  • In Transit: TLS 1.3
  • PII Handling: Anonymization for ML
  • Retention: Configurable per client

Monitoring

Key Metrics

Alerting

Next Steps

Quickstart

Get started with the API

API Reference

Explore endpoints