Create Workspace Service Account
curl --request POST \
--url https://api.threetone.in/v1/service-accounts \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.threetone.in/v1/service-accounts"
payload = { "name": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.threetone.in/v1/service-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"service_account_user_id": "<string>",
"name": "<string>",
"api-keys": [
{
"name": "<string>",
"hint": "<string>",
"key_id": "<string>",
"service_account_user_id": "<string>",
"hashed_xi_api_key": "<string>",
"created_at_unix": 123,
"is_disabled": false,
"permissions": [
"models_read"
],
"disable_reason": "trial_ended",
"credit_limit": 123,
"credit_count": 123,
"allowed_ips": [
"<string>"
],
"third_party_disable_allowed": true
}
],
"created_at_unix": 123,
"default_sharing_groups": [
{
"group": {
"name": "<string>",
"id": "<string>",
"members": [
"<string>"
],
"permissions": [
"conversational_ai"
],
"group_usage_limit": 123,
"group_pvc_limit": 123,
"credit_count": 123,
"is_scim_synced": false,
"scim_group": {
"scim_external_id": "<string>",
"display_name": "<string>",
"created_at_unix": 123,
"updated_at_unix": 123,
"seat_type": "workspace_admin"
},
"scim_frozen": false
},
"permission_level": "admin"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}workspace
Create Workspace Service Account
Create a service account for the workspace
POST
/
v1
/
service-accounts
Create Workspace Service Account
curl --request POST \
--url https://api.threetone.in/v1/service-accounts \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.threetone.in/v1/service-accounts"
payload = { "name": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.threetone.in/v1/service-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"service_account_user_id": "<string>",
"name": "<string>",
"api-keys": [
{
"name": "<string>",
"hint": "<string>",
"key_id": "<string>",
"service_account_user_id": "<string>",
"hashed_xi_api_key": "<string>",
"created_at_unix": 123,
"is_disabled": false,
"permissions": [
"models_read"
],
"disable_reason": "trial_ended",
"credit_limit": 123,
"credit_count": 123,
"allowed_ips": [
"<string>"
],
"third_party_disable_allowed": true
}
],
"created_at_unix": 123,
"default_sharing_groups": [
{
"group": {
"name": "<string>",
"id": "<string>",
"members": [
"<string>"
],
"permissions": [
"conversational_ai"
],
"group_usage_limit": 123,
"group_pvc_limit": 123,
"credit_count": 123,
"is_scim_synced": false,
"scim_group": {
"scim_external_id": "<string>",
"display_name": "<string>",
"created_at_unix": 123,
"updated_at_unix": 123,
"seat_type": "workspace_admin"
},
"scim_frozen": false
},
"permission_level": "admin"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.
Body
application/json