> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Apple Calendar

> Integrate your application with Apple Calendar (iCloud) via CalDAV

## 🚀 Quickstart

Connect to Apple Calendar with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Apple Calendar*.

**2. Connect Apple Calendar**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Connect*, then enter your **Apple ID** and an **app-specific password**. Later, you'll let your users do the same directly from your app.

**3. Call the Apple Calendar API**

Apple Calendar uses CalDAV, which relies on the WebDAV `PROPFIND`/`REPORT` HTTP methods instead of `GET`/`POST`. Let's make your first request -- finding the current user's principal URL. Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

**cURL**

```bash theme={null}
curl -X PROPFIND "https://api.nango.dev/proxy/" \
  -H "Authorization: Bearer <NANGO-API-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>" \
  -H "Nango-Proxy-Depth: 0" \
  -H "Nango-Proxy-Content-Type: application/xml; charset=utf-8" \
  --data '<propfind xmlns="DAV:"><prop><current-user-principal/></prop></propfind>'
```

**Node**

Install Nango's backend SDK with `npm i @nangohq/node`. Then run:

```typescript theme={null}
import { Nango } from '@nangohq/node';

const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });

const res = await nango.proxy({
    method: 'PROPFIND',
    endpoint: '/',
    providerConfigKey: '<INTEGRATION-ID>',
    connectionId: '<CONNECTION-ID>',
    headers: {
        depth: '0',
        'content-type': 'application/xml; charset=utf-8'
    },
    data: '<propfind xmlns="DAV:"><prop><current-user-principal/></prop></propfind>'
});

console.log(res.data);
```

A successful response is a `207 Multi-Status` containing XML with an `href` like `/123456789/principal/` -- that numeric ID is the user's principal, used in further CalDAV requests (e.g. to list calendars or query events).

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/auth/auth-guide.md) to integrate Nango in your app.

To obtain your own production credentials, follow the connect guide linked below.

## 📚 Apple Calendar Integration Guides

Nango maintained guides for common use cases.

* [How do I link my Apple Calendar account?](https://nango.dev/docs/api-integrations/apple-calendar/connect)\
  Generate an app-specific password at appleid.apple.com and connect with your Apple ID.

Official docs: [Apple CalDAV and CardDAV Guide](https://developer.apple.com/library/archive/featuredarticles/CalendarCardDAV/index.html)

## API gotchas

* Apple Calendar (iCloud) uses CalDAV, a WebDAV-based protocol over HTTPS -- not a typical REST API. Meaningful requests use the `PROPFIND` and `REPORT` HTTP methods (not `GET`/`POST`), and always require an XML request body describing which properties or events you're asking for.
* Regular Apple ID passwords do not work for CalDAV. You must generate an **app-specific password** at [appleid.apple.com](https://appleid.apple.com) -- see the [connect guide](https://nango.dev/docs/api-integrations/apple-calendar/connect) for the exact steps.
* Managed Apple IDs (work/school accounts) may not support app-specific passwords, which would block CalDAV access entirely.

## 🧩 Pre-built syncs & actions for Apple Calendar

Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.

*No pre-built syncs or actions available yet.*

> [!TIP]
>
> Not seeing the integration you need? [Build your own](https://nango.dev/docs/guides/functions/functions-guide.md) independently.

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.