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}.
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.
Try this endpoint
app.langwatch.ai
API key · Authorization
Kept in this tab. Cleared when you reload.
Project name
Programming language, such as python or typescript
Framework in use, such as langchain or openai
Id of an existing team to put the project in
Create a team with this name and put the project in it
This sends a live request to app.langwatch.ai.
Request and response examples
import osimport requestsorigin = "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())const url = "https://app.langwatch.ai/api/v1/projects";const response = await fetch(url, { method: "POST", headers: { "Authorization": "Bearer " + process.env.LANGWATCH_API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({}),});const data = await response.json();curl --request POST \ --url 'https://app.langwatch.ai/api/v1/projects' \ --header "Authorization: Bearer $LANGWATCH_API_KEY" \ --header 'Content-Type: application/json' \ --data '{}'Call the LangWatch API from this project: Create a project.Request: POST https://app.langwatch.ai/api/v1/projectsReference: https://langwatch.ai/docs/api-reference/projects/create-project.mdAuthentication: send the Authorization header as a Bearer token, read from the LANGWATCH_API_KEY environment variable. Never hard-code the key.Body (application/json):```json{}```Use the HTTP client this project already uses, handle non-2xx responses, and show me the parsed result.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"}Team does not belong to this organization
Invalid or missing API key token
Insufficient permissions (requires project:create)
A project with this name already exists in the team
Validation error (missing required fields)
Request body
application/json · Required
namestringrequiredProject name
teamIdstringId of an existing team to put the project in
newTeamNamestringCreate a team with this name and put the project in it
languagestringrequiredProgramming language, such as python or typescript
frameworkstringrequiredFramework in use, such as langchain or openai
Responses
201Success
application/json
idstringrequirednamestringrequiredslugstringrequiredlanguagestringrequiredframeworkstringrequiredteamIdstringrequiredcreatedAtstring (date-time)requiredupdatedAtstring (date-time)requiredserviceApiKeystringrequiredserviceApiKeyIdstringrequired