View Architecture Docs

AI Agent Interface

Interactive API Playground

Test and explore the Agent API Gateway in real-time. Search, compare, and generate booking handoffs programmatically.

5
API Endpoints
<100ms
Avg Response
100%
Normalized
REST
JSON API

Quick Start Code Examples

1. Search Experiences

// Search for yoga experiences in Lagos under €60
const response = await fetch(
  'https://sxdapqwyzrlbjynqcvkq.supabase.co/functions/v1/make-server-83b38943/api/agent/search?query=yoga&location=Lagos&max_price=60',
  { headers: { 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InN4ZGFwcXd5enJsYmp5bnFjdmtxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjEyOTgyMzMsImV4cCI6MjA3Njg3NDIzM30.FiRhrMr0eA9Rrp5AAU4uJM2frpSjI3JtQkEThl4Hpwk' } }
);
const data = await response.json();
console.log(`Found ${data.total_count} offers`);

2. Compare Offers

// Compare multiple offers
const response = await fetch('https://sxdapqwyzrlbjynqcvkq.supabase.co/functions/v1/make-server-83b38943/api/agent/compare', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InN4ZGFwcXd5enJsYmp5bnFjdmtxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjEyOTgyMzMsImV4cCI6MjA3Njg3NDIzM30.FiRhrMr0eA9Rrp5AAU4uJM2frpSjI3JtQkEThl4Hpwk'
  },
  body: JSON.stringify({
    uoo_ids: ['uoo_abc123', 'uoo_xyz789', 'uoo_def456']
  })
});
const comparison = await response.json();

3. Generate Booking Handoff

// Generate booking handoff URL
const response = await fetch('https://sxdapqwyzrlbjynqcvkq.supabase.co/functions/v1/make-server-83b38943/api/agent/handoff', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InN4ZGFwcXd5enJsYmp5bnFjdmtxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjEyOTgyMzMsImV4cCI6MjA3Njg3NDIzM30.FiRhrMr0eA9Rrp5AAU4uJM2frpSjI3JtQkEThl4Hpwk'
  },
  body: JSON.stringify({
    uoo_id: 'uoo_abc123',
    user_context: { session_id: 'agent_session_123' }
  })
});
const handoff = await response.json();
console.log(handoff.booking_url);

API Endpoints

GET/api/agent/search
GET/api/agent/offers/:id
POST/api/agent/compare
POST/api/agent/handoff
POST/api/agent/refresh-cache

This is a live interface to the Agent API Gateway.

All results are fetched in real-time from the Unified Offer Cache.

For architectural documentation, visit /agentic