Get the project API key
import requests
url = "https://app.langwatch.ai/api/projects/{id}/api-key"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/projects/{id}/api-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/projects/{id}/api-key \
--header 'Authorization: Bearer <token>'{
"apiKey": "<string>"
}Projects
Get project API key
Read the project’s API key, the credential SDKs and the ingestion endpoints authenticate with. Requires an admin API key holding project:update on this project.
GET
/
api
/
projects
/
{id}
/
api-key
Get the project API key
import requests
url = "https://app.langwatch.ai/api/projects/{id}/api-key"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/projects/{id}/api-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/projects/{id}/api-key \
--header 'Authorization: Bearer <token>'{
"apiKey": "<string>"
}Authorizations
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}.
Path Parameters
Project id
Response
The project's API key
Send as X-Auth-Token, Bearer, or Basic
Last modified on June 9, 2026
Was this page helpful?