---
title: "Get API credentials"
description: "Create an API client in the Admin portal."
---

API clients are created by your organisation's owners and by anyone allowed to manage API clients.

:::steps
### Open API access
In the Admin portal, go to **Settings › Integrations › API access** and select **Create API client**.

### Name it and choose scopes
Give the client a name (3–60 characters) that says what uses it, such as "LMS sync". Choose only the scopes it needs, and how long it lasts under **Expires in**.

### Copy the secret now
The next dialog shows the **Client ID**, **Client secret**, **Microsoft Entra tenant ID**, **Token URL**, **Scope**, **API base URL** and expiry date. Copy them to your secret store: "You won't see it again. If it's lost, rotate the secret."
:::

:::note
A new client can take up to a minute before its first token works.
:::

## Scopes

| Scope | Allows |
| --- | --- |
| `labs.read` | Read labs |
| `labs.write` | Create and manage labs |
| `labs.archive` | Archive labs (only owners can grant it) |
| `attendees.read` | Read attendees and progress — personal data; needs approval from CloudLabs support |
| `attendees.write` | Add attendees |
| `deployments.write` | Delete deployments |
| `templates.read` | Read templates |
| `codes.read` | Read activation codes |
| `codes.write` | Create activation codes |

## Look after a client

Each client's row offers **Rotate secret**, **Remove old secret**, **Disable**, **Delete** and **Activity**. Rotate before the expiry date: create the new secret, switch your system to it, then remove the old one.
