Intro
The Projects API lets you manage LangWatch projects via REST. When you create a project, a project-scoped service API key is automatically generated and returned, ready to use for sending traces. This API is designed for service-to-service automation (e.g. an internal tool that scaffolds new projects), not for end-user access.Authentication
The Projects API requires an organization-level API key (created in Settings > API Keys). Pass it as a Bearer token:X-Auth-Token) cannot be used here, because they lack organization context.
Endpoints
Dashboards boards
These routes read the boards of the Dashboards area in one project. Unlike the routes above, they take the project API key in theX-Auth-Token header, not an organization key.
A board in another project answers
404.
Moving a Project to Another Team
You can move a project to a different team by includingteamId in the PATCH request:
Typical Flow
- Create an admin API key in Settings > API Keys with
organization:managepermission - Call
POST /api/v1/projectswith the project name and either an existingteamIdor anewTeamName - Store the returned
serviceApiKeyand projectid - Use both values in your application:
The
serviceApiKey is shown only once in the create response. Store it securely, because you cannot
retrieve it later.