Appointments API

Create or Update Appointment

POST https://api.getlivepass.com/appointment/<id>

Create or update Appointment. Email notification will be sent when email is valid and silent=false

Headers

Body

Request

curl 'https://api.getlivepass.com/appointment/1003' \
  -H 'Authorization: API_KEY <your_api_key>' \
  --data-raw '{"full_name":"John Appleseed","email":"john.appleseed@getlivepass.com","phone_number":"","barcode_type":"qr","barcode_data":"1003","silent":false,"balance_amount":"","balance_currency":"","membership_tier":"","title":"Health Check-up","date":"Nov 6, 2024","time":"10:00am","duration":"60min","url":"https://example.com/appointments/edit/1003","location_name":"Mainland Hospital","location_address":"LivePass Street, 12","location_url":"https://example.com/address/mainland-hospital"}'

Response

{
  "type": "appointment",
  "id": "1003",
  "body": {
    "full_name": "John Appleseed",
    "email": "john.appleseed@getlivepass.com",
    "phone_number": "",
    "barcode_type": "qr",
    "barcode_data": "1003",
    "silent": false,
    "title": "Health Check-up",
    "date": "Nov 6, 2024",
    "time": "10:00am",
    "duration": "60min",
    "url": "https://example.com/appointments/edit/1003",
    "location_name": "Mainland Hospital",
    "location_address": "LivePass Street, 12",
    "location_url": "https://example.com/address/mainland-hospital"
  },
  "message": "Pass requested"
}

Use this endpoint to send Appointment or update information on existing pass. User will be notified when you change:

  • title

  • date

  • time

  • duration

  • location_name

  • location_address

  • location_url


Get Appointment

GET https://api.getlivepass.com/appointment/<id>

Get Appointment info including links to preview or download.

Headers

Request

curl 'https://api.getlivepass.com/appointment/1003' \
  -H 'Authorization: API_KEY <your_api_key>'

Response

{
  "message": "Pass retrieved",
  "body": {
    "version": 1,
    "created_at": 1728203404,
    "barcode_data": "1003",
    "location_url": "https://example.com/address/mainland-hospital",
    "barcode_type": "qr",
    "time": "10:00am",
    "silent": false,
    "full_name": "John Appleseed",
    "url": "https://example.com/appointments/edit/1003",
    "email": "john.appleseed@getlivepass.com",
    "location_name": "Mainland Hospital",
    "date": "Nov 6, 2024",
    "token": "[REDACTED]",
    "last_updated_at": 1728203629,
    "phone_number": "",
    "duration": "60min",
    "location_address": "LivePass Street, 12",
    "title": "Health Check-up",
    "type": "appointment"
  },
  "links": {
    "web": "https://app.getlivepass.com/view/...",
    "apple": "https://app.getlivepass.com/apple/..."
  },
  "id": "1003",
  "type": "appointment"
}

Do you have any questions, feedback or ideas? Contact us by email or live chat.

Last updated