Shop Lightbeam AI Agent API
Voice assistants, chatbots, and AI agents can order delivery through natural language
Shop Lightbeam provides an AI-friendly API that allows any AI system to browse local vendors, search products, and place orders on behalf of users. Perfect for voice assistants, chatbots, and autonomous agents.
Fast Integration
Simple JSON API with structured responses
Secure
API key authentication per user
Well Documented
Clear schemas and examples
POST https://shop-lightbeam.com/api/ai
Headers:
x-api-key: sk_your_api_key_here
Content-Type: application/jsonUsers can generate API keys from their account dashboard. Each key is tied to a specific user account.
Find local vendors by name, category, or cuisine type.
{
"action": "search",
"query": "pizza",
"location": "Toronto"
}{
"success": true,
"results": [
{
"vendor_id": "v123",
"name": "Tony's Pizza",
"category": "restaurant",
"is_open": true,
"page_url": "https://shop-lightbeam.com/vendor?id=v123"
}
]
}Retrieve full menu/catalog with items and pricing.
{
"action": "get_vendor_menu",
"vendor_id": "v123"
}Create an order (returns payment URL for user to complete).
{
"action": "place_order",
"vendor_id": "v123",
"items": [
{"item_id": "i456", "quantity": 2}
],
"delivery_address": "123 Main St, Toronto, ON M5V 1A1",
"customer_name": "John Doe",
"customer_phone": "+14165551234",
"special_instructions": "Ring doorbell twice"
}{
"success": true,
"order_id": "ord789",
"total_amount": 45.99,
"payment_url": "https://shop-lightbeam.com/checkout?temp_order_id=ord789",
"note": "Order confirmed after payment"
}Get real-time order status and tracking.
{
"action": "get_order_status",
"order_id": "ord789"
}Returns full API documentation with all actions and parameters.
{"action": "help"}User:
"Order me a large pepperoni pizza"
AI Agent → API:
AI Agent → API:
AI Agent:
"I found Tony's Pizza. A large pepperoni costs $18.99. Shall I place the order?"
User:
"Yes, deliver to my home"
AI Agent → API:
AI Agent:
"Order placed! Check your phone for a payment link. Your pizza will arrive in 30 minutes."
All errors return clear messages with hints:
{
"success": false,
"error": "Missing required field: delivery_address",
"hint": "Use action: 'help' to see API documentation"
}- No rate limits currently - fair use policy applies
- Cache vendor menus when possible to reduce API calls
- Orders require user action for payment completion
- Keep API keys secure - never expose in client-side code