Skip to main content
POST
/
calendar
/
create
Create Calendar
curl --request POST \
  --url https://api.meestream.ai/api/v1/calendar/create \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "google_refresh_token": "<string>",
  "google_client_id": "<string>",
  "google_client_secret": "<string>"
}
'
{
  "calendar_id": "<string>",
  "platform": "<string>",
  "user_email": "<string>",
  "message": "<string>",
  "user_name": "<string>",
  "calendars": [
    {
      "id": "<string>",
      "summary": "<string>",
      "description": "<string>",
      "isPrimary": true,
      "accessRole": "<string>",
      "timeZone": "<string>",
      "backgroundColor": "<string>",
      "foregroundColor": "<string>",
      "selected": true
    }
  ],
  "primary_calendar_id": "<string>",
  "watch_setup": {
    "success": true,
    "watches_setup": 123,
    "total_selected": 123,
    "watch_results": "<array>",
    "failed_calendars": "<array>"
  }
}

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_refresh_token
string
required

Google OAuth refresh token for maintaining calendar access

google_client_id
string

Google OAuth client ID for calendar access (required if not in user config)

google_client_secret
string

Google OAuth client secret for calendar access (required if not in user config)

Response

Calendar created successfully.

calendar_id
string
required

Unique calendar identifier for the user

platform
string
required

Calendar platform (always "google_calendar")

user_email
string
required

User's Google account email

message
string
required

Success message

user_name
string

User's display name

calendars
object[]

List of calendars from the user's Google account

primary_calendar_id
string

ID of the primary calendar

watch_setup
object