Manage Guests
Working with guest profiles in the Molzait API.
Overview
Guest profiles store contact information and reservation history. Reusing guest profiles enables:
- Faster reservation creation
- Personalized service
- Reservation history tracking
- Guest preferences
Search Guests
Search for guests using various filters:
Request
GET /external/guests?search={query}&limit={limit}&page={page}
Parameters
search(optional): Search query for names, email, phone, company, or notesemail(optional): Filter by exact emailphone(optional): Filter by exact phonecompany(optional): Filter by company namelocale(optional): Filter by locale (enorde)labelIds(optional): Filter by label IDshasEmail(optional): Only guests with emailhasPhone(optional): Only guests with phonelimit(optional): Max results (default/max: 100)page(optional): Page numbersortBy(optional): Sort field (e.g.,lastName:asc,totalVisits:desc)
Example - Search by Email
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.molzait.com/external/guests?email=john.doe@example.com"
Example - Search by Text
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.molzait.com/external/guests?search=john&limit=10&page=1"
Example - Search by Phone
Phone numbers should be in E.164 format (e.g., +436605512234). URL-encode the + as %2B:
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.molzait.com/external/guests?phone=%2B436605512234"
Response
[
{
"id": "e5e25ac76a2e-4f6d-8f8d-98e64ad283c3",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+436605512234",
"company": "BestCorp Inc.",
"locale": "de",
"notes": "Likes to drink red wine",
"labels": []
}
]
Note: The API does not support creating or updating guest profiles directly. Guests are automatically created and updated through reservation operations.
Guest Fields
Guests have the following fields:
id: Unique guest identifierfirstName: Guest first name (optional)lastName: Guest last name (required)email: Email address (optional)phone: Phone number in E.164 format (optional)company: Company name (optional)locale: Preferred locale (enorde)notes: Internal notes (optional)labels: Array of label objects
Using Guests in Reservations
Guests are automatically created or matched when creating reservations. Simply provide the guest information:
{
"attendees": 2,
"day": "2024-01-02",
"experienceId": "ad5b78a02ca8-4768-bd80-487130c73856",
"minutes": 600,
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"phone": "+436605512234",
"locale": "en"
}
Guest Deduplication
Molzait automatically detects and merges duplicate guests by:
- Exact email match
- Exact phone match
When creating reservations, if a matching guest exists, it will be reused automatically.
Best Practices
- Search first - Use search endpoint to check if guest exists
- Validate email/phone - Ensure correct format
- Use E.164 format - Phone numbers with country code (e.g.,
+436605512234) - Provide email or phone - At least one contact method for better matching
- Consistent locale - Set appropriate locale for communications