Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/bentlyy/Clinica/llms.txt

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

Cancels an existing appointment. The server deletes the record only when the booking ID and the authenticated user’s ID both match — preventing patients from cancelling each other’s appointments. After a successful cancellation, Clinica sends a confirmation email to the patient asynchronously.

Request

DELETE /api/bookings/:id — requires the patient JWT that created the booking.

Headers

Authorization
string
required
Bearer token. Format: Bearer <token>

Path parameters

id
integer
required
ID of the booking to cancel.

Response

message
string
Confirmation string. Value: "Booking cancelled successfully"

Errors

StatusCause
400Booking not found, or the booking belongs to a different user.
curl --request DELETE \
  --url https://your-clinica-host/api/bookings/42 \
  --header 'Authorization: Bearer <token>'
{
  "message": "Booking cancelled successfully"
}

Build docs developers (and LLMs) love