Get started with LangWatch Skills in seconds: Set up evals, scenario tests, and tracing just by asking your AI coding assistant.
import requests
url = "https://app.langwatch.ai/api/api-keys"
payload = {
"name": "<string>",
"bindings": [{ "scopeId": "<string>" }]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"token": "<string>",
"apiKey": {
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}Create a new API key. For service keys, pass keyType:“service”. Optionally scope to specific projects via projectIds (ADMIN on each). Omit projectIds for full org access. The plaintext token is returned once — store it securely.
import requests
url = "https://app.langwatch.ai/api/api-keys"
payload = {
"name": "<string>",
"bindings": [{ "scopeId": "<string>" }]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"token": "<string>",
"apiKey": {
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://langwatch.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
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}.
Human-readable name for this token
1 - 100Role bindings that define what this token can access
1 - 20 elementsShow child attributes
Optional description
500Optional expiration date (ISO 8601)
personal = tied to a user. service = not tied to any user, for automation.
personal, service For service keys with restricted scope: list of project IDs to grant ADMIN access to. Omit for full org access.
50Was this page helpful?