List projects
curl --request GET \
--url https://voice-api.onclarity.com/v1/projects \
--header 'Authorization: Bearer <token>'import requests
url = "https://voice-api.onclarity.com/v1/projects"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voice-api.onclarity.com/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"projects": [
{
"id": "3f6c1a52-8d0e-4b8f-9a51-2c7d4e0b9f13",
"name": "Customer support",
"organization_id": 42,
"livekit_mode": "cloud",
"livekit_self_hosted_available": false,
"region_profile": null,
"region_profile_display_name": null
}
]
}{
"error": "Invalid or revoked token"
}Projects
List projects
Lists the projects your credential can reach. With an organization API key these are the projects of the key’s organization. Use a project’s id as the projectId path parameter of every other endpoint.
GET
/
v1
/
projects
List projects
curl --request GET \
--url https://voice-api.onclarity.com/v1/projects \
--header 'Authorization: Bearer <token>'import requests
url = "https://voice-api.onclarity.com/v1/projects"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voice-api.onclarity.com/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"projects": [
{
"id": "3f6c1a52-8d0e-4b8f-9a51-2c7d4e0b9f13",
"name": "Customer support",
"organization_id": 42,
"livekit_mode": "cloud",
"livekit_self_hosted_available": false,
"region_profile": null,
"region_profile_display_name": null
}
]
}{
"error": "Invalid or revoked token"
}Authorizations
Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.
Response
The projects you can reach.
Show child attributes
Show child attributes