Follow these steps to generate your Client ID, Key ID, and Private Key from Apple Business Manager
Log in to business.apple.com with an account that has Administrator or Device Enrollment Manager role.
Go to Settings → API Integration (or Integrations → API).
Click "Create API Key" or "Generate New Key". Give it a descriptive name (e.g., "Device Valuation App").
After creating the key, Apple will provide you with:
BUSINESSAPI. (e.g., BUSINESSAPI.xxxx-xxxx-xxxx-xxxx)xxxx-xxxx-xxxx-xxxx).pemImportant: The private key file can only be downloaded once. Save it securely! If you lose it, you'll need to create a new API key.
Make sure your API key has the following scopes/permissions:
business.api - Access to organization devicesFor detailed instructions, visit Apple's API Integration documentation.