Organizations
Get organization summary
Account identity, wallet and current policy limits. tier is the tier the organisation is on, which verified purchases net of reversals raise. effective_limits contains rpm, tpm, concurrency, stored_objects, stored_mib, kept_warm, answering, upload_bytes, read_rpm, write_rpm, estimate_tokens_per_minute and fine_tunes, shared across this account’s keys and browser sessions. storage is what the account keeps now: objects and bytes, archived datasets included. This summary omits personal console state for every credential.
GET
/
v1
/
organization
/
summary
Get organization summary
curl --request GET \
--url https://api.sqwish.ai/v1/organization/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sqwish.ai/v1/organization/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sqwish.ai/v1/organization/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"organization": {
"id": "<string>",
"kind": "personal",
"name": "<string>",
"role": "owner",
"sees_billing": true,
"permissions": [
"<string>"
],
"status": "active",
"zero_data_retention": {
"enabled": true,
"since": 123
}
},
"project": {
"id": "<string>",
"name": "<string>",
"default": true
},
"project_access": "all",
"tier": 123,
"next_tier": {
"tier": 123,
"minimum_paid_usd": "<string>",
"remaining_usd": "<string>"
},
"effective_limits": {
"rpm": 123,
"tpm": 123,
"concurrency": 123,
"stored_objects": 123,
"stored_mib": 123,
"kept_warm": 123,
"answering": 123,
"upload_bytes": 123,
"read_rpm": 123,
"write_rpm": 123,
"estimate_tokens_per_minute": 123,
"fine_tunes": 123
},
"places": {
"answering": 123,
"kept_warm": 123
},
"storage": {
"objects": 123,
"bytes": 123
},
"wallet": {
"currency": "USD",
"paid_usd": "<string>",
"promotional_usd": "<string>",
"balance_usd": "<string>",
"available_usd": "<string>",
"reserved_usd": "<string>",
"financial_shortfall_usd": "<string>",
"financial_blocked": true
},
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"created_at": 123,
"admitted_at": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}Response
Successful Response
Get organization summary
curl --request GET \
--url https://api.sqwish.ai/v1/organization/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sqwish.ai/v1/organization/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sqwish.ai/v1/organization/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"organization": {
"id": "<string>",
"kind": "personal",
"name": "<string>",
"role": "owner",
"sees_billing": true,
"permissions": [
"<string>"
],
"status": "active",
"zero_data_retention": {
"enabled": true,
"since": 123
}
},
"project": {
"id": "<string>",
"name": "<string>",
"default": true
},
"project_access": "all",
"tier": 123,
"next_tier": {
"tier": 123,
"minimum_paid_usd": "<string>",
"remaining_usd": "<string>"
},
"effective_limits": {
"rpm": 123,
"tpm": 123,
"concurrency": 123,
"stored_objects": 123,
"stored_mib": 123,
"kept_warm": 123,
"answering": 123,
"upload_bytes": 123,
"read_rpm": 123,
"write_rpm": 123,
"estimate_tokens_per_minute": 123,
"fine_tunes": 123
},
"places": {
"answering": 123,
"kept_warm": 123
},
"storage": {
"objects": 123,
"bytes": 123
},
"wallet": {
"currency": "USD",
"paid_usd": "<string>",
"promotional_usd": "<string>",
"balance_usd": "<string>",
"available_usd": "<string>",
"reserved_usd": "<string>",
"financial_shortfall_usd": "<string>",
"financial_blocked": true
},
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"created_at": 123,
"admitted_at": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}