Python
import requests
url = "https://app.langwatch.ai/api/v1/organizations"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://app.langwatch.ai/api/v1/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.langwatch.ai/api/v1/organizations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"organization": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"team": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"adminApiKey": {
"id": "<string>",
"token": "<string>"
}
}Organizations (Self-Hosted)
Create an organization
Provision a new organization with its first team and a bootstrap admin service key, self-hosted instance administrators only.
POST
/
api
/
v1
/
organizations
Python
import requests
url = "https://app.langwatch.ai/api/v1/organizations"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://app.langwatch.ai/api/v1/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.langwatch.ai/api/v1/organizations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"organization": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"team": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"adminApiKey": {
"id": "<string>",
"token": "<string>"
}
}Authorizations
Instance administrator key, set as LANGWATCH_INSTANCE_ADMIN_API_KEY on a self-hosted deployment. It exists to create the first organization, before any organization key does; every other management API takes an organization key instead.
Body
application/json
Last modified on October 12, 2026
Was this page helpful?