Skip to main content
POST
/
calendar_oauth
cURL
curl --request POST \
  --url https://api.umified.com/api/v1/calendar_oauth/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'code=<string>' \
  --form 'redirect_uri=<string>' \
  --form platform=microsoft_outlook
{
  "result": {
    "refresh_token": "QWERTYUIOPASDFGHJKLZXCVBNM123456",
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkFwcENsaWVudElEIn0.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
    "oauth_client_id": "123e4567-e89b-12d3-a456-426614174000",
    "redirect_uri": "<string>"
  },
  "message": "Calendar connected successfully.",
  "status_code": 200,
  "destination": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data

Authorization code, redirect URI and platform in form-data.

code
string
required

The authorization code received from the OAuth provider.

redirect_uri
string
required

The redirect URI used in the OAuth flow.

platform
enum<string>
required

The calendar platform.

Available options:
microsoft_outlook,
google

Response

Calendar connected successfully.

result
object
required
message
string
required
Example:

"Calendar connected successfully."

status_code
integer
required
Example:

200

destination
string | null
required
Example:

null