-
Notifications
You must be signed in to change notification settings - Fork 56
API Reference
mrofisr edited this page Jul 17, 2026
·
1 revision
All API endpoints use Zod schema validation for type-safe request handling.
Retrieves wedding details including agenda and bank accounts.
Parameters:
| Name | Type | Description |
|---|---|---|
uid |
string | Wedding identifier (lowercase letters, numbers, hyphens only) |
Response:
{
"uid": "wedding-2025",
"title": "Wedding of Ahmad & Fatimah",
"groom_name": "Ahmad",
"bride_name": "Fatimah",
"date": "2025-06-15",
"agenda": [...],
"banks": [...]
}Retrieves paginated wishes for a wedding.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
uid |
string | required | Wedding identifier |
limit |
number | 50 | Number of wishes to return (max 100) |
offset |
number | 0 | Pagination offset |
Creates new wish with attendance status.
Request Body:
{
"name": "Guest Name",
"message": "Congratulations!",
"attendance": "ATTENDING"
}Validation:
| Field | Rules |
|---|---|
name |
1-100 characters, automatically trimmed |
message |
1-500 characters, automatically trimmed |
attendance |
ATTENDING, NOT_ATTENDING, or MAYBE (default: MAYBE) |
Deletes a specific wish (admin function).
Parameters:
| Name | Type | Description |
|---|---|---|
uid |
string | Wedding identifier |
id |
number | Wish ID to delete |
Returns attendance statistics.
Response:
{
"attending": 45,
"not_attending": 12,
"maybe": 8,
"total": 65
}All endpoints return validation errors in this format:
{
"success": false,
"error": {
"issues": [
{
"path": ["name"],
"message": "Name must be less than 100 characters"
}
]
}
}| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 204 | No Content |
| 400 | Validation Error |
| 404 | Not Found |
| 409 | Conflict |
| 500 | Server Error |