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/cancel

Authentication

None required (public endpoint).

Request body

agentId
string
required
The agent ID.
bookingCode
string
required
The booking confirmation code (e.g., BK-A1B2C3).

Response

success
boolean
message
string
Confirmation message.

Cancellation rules

  • The booking must be in pending or confirmed status
  • User cancellation must be enabled in the agent’s booking config
  • The cancellation must meet the notice period requirement (e.g., 12 hours before the appointment)

Example

curl -X POST https://api.mind-e.co/booking/public/cancel \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "agent-id-here",
    "bookingCode": "BK-A1B2C3"
  }'

Response

{
  "success": true,
  "message": "Booking cancelled successfully"
}