curl --request POST \
--url https://app.attendee.dev/api/v1/calendars \
--header 'Authorization: Token YOUR_API_KEY_HERE' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "123456789-abcdefghijklmnopqrstuvwxyz.apps.googleusercontent.com",
"client_secret": "GOCSPX-abcdefghijklmnopqrstuvwxyz",
"refresh_token": "1//04abcdefghijklmnopqrstuvwxyz",
"platform": "google",
"metadata": {
"tenant_id": "1234567890"
},
"deduplication_key": "user-abcd"
}'
{
"id": "cal_abcdef1234567890",
"platform": "google",
"client_id": "123456789-abcdefghijklmnopqrstuvwxyz.apps.googleusercontent.com",
"platform_uuid": "[email protected]",
"state": "connected",
"metadata": {
"tenant_id": "1234567890"
},
"deduplication_key": "user-abcd",
"connection_failure_data": null,
"created_at": "2025-01-13T10:30:00.123456Z",
"updated_at": "2025-01-13T10:30:00.123456Z",
"last_successful_sync_at": null,
"last_attempted_sync_at": null
}
After being created, the calendar will be connected to the specified calendar platform.
curl --request POST \
--url https://app.attendee.dev/api/v1/calendars \
--header 'Authorization: Token YOUR_API_KEY_HERE' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "123456789-abcdefghijklmnopqrstuvwxyz.apps.googleusercontent.com",
"client_secret": "GOCSPX-abcdefghijklmnopqrstuvwxyz",
"refresh_token": "1//04abcdefghijklmnopqrstuvwxyz",
"platform": "google",
"metadata": {
"tenant_id": "1234567890"
},
"deduplication_key": "user-abcd"
}'
{
"id": "cal_abcdef1234567890",
"platform": "google",
"client_id": "123456789-abcdefghijklmnopqrstuvwxyz.apps.googleusercontent.com",
"platform_uuid": "[email protected]",
"state": "connected",
"metadata": {
"tenant_id": "1234567890"
},
"deduplication_key": "user-abcd",
"connection_failure_data": null,
"created_at": "2025-01-13T10:30:00.123456Z",
"updated_at": "2025-01-13T10:30:00.123456Z",
"last_successful_sync_at": null,
"last_attempted_sync_at": null
}
Authorization header.
google or microsoft)google or microsoft)connected or disconnected)curl --request POST \
--url https://app.attendee.dev/api/v1/calendars \
--header 'Authorization: Token YOUR_API_KEY_HERE' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "123456789-abcdefghijklmnopqrstuvwxyz.apps.googleusercontent.com",
"client_secret": "GOCSPX-abcdefghijklmnopqrstuvwxyz",
"refresh_token": "1//04abcdefghijklmnopqrstuvwxyz",
"platform": "google",
"metadata": {
"tenant_id": "1234567890"
},
"deduplication_key": "user-abcd"
}'
{
"id": "cal_abcdef1234567890",
"platform": "google",
"client_id": "123456789-abcdefghijklmnopqrstuvwxyz.apps.googleusercontent.com",
"platform_uuid": "[email protected]",
"state": "connected",
"metadata": {
"tenant_id": "1234567890"
},
"deduplication_key": "user-abcd",
"connection_failure_data": null,
"created_at": "2025-01-13T10:30:00.123456Z",
"updated_at": "2025-01-13T10:30:00.123456Z",
"last_successful_sync_at": null,
"last_attempted_sync_at": null
}