Python
import requests
url = "https://app.langwatch.ai/api/organization/invites"
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/organization/invites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/organization/invites \
--header 'Authorization: Bearer <token>'{
"invites": [
{
"id": "<string>",
"email": "<string>",
"status": "<string>",
"expiration": "<string>",
"inviteCode": "<string>",
"inviteUrl": "<string>",
"teams": [
{
"teamId": "<string>",
"role": "<string>",
"customRoleId": "<string>"
}
],
"createdAt": "<string>"
}
]
}Invites
List invites
List pending invites. Each carries its invite code and acceptance link, because a provisioning run with no email provider still has to hand the person something to open.
GET
/
api
/
organization
/
invites
Python
import requests
url = "https://app.langwatch.ai/api/organization/invites"
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/organization/invites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/organization/invites \
--header 'Authorization: Bearer <token>'{
"invites": [
{
"id": "<string>",
"email": "<string>",
"status": "<string>",
"expiration": "<string>",
"inviteCode": "<string>",
"inviteUrl": "<string>",
"teams": [
{
"teamId": "<string>",
"role": "<string>",
"customRoleId": "<string>"
}
],
"createdAt": "<string>"
}
]
}Was this page helpful?
⌘I