Skip to main content
Connect to Apple School Manager or Apple Business using an API account and its private key
This guide walks you through creating an API account in Apple School Manager or Apple Business and connecting it to Ravenna.

Prerequisites

Before you begin, ensure you have:
  • An Apple School Manager or Apple Business account
  • The Administrator role in Apple School Manager, or the Organization Administrator role in Apple Business, to create the API account
  • Organization Admin access in Ravenna
Apple School & Business Manager is organization-scoped. Each Ravenna organization can connect one Apple account.

Setup guide

Create an API account

1

Open the API settings

In Apple School Manager or Apple Business, open your account name, then Preferences, then API.
2

Create an API account

Create an API account for Ravenna and download its private key (.pem). Apple offers the download only once, so keep the file.
3

Copy the IDs

Copy the Client ID and Key ID shown on the API account.

Apple School and Business Manager API documentation

Learn more about API accounts and keys in Apple School Manager and Apple Business.

Add integration

1

Navigate to integrations

  1. Go to Settings > Integrations
  2. Find Apple School & Business Manager in the Device Management section
2

Select Apple School & Business Manager

Click Connect on the Apple School & Business Manager integration card
3

Enter the API account

Provide the following information:
string
required
The Apple product your API account was created in: Apple Business or Apple School Manager.
string
required
The Client ID shown on the API account, for example BUSINESSAPI.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
string
required
The Key ID shown on the same API account.
string
required
The whole .pem file Apple generated for the API account, from -----BEGIN PRIVATE KEY----- to -----END PRIVATE KEY-----.
4

Complete setup

Click Connect. Ravenna requests an access token from Apple with the API account, then reads your MDM servers to test the connection.Asset sync is on by default, so the first sync starts as soon as the connection is created, unless the integration is paused. After that it runs every 12 hours. Change the cadence with Sync Interval on the integration’s settings.

Troubleshooting

Cause: Product doesn’t match the product the API account was created in.Solution: Choose the other Product and connect again. A Client ID starting with BUSINESSAPI. belongs to Apple Business. When the Client ID looks like the other product’s, the error says so.
Cause: The Client ID, Key ID and private key don’t match an active API account, or the key was revoked.Solution:
  • Check that all three come from the same API account, with no extra spaces
  • Paste the whole .pem file, including the BEGIN and END lines
  • If the key was revoked, create a new one in Apple School Manager or Apple Business and connect again
Cause: The API account doesn’t have access to the API.Solution: Check the API account’s access in Apple School Manager or Apple Business under Preferences > API.
Cause: Apple didn’t answer.Solution: Try again in a few minutes.
Cause: Apple no longer accepts the connection’s API account, usually because its key was revoked, or the API account lost access.Solution: Create a new key in Apple School Manager or Apple Business and reconnect with it. If the API account lost access, check it under Preferences > API.
Last modified on December 4, 2026