---
title: "API overview"
description: "What the CloudLabs public API does and how it works."
---

The CloudLabs public API lets your systems do what the Admin portal does: list and create labs, add attendees, make activation codes and read progress. Use it to connect CloudLabs to your LMS, CRM, store or internal tools.

## At a glance

| | |
| --- | --- |
| **Base URL** | https://vnext-api.cloudlabs.ai |
| **Version** | `/v1` in every path, e.g. https://vnext-api.cloudlabs.ai/v1/labs |
| **Authentication** | OAuth 2.0 client credentials with Microsoft Entra ID; send the token as `Authorization: Bearer` |
| **Format** | JSON; errors as `application/problem+json` |
| **Paging** | `limit` 1–100 (default 25) and an opaque `nextCursor` |
| **Dates** | Lab days as `yyyy-MM-dd`; timestamps in UTC with `Z` |

## What you can do

- **Labs:** list, read, create (with `?dryRun=true` to check first), change, publish, open or close registration, copy and archive.
- **Attendees:** add an attendee and get their launch URL, list attendees with progress, delete or extend a deployment.
- **Templates:** list the templates your client may use.
- **Codes:** list and create activation codes.

:::steps
### Get credentials
Create an API client in the Admin portal. See [Get API credentials](/api/get-api-credentials).

### Get a token
Request a token from Microsoft Entra ID. See [Authentication](/api/authentication).

### Call the API
```bash title="cURL"
curl -s "https://vnext-api.cloudlabs.ai/v1/labs?limit=25" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```
:::

## What a client can reach

A client's access is the overlap of three things: its access level, the scopes it was given and your organisation's plan. A call outside them is refused with a clear error; see [Errors](/api/errors).

:::info
The full API reference, with every operation and a "Try it" console, is on this site under **API reference**.
:::
