Generate API Credentials
Client credentials are the recommended way for backend services, data pipelines, and LMS integrations to authenticate with the Udacity Public API. Client credentials are company-scoped, can be rotated programmatically, and generate short-lived tokens that expire automatically.
Prerequisites
- You must be a Company Admin in the Udacity Management Portal.
- Your company must have an active Udacity Enterprise subscription.
Steps
1. Open the API Credentials page
Navigate to your company’s API Credentials settings in the Management Portal:
https://manage.udacity.com/c/<your-company-slug>/settings/api-tokensReplace <your-company-slug> with your company’s URL slug (e.g., acme-corp).
2. Create a new client credential
- Click Create Client Credential.
- The credential will be automatically scoped to your company. If you are an admin of multiple companies, you may scope a single credential to more than one company.
- Click Create.
3. Copy and securely store your credentials
Important: The full Client Secret is shown only once at creation time. Copy it immediately and store it securely (e.g., in a secrets manager or environment variable). Subsequent views show only a redacted hint (e.g.,
udcs_••••••••a1b2).
You will receive:
| Field | Format | Description |
|---|---|---|
clientId | udcl_<32 hex chars> | Public identifier for your credential |
clientSecret | udcs_<random> | Secret used to generate tokens — store this securely |
Credential scopes
Once a token is generated from a credential, it carries a COMPANY scope automatically — no manual scope configuration is required.
What’s next
- Authentication — Exchange your credentials for a token and use it in API requests
- Make Your First Request — Send your first GraphQL query