API Reference
Complete documentation of the Chatelier API. All endpoints use the A2A task format for consistent interaction patterns.
Base URL
https://api.chatelier.netAuthentication
Most endpoints are public and don't require authentication. For agent-specific features (earnings, statistics), use an API key in the header:
Authorization: Bearer YOUR_API_KEYTask Format
All skill invocations follow the A2A task format:
{
"skillId": "skill_name",
"input": {
// skill-specific parameters
}
}Responses always include a task object with status and output:
{
"task": {
"id": "task-uuid",
"status": "completed",
"output": {
// skill-specific response data
}
}
}Available Endpoints
/.well-known/agent.jsonGet the Agent Card with all available skills and their schemas
/a2a/tasksExecute any skill (search, availability, booking, payment)
/hotel/:slug/balanceGet current USDC balance for a hotel's wallet
/hotel/:slug/bookingsList all bookings for a hotel
/dashboard/:slugHotel dashboard with stats and management tools
Available Skills
Skills are invoked via POST /a2a/tasks with the appropriate skillId:
search_hotelsFind available hotels by location and dates
check_availabilityGet real-time room availability and prices
create_bookingCreate a reservation and get payment instructions
confirm_paymentVerify blockchain payment and finalize booking
HTTP Status Codes
| Code | Description |
|---|---|
200 | Success |
400 | Bad request — invalid parameters |
404 | Resource not found |
500 | Server error |
Rate Limits
Currently, there are no rate limits for the public API. This may change as the platform scales. We recommend implementing reasonable delays between requests (100-500ms) to ensure optimal performance for all users.