curl --request POST \
--url https://api.helloannie.com/v1/organizations/{orgId}/closures \
--header 'Authorization: Bearer annie-sk-v2-xxxxx' \
--header 'Content-Type: application/json' \
--data '{
"description": "Staff training",
"recurrence": "NONE",
"start": {
"year": 2026,
"month": 11,
"day": 13,
"time": "12:00"
},
"end": {
"year": 2026,
"month": 11,
"day": 13,
"time": "17:00"
},
"chatGreeting": "Our office is closed this afternoon for staff training. How can I help?",
"phoneGreeting": "Thank you for calling. Our office is closed this afternoon for staff training. How can I help?"
}'{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "Staff training",
"recurrence": "NONE",
"start": {
"year": 2026,
"month": 11,
"day": 13,
"time": "12:00"
},
"end": {
"year": 2026,
"month": 11,
"day": 13,
"time": "17:00"
},
"chatGreeting": "Our office is closed this afternoon for staff training. How can I help?",
"phoneGreeting": "Thank you for calling. Our office is closed this afternoon for staff training. How can I help?",
"enabled": true
}
}Create closure
Create a one-time or annual office closure. Set recurrence to NONE (start and end include year) or ANNUAL (omit year; the closure repeats every year). start and end are local dates and times in the organization’s timezone; the office reopens at end, and an all-day closure runs from 00:00 to 24:00. Both chatGreeting and phoneGreeting are required. The closure overrides regular office hours and breaks. Custom greetings replace the corresponding closed greeting. Closures are enabled unless enabled is false; disable or re-enable one later with Update closure.
curl --request POST \
--url https://api.helloannie.com/v1/organizations/{orgId}/closures \
--header 'Authorization: Bearer annie-sk-v2-xxxxx' \
--header 'Content-Type: application/json' \
--data '{
"description": "Staff training",
"recurrence": "NONE",
"start": {
"year": 2026,
"month": 11,
"day": 13,
"time": "12:00"
},
"end": {
"year": 2026,
"month": 11,
"day": 13,
"time": "17:00"
},
"chatGreeting": "Our office is closed this afternoon for staff training. How can I help?",
"phoneGreeting": "Thank you for calling. Our office is closed this afternoon for staff training. How can I help?"
}'{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "Staff training",
"recurrence": "NONE",
"start": {
"year": 2026,
"month": 11,
"day": 13,
"time": "12:00"
},
"end": {
"year": 2026,
"month": 11,
"day": 13,
"time": "17:00"
},
"chatGreeting": "Our office is closed this afternoon for staff training. How can I help?",
"phoneGreeting": "Thank you for calling. Our office is closed this afternoon for staff training. How can I help?",
"enabled": true
}
}Authorizations
Body
Set recurrence, start, and end. Dates and times are local to the organization's timezone; an all-day closure runs from 00:00 on its first day to 24:00 on its last day. Omit enabled to create an enabled closure.