PlanDocket

Calendar

Business+

Calendar integration and iCal export.

Read Only This endpoint only supports GET requests.
Required scopes: calendar-feed

Endpoints

GET /api/v1/calendar-feed

Get iCal calendar feed

Query Parameters

Parameter Description
from Start date for calendar range (ISO 8601)
to End date for calendar range (ISO 8601)
visible Filter by visibility (0 or 1)

Response Schema

Field Type
content_type text/calendar
format iCalendar (RFC 5545)

Code Examples

curl -X GET "https://your-tenant.plandocket.com/api/v1/calendar-feed" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
<?php
$apiKey = 'YOUR_API_KEY';
$baseUrl = 'https://your-tenant.plandocket.com';

$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => $baseUrl . '/api/v1/calendar-feed',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . $apiKey,
        'Content-Type: application/json',
    ],
]);

$response = curl_exec($ch);
$data = json_decode($response, true);
curl_close($ch);

print_r($data);
const apiKey = 'YOUR_API_KEY';
const baseUrl = 'https://your-tenant.plandocket.com';

const response = await fetch(`${baseUrl}/api/v1/calendar-feed`, {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

api_key = 'YOUR_API_KEY'
base_url = 'https://your-tenant.plandocket.com'

headers = {
    'Authorization': f'Bearer {api_key}',
    'Content-Type': 'application/json',
}

response = requests.get(f'{base_url}/api/v1/calendar-feed', headers=headers)
data = response.json()
print(data)

Sample Response

200 OK
{
  "data": {
    "calendar_id": 1,
    "created_at": 1704067200,
    "updated_at": 1704067200
  },
  "meta": {
    "request_id": "req_abc123"
  }
}
Esc to close