메인 콘텐츠로 건너뛰기
GET
/
v1
/
external
/
workspaces
/
{workspaceGuid}
/
wiki
/
graph
/
seed
Get Wiki Graph Seed
curl --request GET \
  --url https://api.tiro.ooo/v1/external/workspaces/{workspaceGuid}/wiki/graph/seed \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.tiro.ooo/v1/external/workspaces/{workspaceGuid}/wiki/graph/seed"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.tiro.ooo/v1/external/workspaces/{workspaceGuid}/wiki/graph/seed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tiro.ooo/v1/external/workspaces/{workspaceGuid}/wiki/graph/seed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.tiro.ooo/v1/external/workspaces/{workspaceGuid}/wiki/graph/seed"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.tiro.ooo/v1/external/workspaces/{workspaceGuid}/wiki/graph/seed")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.tiro.ooo/v1/external/workspaces/{workspaceGuid}/wiki/graph/seed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "nodes": [
    {
      "guid": "page_abc123",
      "canonicalName": "Alice Kim",
      "pageType": "ENTITY",
      "extractionStatus": "EXTRACTED",
      "mentionCountVisible": 5,
      "entitySubtype": "PERSON"
    }
  ],
  "edges": [
    {
      "guid": "link_abc123",
      "sourcePageGuid": "page_src_123",
      "targetPageGuid": "page_tgt_456",
      "linkType": "works_at",
      "linkTypeDisplayKo": "근무처",
      "linkTypeDisplayEn": "Works At",
      "isDirectional": true
    }
  ]
}
{
"error": {
"code": 404018,
"errorType": "not_found",
"message": "No team found for user #217",
"detail": null
}
}
{
"error_code": "WIKI_PLAN_REQUIRED",
"message": "위키 기능은 Pro 이상 요금제에서 사용할 수 있어요.",
"status_code": 402,
"success": false,
"current_plan": "Lite",
"required_plans": [
"pro",
"max",
"team",
"enterprise"
],
"action_url": "https://tiro.ooo/#pricing"
}
{
"error": {
"code": 404018,
"errorType": "not_found",
"message": "No team found for user #217",
"detail": null
}
}

인증

Authorization
string
header
필수

API key in format {id}.{secret}

경로 매개변수

workspaceGuid
string
필수

Workspace GUID

쿼리 매개변수

type
string

Filter by page type (ENTITY, MENTION, CUSTOM, etc.)

since
string<date-time>

ISO 8601 datetime — include only pages updated on or after this time

q
string

Optional search keyword to filter the seed

folderId
integer<int64>

Restrict the seed graph to wiki pages mentioned by notes inside this folder, including its descendant folders (recursive). An empty, nonexistent, or inaccessible folder yields an empty graph. The value must be numeric; a non-numeric value returns 400.

limit
integer
기본값:200

Maximum nodes to return (default 200, max 200)

필수 범위: 1 <= x <= 200

응답

Wiki graph with nodes and edges

nodes
object[]
필수

List of wiki page nodes

edges
object[]
필수

List of links between nodes