Skip to content

Client Creation

Basic example showing how to create a CVAT client with API key authentication.

This example assumes using CVAT; is in scope and apiKey contains your CVAT API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// Create a CVAT client using an API Access token.
// You can generate a token in the CVAT UI under User Profile > Access Tokens,
// or via the /auth/access_tokens API endpoint.
using var client = new CVATClient(apiKey);

// The client provides access to all CVAT API endpoints via sub-clients:
// - client.Projects — manage annotation projects
// - client.Tasks — manage annotation tasks
// - client.Jobs — manage annotation jobs
// - client.Labels — manage annotation labels/categories
// - client.Users — manage users
// - client.Organizations — manage organizations