Skip to main content
POST
/
events
/
public
/
eventDates
Get public event dates
curl --request POST \
  --url https://api-dev.iclosed.io/events/public/eventDates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "linkPrefix": "<string>",
  "timeZone": "<string>",
  "currentDate": "06/01/2025",
  "priorityUsers": "<string>",
  "customDays": 45,
  "enablePast": false,
  "isWeeklyView": false,
  "contactId": 123,
  "eventCallId": 123
}'
{
"data": {
"isPreview": false,
"availabilities": [
"2025-06-01",
"2025-06-02",
"2025-06-03"
]
}
}

Authorizations

Authorization
string
header
required

API key required in 'Authorization' header. Format: iclosed-<token>

Body

application/json

The unique prefix identifier for the event link

timeZone
string
required

Valid timezone identifier for date/time calculations (e.g., 'America/New_York', 'Asia/Karachi', 'Europe/London')

currentDate
string
required

The date to start looking for available slots from (MM/DD/YYYY format). If isWeeklyView is true, must be first day of week (Sunday). If isWeeklyView is false, must be the first day of the month. Must be a valid date.

Example:

"06/01/2025"

priorityUsers
string

Comma-separated list of user IDs to prioritize in slot generation

customDays
integer

Custom number of days to look ahead for available slots. If not provided, uses event's default date range. Must be less than or equal to 90 days.

Required range: 1 <= x <= 90
enablePast
boolean
default:false

Whether to include past dates in the available slots

isWeeklyView
boolean
default:false

Whether to show slots in weekly view format

contactId
integer

If you want to double book based on the double booking rules of questions answered by contact, provide the contact id

eventCallId
integer

ID of the event call to check availability for

Response

Successfully retrieved event dates

data
object
I