Complete reference for integrating Agentic Tourism API into your applications
The Agentic Tourism API uses API keys to authenticate requests. You can view and manage your API keys in your dashboard.
Include your API key in the Authorization header of each request:
For applications that need to access multiple businesses, OAuth 2.0 authentication will be available soon.
Rate limit information is included in response headers:
Send a chat message and receive an AI-powered response with relevant booking options.
Parameter | Type | Required | Description |
---|---|---|---|
business_id | string | Required | Your unique business identifier |
message | string | Required | The user's chat message |
session_id | string | Required | Unique session identifier for conversation continuity |
language | string | Optional | ISO 639-1 language code (e.g., 'en', 'es', 'fr') |
metadata | object | Optional | Additional context data |
{ "id": "msg_789xyz", "message": "We have several tours available tomorrow! Here are your options:", "booking_options": [ { "id": "tour_456", "name": "City Walking Tour", "time": "10:00 AM", "duration": "2 hours", "price": 45, "availability": 8 }, { "id": "tour_789", "name": "Sunset Boat Cruise", "time": "5:30 PM", "duration": "1.5 hours", "price": 65, "availability": 12 } ], "media": [ { "type": "image", "url": "https://cdn.agentictourism.com/tours/city-walk.jpg", "alt": "City Walking Tour" } ], "suggested_actions": ["book_tour", "more_info", "check_other_dates"] }
Retrieve booking availability and details for your business.
Parameter | Type | Description |
---|---|---|
date | string | ISO 8601 date format (YYYY-MM-DD) |
service_id | string | Filter by specific service/tour |
guests | integer | Number of guests |
Create a new booking through the API.
The API uses standard HTTP response codes to indicate success or failure.
Status Code | Description |
---|---|
200 OK | Request succeeded |
400 Bad Request | Invalid request parameters |
401 Unauthorized | Invalid or missing API key |
404 Not Found | Resource not found |
429 Too Many Requests | Rate limit exceeded |
500 Internal Server Error | Server error - please contact support |
{ "error": { "code": "invalid_parameter", "message": "The 'date' parameter must be in YYYY-MM-DD format", "field": "date" } }
Subscribe to real-time events for bookings, leads, and conversations.
Triggered when a new booking is created
Triggered when a new lead is captured through chat