ワークスペース
ワークスペース取得
APIキーに関連付けられたワークスペースの詳細を取得します
GET
/
v1
/
workspace
curl -X GET "https://api.caret.so/v1/workspace" \
-H "Authorization: Bearer your_api_key_here"
const response = await fetch('https://api.caret.so/v1/workspace', {
headers: {
Authorization: 'Bearer your_api_key_here',
},
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.caret.so/v1/workspace"
headers = {
"Authorization": "Bearer your_api_key_here"
}
response = requests.get(url, headers=headers)
print(response.json())
{
"workspace": {
"id": "ws_123456789",
"name": "Acme Corp",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z",
"settings": {
"keyterms": ["technical", "documentation"],
"audio_location": "aside-server",
"meeting_default_permission": "workspace"
},
"allowedEmailDomains": ["acme.com"],
"iconUrl": "https://example.com/icon.png"
}
}
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key"
}
}
{
"error": {
"code": "internal_server_error",
"message": "An unexpected error occurred"
}
}
概要
このエンドポイントは、提供されたAPIキーが属するワークスペースの詳細情報を返します。ワークスペース名、作成日、設定などの基本的なメタデータが含まれます。認証
すべてのAPIリクエストはAuthorization: Bearer <API_KEY> で認証します。
レスポンス
ワークスペースオブジェクト。
表示 properties
表示 properties
ワークスペース設定。
表示 properties
表示 properties
curl -X GET "https://api.caret.so/v1/workspace" \
-H "Authorization: Bearer your_api_key_here"
const response = await fetch('https://api.caret.so/v1/workspace', {
headers: {
Authorization: 'Bearer your_api_key_here',
},
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.caret.so/v1/workspace"
headers = {
"Authorization": "Bearer your_api_key_here"
}
response = requests.get(url, headers=headers)
print(response.json())
{
"workspace": {
"id": "ws_123456789",
"name": "Acme Corp",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z",
"settings": {
"keyterms": ["technical", "documentation"],
"audio_location": "aside-server",
"meeting_default_permission": "workspace"
},
"allowedEmailDomains": ["acme.com"],
"iconUrl": "https://example.com/icon.png"
}
}
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key"
}
}
{
"error": {
"code": "internal_server_error",
"message": "An unexpected error occurred"
}
}
⌘I
curl -X GET "https://api.caret.so/v1/workspace" \
-H "Authorization: Bearer your_api_key_here"
const response = await fetch('https://api.caret.so/v1/workspace', {
headers: {
Authorization: 'Bearer your_api_key_here',
},
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.caret.so/v1/workspace"
headers = {
"Authorization": "Bearer your_api_key_here"
}
response = requests.get(url, headers=headers)
print(response.json())
{
"workspace": {
"id": "ws_123456789",
"name": "Acme Corp",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z",
"settings": {
"keyterms": ["technical", "documentation"],
"audio_location": "aside-server",
"meeting_default_permission": "workspace"
},
"allowedEmailDomains": ["acme.com"],
"iconUrl": "https://example.com/icon.png"
}
}
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key"
}
}
{
"error": {
"code": "internal_server_error",
"message": "An unexpected error occurred"
}
}