Create a calendar event
POST /v2/agenda/calendar/events
Request body
Content-Type: application/json
"GOOGLE", "OFFICE365"Example
{
"summary": "string"
}
Responses
200 — Successful response
Content-Type: application/json
"EMAIL", "CALENDAR"Example
{
"data": {
"calendar_event": {
"providerId": "string",
"type": "EMAIL",
"subjectOrTitle": "string",
"dateTime": "2026-09-17T02:39:21.249Z",
"participants": [
{
"email": "string"
}
],
"email": "string"
}
}
}
400 — Request body failed validation.
Content-Type: application/json
401 — Missing or invalid API key.
Content-Type: application/json
403 — Valid key, insufficient permission.
Content-Type: application/json
404 — Resource does not exist.
Content-Type: application/json
409 — Request conflicts with the current state of the resource.
Content-Type: application/json
429 — Rate limit exceeded.
Content-Type: application/json
500 — Unexpected server error.
Content-Type: application/json
Code samples
curl https://api.prod.getdex.com/v2/agenda/calendar/events \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"summary": "string"
}'
fetch('https://api.prod.getdex.com/v2/agenda/calendar/events', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
summary: 'string'
})
})
requests.post(
"https://api.prod.getdex.com/v2/agenda/calendar/events",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"summary": "string"
}
)
List calendar events
External calendar events fetched live from the authenticated user's connected Google / Office365 credentials via the sync-engine — there's no DB table. Optional `limit` and `dateRange.{start,end}` (IS
Search or list emails
Email search and listing across ALL of the authenticated user's connected mail accounts, fetched live from the providers (Google / Microsoft) — Dex stores no message content. Omit `searchQuery` to lis

