> ## 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.

<Steps>
  <Step id="create-integration" title="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*.
  </Step>

  <Step id="connect-apple-calendar" title="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.
  </Step>

  <Step id="call-the-api" title="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](/docs/reference/backend/http-api/api-keys), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

    <Tabs>
      <Tab title="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>'
        ```
      </Tab>

      <Tab title="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);
        ```
      </Tab>
    </Tabs>

    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](/docs/reference/backend/backend-sdk/node#get-a-connection-with-credentials) or [API](/docs/reference/backend/http-api/connection/get).

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

  <Step id="implement-in-app" title="Implement Nango in your app">
    Follow our [Auth implementation guide](/docs/guides/auth/auth-guide) to integrate Nango in your app.

    To obtain your own production credentials, follow the connect guide linked below.
  </Step>
</Steps>

## 📚 Apple Calendar Integration Guides

Nango maintained guides for common use cases.

* [How do I link my Apple Calendar account?](/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](/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

Enable them in your dashboard. Extend and customize to fit your needs.

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

<Tip>Not seeing the integration you need? [Build your own](/docs/guides/functions/functions-guide) independently.</Tip>

***
