POST
/
calendar
/
create_calendar
Create Calendar
curl --request POST \
  --url https://api.meestream.ai/v1/calendar/create_calendar \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "google_client_id": "<string>",
  "google_client_secret": "<string>",
  "google_refresh_token": "<string>",
  "bot_name": "<string>",
  "audio_required": true,
  "video_required": true,
  "bot_message": "<string>",
  "transcription": {
    "deepgram": {
      "model": "<string>",
      "language": "<string>"
    }
  }
}'
{
  "message": "<string>",
  "events_fetched": 123,
  "calendars_processed": 123,
  "user_email": "<string>"
}

Authorizations

Authorization
string
header
required

All API endpoints are authenticated using API Keys. The key should be included in the 'Authorization' header, prefixed with 'Token '. Example: 'Authorization: Token YOUR_API_KEY'.

Body

application/json
google_client_id
string
required

Google OAuth client ID for calendar access

google_client_secret
string
required

Google OAuth client secret for calendar access

google_refresh_token
string
required

Google OAuth refresh token for maintaining calendar access

bot_name
string
required

Name of the bot the joins event

audio_required
boolean
required

Whether audio is required for the bot

video_required
boolean
required

Whether video is required for the bot

bot_message
string
required

Message for the bot to say on join

transcription
object
required

Transcription configuration

Response

Calendar created successfully and events fetched.

message
string
required

Success message

events_fetched
integer
required

Number of events fetched

calendars_processed
integer
required

Number of calendars processed

user_email
string
required

Email of the user