Skip to contentSkip to page list

Docs

Create project

Create a new project in the organization. Returns the project with a newly minted service API key (serviceApiKey) for sending traces. Provide either teamId (existing team) or newTeamName (creates a new team). Requires project:create permission.

POST/api/v1/projects
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/projects"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "Authorization": "Bearer " + api_key,    "Content-Type": "application/json",}payload = {}​response = requests.post(    origin + path,    headers=headers,    json=payload,)print(response.json())

Success

application/json · Generated from schema

{  "id": "string",  "name": "string",  "slug": "string",  "language": "string",  "framework": "string",  "teamId": "string",  "createdAt": "2026-01-01T00:00:00Z",  "updatedAt": "2026-01-01T00:00:00Z",  "serviceApiKey": "string",  "serviceApiKeyId": "string"}
api-reference/projects/create-project

Authorization

Authorizationstringheaderrequired

Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.

Request body

application/json · Required

namestringrequired

Project name

At least 1 characterUp to 255 characters
teamIdstring

Id of an existing team to put the project in

At least 1 character
newTeamNamestring

Create a team with this name and put the project in it

At least 1 characterUp to 255 characters
languagestringrequired

Programming language, such as python or typescript

At least 1 character
frameworkstringrequired

Framework in use, such as langchain or openai

At least 1 character

Responses

201

Success

application/json

idstringrequired
At least 1 character
namestringrequired
slugstringrequired
languagestringrequired
frameworkstringrequired
teamIdstringrequired
At least 1 character
createdAtstring (date-time)required
updatedAtstring (date-time)required
serviceApiKeystringrequired
At least 1 character
serviceApiKeyIdstringrequired
At least 1 character
400

Team does not belong to this organization

401

Invalid or missing API key token

403

Insufficient permissions (requires project:create)

409

A project with this name already exists in the team

422

Validation error (missing required fields)

Documentation