Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mind-e.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

POST /booking/public/create

Authentication

None required (public endpoint).

Request body

agentId
string
required
The agent ID.
conversationId
string
required
The conversation ID where the booking was initiated.
date
string
required
Booking date in YYYY-MM-DD format.
time
string
required
Booking time in HH:MM format.
durationOptionId
string
required
ID of the selected duration option (from Get Config).
formData
object
required
Key-value pairs of form field responses. Keys are the field IDs from the booking config.

Response

success
boolean
booking
object

Example

curl -X POST https://api.mind-e.co/booking/public/create \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "agent-id-here",
    "conversationId": "conv-id-here",
    "date": "2026-03-05",
    "time": "10:00",
    "durationOptionId": "opt-1",
    "formData": {
      "name": "Jane Smith",
      "email": "jane@example.com"
    }
  }'

Response

{
  "success": true,
  "booking": {
    "id": "booking-123",
    "booking_code": "BK-A1B2C3",
    "booking_date": "2026-03-05",
    "start_time": "10:00:00",
    "end_time": "10:30:00",
    "duration_minutes": 30,
    "duration_label": "30-minute call",
    "timezone": "America/New_York",
    "status": "confirmed",
    "form_data": {
      "name": "Jane Smith",
      "email": "jane@example.com"
    }
  }
}