Skip to content

API リファレンス

Coverage このページは 全 API エンドポイント

を網羅したリファレンスです。Takos の public API は /api/* 配下で提供され、CLI の task domain もこの family 群にマップされます。 :::

認証

mode使い方用途
Session cookiebrowser から CookieSPA / console
PATAuthorization: Bearer tak_pat_...CLI / automation
OAuth bearerAuthorization: Bearer tak_oat_...third-party apps
Internal bindingservice binding + internal headersworker 間通信

PAT は /api/me/personal-access-tokens で管理します。

認証ヘッダーの形式:

Authorization: Bearer <access_token>

<access_token> には PAT(tak_pat_...)か OAuth トークン(tak_oat_...)を指定する。

エラーレスポンスの共通形式

すべての API エンドポイントは、エラー発生時に以下の共通形式で返す:

json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found"
  }
}

主要なエラーコード:

codeHTTP status意味
BAD_REQUEST400リクエストが不正
UNAUTHORIZED401認証が必要
FORBIDDEN403権限が不足
NOT_FOUND404リソースが見つからない
CONFLICT409競合が発生
GONE410リソースが期限切れ
RATE_LIMITED429レート制限に到達
INTERNAL_ERROR500サーバー内部エラー

ページネーション

多くのリスト系エンドポイントは limit / offset または cursor ベースのページネーションをサポートする。

GET /api/resources?limit=20&offset=0
paramtypedescription
limitnumber取得件数(デフォルトは endpoint 依存、最大値あり)
offsetnumberスキップ件数(offset ベースの場合)
cursorstring次ページのカーソル(cursor ベースの場合)

Route families

Public / optional auth

familyauthpurpose
seed-repositoriesnone初回導入用 seed repo 一覧
exploreoptional公開 catalog / discover
profilesoptional公開 profile / repo view / follow / block
public-sharemixedthread share の read / access grant
mcpmixedMCP OAuth callback と MCP server 管理
billing (webhook)noneStripe webhook
oauth (consent)sessionconsent UI 用 API

Authenticated families

familypurpose
setup初期セットアップ状態
mecurrent user / settings / PAT / OAuth client
spacesworkspace/space 基本 CRUD / model / export
spaces.membersspace メンバー管理
spaces.repositoriesspace 内 repo 初期化
spaces.storagefile upload/download/list/bulk ops
spaces.common-env共通 env の read/write/delete
spaces.storesActivityPub store 管理
spaces.store-registryremote store registry / import-repository
shortcutsshortcut と group 管理
servicesservice CRUD / settings / deployments
custom-domainscustom domain verify / SSL refresh
resourcesresource CRUD / access / tokens / D1 / R2
appsbuiltin/custom app listing
threadsthread / message / share / export
runsrun 実行・event stream・artifact
searchsemantic / quick search
indexindexing / vectorize / graph
memoriesmemory CRUD / search
remindersreminder CRUD / trigger
skillsskill catalog / custom skill
sessionssession lifecycle / heartbeat
gitspace-scoped git 操作
reposrepo CRUD / tree / blob / branches / commits / stars / forks
repos.actionsworkflow runs / secrets / artifacts
repos.releasesrelease CRUD
pull-requestsPR / review / merge
agent-taskstask orchestration
notificationsnotification list / SSE / WS
app-deploymentsapp deploy / rollback
browser-sessionsbrowser session lifecycle
groupsgroup 管理 / plan / apply
billingbilling / usage / invoices
authauthenticated auth/profile actions

Non-API routes

familypurpose
smart-httpGit Smart HTTP (clone / push)
well-knownOAuth / OIDC discovery
activitypub-storeActivityPub federation
oauth (server)OAuth 2.0 token / authorize / introspect

seed-repositories

初回導入時に表示される seed リポジトリの一覧を返す。認証不要。

methodpathdescription
GET/api/seed-repositoriesseed リポジトリ一覧
bash
GET /api/seed-repositories

レスポンス:

json
{
  "repositories": [
    {
      "url": "https://github.com/example/repo.git",
      "name": "Example Repo",
      "description": "A sample repository",
      "category": "tool",
      "checked": true
    }
  ]
}

explore

公開リポジトリ・パッケージ・ユーザーの検索・閲覧。認証はオプション。

Repositories

methodpathdescription
GET/api/explore/reposリポジトリ一覧(フィルタ・検索対応)
GET/api/explore/repos/trendingトレンドリポジトリ
GET/api/explore/repos/new新着リポジトリ
GET/api/explore/repos/recent最近更新されたリポジトリ
GET/api/explore/repos/by-name/:username/:repoNameオーナー名+リポジトリ名で取得
GET/api/explore/repos/:idID で取得

Catalog / Packages

methodpathdescription
GET/api/explore/catalogカタログアイテム一覧
GET/api/explore/suggest検索サジェスト
GET/api/explore/catalog/suggestカタログサジェスト
GET/api/explore/packagesパッケージ検索
GET/api/explore/packages/suggestパッケージサジェスト
GET/api/explore/packages/:username/:repoName/latest最新バージョン
GET/api/explore/packages/:username/:repoName/versions全バージョン一覧
GET/api/explore/packages/by-repo/:repoId/reviewsパッケージレビュー一覧
POST/api/explore/packages/by-repo/:repoId/reviewsレビュー投稿 (deprecated)

Users

methodpathdescription
GET/api/explore/usersユーザー一覧(検索対応)
GET/api/explore/users/:usernameユーザープロファイル + リポジトリ

profiles

公開プロファイル閲覧・フォロー・ブロック・ミュート。認証はオプション(一部操作は認証必須)。

Profile / Repos

methodpathdescription
GET/api/users/:usernameユーザープロファイル
GET/api/users/:username/reposユーザーのリポジトリ一覧
GET/api/users/:username/starsユーザーの star 一覧
GET/api/users/:username/activityアクティビティフィード
GET/api/users/:username/:repoNameリポジトリ詳細(名前指定)
DELETE/api/users/:username/:repoNameリポジトリ削除(名前指定)
GET/api/users/:username/:repoName/tree/:refディレクトリツリー
GET/api/users/:username/:repoName/tree/:ref/*サブディレクトリツリー
GET/api/users/:username/:repoName/blob/:refファイル内容
GET/api/users/:username/:repoName/blob/:ref/*ファイル内容(サブパス)
GET/api/users/:username/:repoName/branchesブランチ一覧
GET/api/users/:username/:repoName/commitsコミット一覧

Follow

methodpathdescription
GET/api/users/:username/followersフォロワー一覧
GET/api/users/:username/followingフォロー中一覧
GET/api/users/:username/follow-requestsフォローリクエスト一覧 (auth)
POST/api/users/:username/follow-requests/:id/acceptフォローリクエスト承認 (auth)
POST/api/users/:username/follow-requests/:id/rejectフォローリクエスト拒否 (auth)
POST/api/users/:username/followフォロー (auth)
DELETE/api/users/:username/followフォロー解除 (auth)

Block / Mute

methodpathdescription
POST/api/users/:username/blockブロック (auth)
DELETE/api/users/:username/blockブロック解除 (auth)
POST/api/users/:username/muteミュート (auth)
DELETE/api/users/:username/muteミュート解除 (auth)

public-share

thread share の公開アクセス。認証不要(パスワード保護あり)。

methodpathdescription
GET/api/public/thread-shares/:token共有スレッドデータ取得
POST/api/public/thread-shares/:token/accessパスワード検証・アクセス取得

mcp

MCP (Model Context Protocol) サーバー管理。

methodpathauthdescription
GET/api/mcp/oauth/callbacknoneOAuth コールバック
GET/api/mcp/serversrequired登録 MCP サーバー一覧
POST/api/mcp/serversrequiredMCP サーバー登録
PATCH/api/mcp/servers/:idrequiredMCP サーバー更新
DELETE/api/mcp/servers/:idrequiredMCP サーバー削除
GET/api/mcp/servers/:id/toolsrequiredMCP サーバーのツール一覧

setup

初期セットアップ状態の確認・完了。

methodpathdescription
GET/api/setup/statusセットアップ状態確認
POST/api/setup/completeセットアップ完了(username 必須)
POST/api/setup/check-usernameユーザー名の利用可能性チェック

me

現在の認証ユーザー情報の取得・更新。

User info

methodpathdescription
GET/api/meユーザー情報取得
GET/api/me/personal-spaceパーソナルスペース取得
GET/api/me/settingsユーザー設定取得
PATCH/api/me/settingsユーザー設定更新
PATCH/api/me/usernameユーザー名変更

GET /api/me

json
{
  "email": "[email protected]",
  "name": "Tako",
  "username": "tako",
  "picture": "https://example.com/avatar.png",
  "setup_completed": true
}

PATCH /api/me/settings

リクエスト:

json
{
  "setup_completed": true,
  "auto_update_enabled": true,
  "private_account": false,
  "activity_visibility": "public"
}

activity_visibilitypublic | followers | private のいずれか。

PATCH /api/me/username

リクエスト:

json
{ "username": "new-name" }

OAuth consents

methodpathdescription
GET/api/me/oauth/consents同意済みアプリ一覧
DELETE/api/me/oauth/consents/:clientId同意取り消し
GET/api/me/oauth/audit-logsOAuth 操作ログ

OAuth clients

methodpathdescription
GET/api/me/oauth/clients所有クライアント一覧
POST/api/me/oauth/clientsクライアント作成
PATCH/api/me/oauth/clients/:clientIdクライアント更新
DELETE/api/me/oauth/clients/:clientIdクライアント削除

POST /api/me/oauth/clients

リクエスト:

json
{
  "client_name": "My App",
  "redirect_uris": ["https://example.com/callback"],
  "client_uri": "https://example.com",
  "logo_uri": "https://example.com/logo.png"
}

Personal Access Tokens

methodpathdescription
GET/api/me/personal-access-tokensPAT 一覧
POST/api/me/personal-access-tokensPAT 作成
DELETE/api/me/personal-access-tokens/:idPAT 削除

POST /api/me/personal-access-tokens

リクエスト:

json
{
  "name": "CLI token",
  "scopes": "*",
  "expiresAt": "2027-01-01T00:00:00Z"
}

レスポンス (201):

json
{
  "id": "pat_abc123",
  "name": "CLI token",
  "token": "tak_pat_...",
  "token_prefix": "tak_pat_abcd",
  "scopes": "*",
  "expires_at": "2027-01-01T00:00:00Z",
  "created_at": "2026-03-29T10:00:00Z"
}

token

フィールドは作成時のレスポンスにのみ含まれる。再取得はできない。 :::


spaces

workspace/space の CRUD・モデル設定・エクスポート。

methodpathdescription
GET/api/spacesワークスペース一覧
POST/api/spacesワークスペース作成
GET/api/spaces/meパーソナルスペース取得
GET/api/spaces/:spaceIdワークスペース詳細
PATCH/api/spaces/:spaceIdワークスペース更新 (owner/admin)
DELETE/api/spaces/:spaceIdワークスペース削除 (owner)
GET/api/spaces/:spaceId/exportワークスペースエクスポート情報
GET/api/spaces/:spaceId/modelAI モデル設定取得
PATCH/api/spaces/:spaceId/modelAI モデル設定更新 (owner/admin)
GET/api/spaces/:spaceId/sidebar-itemsサイドバーアイテム取得

POST /api/spaces

リクエスト:

json
{ "name": "New Workspace" }

レスポンス (201):

json
{
  "space": {
    "id": "ws_def456",
    "name": "New Workspace",
    "slug": "new-workspace",
    "kind": "team"
  },
  "repository": {
    "id": "repo_xyz789",
    "name": "default"
  }
}

PATCH /api/spaces/:spaceId

リクエスト:

json
{
  "name": "Updated Name",
  "ai_model": "claude-sonnet-4-6",
  "ai_provider": "anthropic",
  "security_posture": "standard"
}

security_posturestandard | restricted_egress のいずれか。

PATCH /api/spaces/:spaceId/model

リクエスト:

json
{
  "model": "claude-sonnet-4-6",
  "provider": "anthropic"
}

spaces.members

ワークスペースメンバーの管理。

methodpathdescription
GET/api/spaces/:spaceId/membersメンバー一覧
POST/api/spaces/:spaceId/membersメンバー追加 (owner/admin)
PATCH/api/spaces/:spaceId/members/:usernameロール変更 (owner/admin)
DELETE/api/spaces/:spaceId/members/:usernameメンバー削除 (owner/admin)

POST /api/spaces/:spaceId/members

リクエスト:

json
{ "email": "[email protected]", "role": "editor" }

ロール: admin | editor | viewerowner は設定不可)


spaces.repositories

ワークスペース内リポジトリの初期化。

methodpathdescription
POST/api/spaces/:spaceId/init-repoデフォルトリポジトリ初期化 (owner/admin)

spaces.storage

ファイルストレージの操作。OAuth スコープ files:read / files:write に対応。

ダウンロード

methodpathdescription
GET/api/spaces/:spaceId/storage/:fileId/contentファイル内容取得
PUT/api/spaces/:spaceId/storage/:fileId/contentファイル内容書き込み
GET/api/spaces/:spaceId/storage/download/:fileIdファイルダウンロード
GET/api/spaces/:spaceId/storage/download-urlダウンロード URL 取得
GET/api/spaces/:spaceId/storage/download-zipフォルダを ZIP でダウンロード

アップロード

methodpathdescription
POST/api/spaces/:spaceId/storage/filesファイル作成
POST/api/spaces/:spaceId/storage/upload-urlアップロード URL 取得
PUT/api/spaces/:spaceId/storage/upload/:fileIdファイルアップロード
POST/api/spaces/:spaceId/storage/confirm-uploadアップロード確認

管理

methodpathdescription
GET/api/spaces/:spaceId/storageファイル一覧
GET/api/spaces/:spaceId/storage/file-handlersファイルハンドラー取得
POST/api/spaces/:spaceId/storage/foldersフォルダ作成
GET/api/spaces/:spaceId/storage/:fileIdファイル詳細
PATCH/api/spaces/:spaceId/storage/:fileIdリネーム / 移動
DELETE/api/spaces/:spaceId/storage/:fileIdファイル削除
POST/api/spaces/:spaceId/storage/bulk-delete一括削除
POST/api/spaces/:spaceId/storage/bulk-move一括移動
POST/api/spaces/:spaceId/storage/bulk-rename一括リネーム

spaces.common-env

ワークスペース共通環境変数の管理。

methodpathdescription
GET/api/spaces/:spaceId/common-env共通環境変数一覧
PUT/api/spaces/:spaceId/common-env環境変数の作成・更新 (owner/admin)
DELETE/api/spaces/:spaceId/common-env/:name環境変数削除 (owner/admin)

PUT /api/spaces/:spaceId/common-env

リクエスト:

json
{
  "name": "DATABASE_URL",
  "value": "postgres://...",
  "secret": true
}

spaces.stores

ワークスペース内 ActivityPub ストアの管理。

methodpathdescription
GET/api/spaces/:spaceId/storesストア一覧
POST/api/spaces/:spaceId/storesストア作成 (owner/admin)
PATCH/api/spaces/:spaceId/stores/:storeSlugストア更新 (owner/admin)
DELETE/api/spaces/:spaceId/stores/:storeSlugストア削除 (owner/admin)

POST /api/spaces/:spaceId/stores

リクエスト:

json
{
  "slug": "my-store",
  "name": "My Store",
  "summary": "Public package store",
  "icon_url": "https://example.com/icon.png"
}

spaces.store-registry

リモートストアレジストリの管理と remote repository import。

methodpathdescription
GET/api/spaces/:spaceId/store-registry登録ストア一覧
POST/api/spaces/:spaceId/store-registryリモートストア追加 (owner/admin)
PATCH/api/spaces/:spaceId/store-registry/:entryIdストア設定更新 (owner/admin)
DELETE/api/spaces/:spaceId/store-registry/:entryIdリモートストア削除 (owner/admin)
POST/api/spaces/:spaceId/store-registry/:entryId/refreshメタデータ更新 (owner/admin)
GET/api/spaces/:spaceId/store-registry/:entryId/repositoriesリモートリポジトリ一覧
GET/api/spaces/:spaceId/store-registry/:entryId/repositories/searchリモートリポジトリ検索
POST/api/spaces/:spaceId/store-registry/:entryId/import-repositoryリモートストアから repository を import (owner/admin)
GET/api/spaces/:spaceId/store-registry/updatesサブスクリプション更新確認
POST/api/spaces/:spaceId/store-registry/updates/mark-seen更新を既読にする
POST/api/spaces/:spaceId/store-registry/:entryId/poll手動ポーリング (owner/admin)

shortcuts

ショートカットとショートカットグループの管理。

Shortcuts

methodpathdescription
GET/api/shortcutsショートカット一覧
POST/api/shortcutsショートカット作成
PUT/api/shortcuts/:idショートカット更新
DELETE/api/shortcuts/:idショートカット削除
POST/api/shortcuts/reorderショートカット並び替え

Shortcut groups

methodpathdescription
GET/api/spaces/:spaceId/shortcuts/groupsグループ一覧
POST/api/spaces/:spaceId/shortcuts/groupsグループ作成 (owner/admin/editor)
GET/api/spaces/:spaceId/shortcuts/groups/:groupIdグループ詳細
PATCH/api/spaces/:spaceId/shortcuts/groups/:groupIdグループ更新 (owner/admin/editor)
DELETE/api/spaces/:spaceId/shortcuts/groups/:groupIdグループ削除 (owner/admin)
POST/api/spaces/:spaceId/shortcuts/groups/:groupId/itemsアイテム追加 (owner/admin/editor)
DELETE/api/spaces/:spaceId/shortcuts/groups/:groupId/items/:itemIdアイテム削除 (owner/admin/editor)

services

サービス(Workers)の CRUD・設定・デプロイ管理。

基本 CRUD

methodpathdescription
GET/api/servicesサービス一覧
GET/api/services/space/:spaceIdスペース内サービス一覧
POST/api/servicesサービス作成
GET/api/services/:idサービス詳細
GET/api/services/:id/logsサービスログ取得
DELETE/api/services/:idサービス削除

GET /api/services

json
{
  "services": [
    {
      "id": "svc_abc123",
      "name": "my-api",
      "status": "active"
    }
  ]
}

設定

methodpathdescription
GET/api/services/:id/settingsランタイム設定取得
PATCH/api/services/:id/settingsランタイム設定更新
PATCH/api/services/:id/slugスラッグ変更

PATCH /api/services/:id/settings

設定項目: compatibility_date, compatibility_flags, limits, mcp_server

環境変数

methodpathdescription
GET/api/services/:id/envローカル環境変数一覧
PATCH/api/services/:id/envローカル環境変数更新

PATCH /api/services/:id/env

リクエスト:

json
{
  "variables": [
    { "name": "API_KEY", "value": "secret", "secret": true },
    { "name": "NODE_ENV", "value": "production" }
  ]
}
methodpathdescription
GET/api/services/:id/common-env-links共通環境変数リンク一覧
PUT/api/services/:id/common-env-linksリンク全置換
PATCH/api/services/:id/common-env-linksリンク差分更新(add/remove/set)

リクエスト:

json
{
  "add": ["DATABASE_URL"],
  "remove": ["OLD_KEY"],
  "builtins": {
    "TAKOS_ACCESS_TOKEN": { "scopes": ["files:read"] }
  }
}

Bindings

methodpathdescription
GET/api/services/:id/bindingsリソースバインディング一覧
PATCH/api/services/:id/bindingsバインディング更新

Deployments

methodpathdescription
POST/api/services/:id/deploymentsデプロイ作成
GET/api/services/:id/deploymentsデプロイ履歴
GET/api/services/:id/deployments/:deploymentIdデプロイ詳細
POST/api/services/:id/deployments/rollbackロールバック

POST /api/services/:id/deployments

リクエスト:

json
{
  "bundle": "<base64-encoded-bundle>",
  "deploy_message": "v1.2.0 release",
  "strategy": "direct",
  "provider": { "name": "workers-dispatch" },
  "target": {
    "artifact": { "kind": "worker-bundle" }
  }
}

strategy: direct | canary artifact.kind: worker-bundle | container-image

Idempotency-Key ヘッダーで冪等性を保証可能。


custom-domains

サービスのカスタムドメイン管理。

methodpathdescription
GET/api/services/:id/custom-domainsカスタムドメイン一覧
POST/api/services/:id/custom-domainsカスタムドメイン追加
GET/api/services/:id/custom-domains/:domainIdカスタムドメイン詳細
POST/api/services/:id/custom-domains/:domainId/verifyドメイン所有権検証
DELETE/api/services/:id/custom-domains/:domainIdカスタムドメイン削除
POST/api/services/:id/custom-domains/:domainId/refresh-sslSSL 証明書更新

resources

リソースの CRUD・アクセス管理。public surface は Cloudflare-native で、Takos runtime がその spec を各 backend 上で実現します。Cloudflare backend では通常そのまま対応する Cloudflare resource に解決され、互換 backend では provider-backed または Takos-managed implementation に解決されます。

基本 CRUD

methodpathdescription
GET/api/resourcesリソース一覧(space_id でフィルタ可)
GET/api/resources/shared/:spaceId共有リソース一覧
GET/api/resources/type/:typeタイプ別リソース一覧
GET/api/resources/:idリソース詳細(アクセス情報・バインディング含む)
GET/api/resources/by-name/:name名前でリソース取得
POST/api/resourcesリソース作成
PATCH/api/resources/:idリソース更新
DELETE/api/resources/:idリソース削除
DELETE/api/resources/by-name/:name名前でリソース削除

type: d1 | r2 | kv | queue | vectorize | analyticsEngine | secretRef | workflow | durableObject

Access

methodpathdescription
GET/api/resources/:id/accessアクセス権一覧 (owner)
POST/api/resources/:id/accessアクセス権付与 (owner)
DELETE/api/resources/:id/access/:spaceIdアクセス権取消 (owner)

POST /api/resources/:id/access

リクエスト:

json
{
  "space_id": "ws_abc123",
  "permission": "write"
}

permission: read | write | admin

Bindings

methodpathdescription
POST/api/resources/:id/bindサービスバインディング作成
DELETE/api/resources/:id/bind/:serviceIdバインディング削除
DELETE/api/resources/by-name/:name/bind/:serviceId名前でバインディング削除

Tokens

methodpathdescription
GET/api/resources/:id/tokensアクセストークン一覧
GET/api/resources/by-name/:name/tokens名前でトークン一覧
POST/api/resources/:id/tokensトークン作成
POST/api/resources/by-name/:name/tokens名前でトークン作成
DELETE/api/resources/:id/tokens/:tokenIdトークン削除
DELETE/api/resources/by-name/:name/tokens/:tokenId名前でトークン削除
GET/api/resources/:id/connection接続情報取得
GET/api/resources/by-name/:name/connection名前で接続情報取得

SQL

methodpathdescription
GET/api/resources/:id/sql/tablesテーブル一覧
GET/api/resources/:id/sql/tables/:tableNameテーブルデータ取得
POST/api/resources/:id/sql/querySQL クエリ実行
POST/api/resources/:id/sql/exportデータベースエクスポート

Object Storage

methodpathdescription
GET/api/resources/:id/objectsオブジェクト一覧
GET/api/resources/:id/objects-statsバケット統計
GET/api/resources/:id/objects/:keyオブジェクト取得
PUT/api/resources/:id/objects/:keyオブジェクト書き込み
DELETE/api/resources/:id/objects/:keyオブジェクト削除

KV (Key-Value Store)

methodpathdescription
GET/api/resources/:id/kv/entriesエントリ一覧(prefix, cursor, limit)
GET/api/resources/:id/kv/entries/:keyエントリ取得
PUT/api/resources/:id/kv/entries/:keyエントリ書き込み
DELETE/api/resources/:id/kv/entries/:keyエントリ削除

apps

アプリケーション(builtin/custom)の管理。

methodpathdescription
GET/api/appsアプリ一覧
GET/api/apps/:idアプリ詳細
PATCH/api/apps/:idアプリメタデータ更新
POST/api/apps/:id/client-keyクライアントキー再生成
DELETE/api/apps/:idカスタムアプリ削除

threads

スレッド / メッセージの CRUD・共有・エクスポート。

methodpathdescription
GET/api/spaces/:spaceId/threadsスレッド一覧(status フィルタ対応)
GET/api/spaces/:spaceId/threads/searchスレッド検索(keyword / semantic)
POST/api/spaces/:spaceId/threadsスレッド作成
GET/api/threads/:idスレッド詳細
PATCH/api/threads/:idスレッド更新(title, locale, status, context_window)
DELETE/api/threads/:idスレッド削除
POST/api/threads/:id/archiveアーカイブ
POST/api/threads/:id/unarchiveアーカイブ解除

Messages

methodpathdescription
GET/api/threads/:id/messagesメッセージタイムライン(ページネーション対応)
GET/api/threads/:id/messages/searchメッセージ検索
POST/api/threads/:id/messagesメッセージ作成
GET/api/threads/:id/history実行履歴(runs + messages)

Share

methodpathdescription
POST/api/threads/:id/share共有作成(公開 / パスワード保護 / 有効期限)
GET/api/threads/:id/shares共有一覧
POST/api/threads/:id/shares/:shareId/revoke共有取消

Export

methodpathdescription
GET/api/threads/:id/exportスレッドエクスポート(markdown / PDF)

POST /api/spaces/:spaceId/threads

リクエスト:

json
{ "title": "debug" }

レスポンス (201):

json
{
  "thread": {
    "id": "thread_new123",
    "title": "debug",
    "created_at": "2026-03-27T10:00:00Z"
  }
}

runs

Run の実行・イベントストリーム・アーティファクト管理。

methodpathdescription
GET/api/threads/:threadId/runsスレッド内 Run 一覧(active_only, cursor 対応)
POST/api/threads/:threadId/runsRun 作成・実行開始
GET/api/runs/:idRun 詳細
POST/api/runs/:id/cancelRun キャンセル
GET/api/runs/:id/eventsRun イベント取得(last_event_id 対応)
GET/api/runs/:id/sseSSE でリアルタイムイベント受信
GET/api/runs/:id/wsWebSocket でリアルタイムイベント受信
GET/api/runs/:id/replayイベントリプレイ(cursor ベース)

Artifacts

methodpathdescription
GET/api/runs/:id/artifactsRun のアーティファクト一覧
POST/api/runs/:id/artifactsアーティファクト作成
GET/api/artifacts/:idアーティファクト取得

SSE ストリーム

bash
curl -N \
  -H "Authorization: Bearer tak_pat_..." \
  https://your-takos.example/api/runs/run_123/sse

Server-Sent Events 形式で Run の状態変化・ログをストリーミングで受信する。


セマンティック検索・クイック検索。ベクトル検索は billing gate で計量。

methodpathdescription
POST/api/spaces/:spaceId/searchセマンティック検索(キャッシュ対応)
GET/api/spaces/:spaceId/search/quickクイックファイルパス検索

POST /api/spaces/:spaceId/search

リクエスト:

json
{
  "query": "how to deploy",
  "limit": 10
}

index

インデックス・ベクトル化・知識グラフ。

methodpathdescription
GET/api/spaces/:spaceId/index/statusインデックスステータス
POST/api/spaces/:spaceId/index/vectorizeベクトルインデックス実行(レート制限あり)
POST/api/spaces/:spaceId/index/rebuildインデックス再構築(レート制限あり)
POST/api/spaces/:spaceId/index/file特定ファイルのインデックス
GET/api/spaces/:spaceId/graph/neighbors知識グラフの隣接ノード取得

memories

ワークスペースメモリの CRUD・検索。

methodpathdescription
GET/api/spaces/:spaceId/memoriesメモリ一覧(ページネーション対応)
GET/api/spaces/:spaceId/memories/searchメモリ検索
POST/api/spaces/:spaceId/memoriesメモリ作成
GET/api/memories/:idメモリ詳細
PATCH/api/memories/:idメモリ更新
DELETE/api/memories/:idメモリ削除

reminders

リマインダーの CRUD・トリガー。

methodpathdescription
GET/api/spaces/:spaceId/remindersリマインダー一覧
POST/api/spaces/:spaceId/remindersリマインダー作成
GET/api/reminders/:idリマインダー詳細
PATCH/api/reminders/:idリマインダー更新
DELETE/api/reminders/:idリマインダー削除
POST/api/reminders/:id/triggerリマインダー手動トリガー

skills

スキルカタログ・カスタムスキルの管理。/api/spaces/:spaceId/skills/api/workspaces/:workspaceId/skills は同じ操作。

Catalog

methodpathdescription
GET/api/spaces/:spaceId/official-skills公式スキルカタログ
GET/api/spaces/:spaceId/official-skills/:skillId公式スキル詳細
GET/api/spaces/:spaceId/skills-context利用可能スキルコンテキスト

Custom skills

methodpathdescription
GET/api/spaces/:spaceId/skillsカスタムスキル一覧
POST/api/spaces/:spaceId/skillsカスタムスキル作成

By ID

methodpathdescription
GET/api/spaces/:spaceId/skills/id/:skillIdID でスキル取得
PUT/api/spaces/:spaceId/skills/id/:skillIdID でスキル更新
PATCH/api/spaces/:spaceId/skills/id/:skillIdID でスキル有効/無効切替
DELETE/api/spaces/:spaceId/skills/id/:skillIdID でスキル削除

By name

methodpathdescription
GET/api/spaces/:spaceId/skills/:skillName名前でスキル取得
PUT/api/spaces/:spaceId/skills/:skillName名前でスキル更新
PATCH/api/spaces/:spaceId/skills/:skillName名前でスキル有効/無効切替
DELETE/api/spaces/:spaceId/skills/:skillName名前でスキル削除

sessions

Space File Sync セッションのライフサイクル管理。

methodpathdescription
POST/api/spaces/:spaceId/sessionsセッション開始
POST/api/sessions/:sessionId/stopセッション停止(変更コミット)
POST/api/sessions/:sessionId/resumeセッション再開
POST/api/sessions/:sessionId/discardセッション破棄
POST/api/sessions/:sessionId/heartbeatハートビート送信
GET/api/sessions/:sessionId/healthセッションヘルスチェック

git

ワークスペーススコープの Git 操作。

methodpathdescription
POST/api/spaces/:spaceId/git/commitコミット作成
GET/api/spaces/:spaceId/git/logコミット履歴
GET/api/spaces/:spaceId/git/commits/:commitIdコミット詳細
GET/api/spaces/:spaceId/git/diff/:commitIdコミット diff
POST/api/spaces/:spaceId/git/restoreファイル復元
GET/api/spaces/:spaceId/git/history/:pathファイル履歴

repos

リポジトリの CRUD・Git 操作・ワークフロー管理。

基本 CRUD

methodpathdescription
GET/api/spaces/:spaceId/reposワークスペース内リポジトリ一覧
POST/api/spaces/:spaceId/reposリポジトリ作成
GET/api/repos/:repoIdリポジトリ詳細
PATCH/api/repos/:repoIdリポジトリ設定更新
DELETE/api/repos/:repoIdリポジトリ削除

GET /api/spaces/:spaceId/repos

json
{
  "repositories": [
    {
      "id": "repo_abc123",
      "name": "my-app",
      "default_branch": "main"
    }
  ]
}

Stars / Forks

methodpathdescription
POST/api/repos/:repoId/starstar 追加
DELETE/api/repos/:repoId/starstar 削除
GET/api/repos/:repoId/starstar 状態確認
GET/api/repos/starredstar 済みリポジトリ一覧
POST/api/repos/:repoId/forkリポジトリ fork

Branches

methodpathdescription
GET/api/repos/:repoId/branchesブランチ一覧
POST/api/repos/:repoId/branchesブランチ作成
DELETE/api/repos/:repoId/branches/:branchNameブランチ削除
POST/api/repos/:repoId/branches/:branchName/defaultデフォルトブランチ設定

Commits

methodpathdescription
GET/api/repos/:repoId/commitsコミット一覧(ページネーション・フィルタ対応)

Git tree / blob

methodpathdescription
GET/api/repos/:repoId/tree/:refルートディレクトリツリー取得
GET/api/repos/:repoId/tree/:ref/*サブディレクトリツリー取得
GET/api/repos/:repoId/blob/:refルートファイル内容取得
GET/api/repos/:repoId/blob/:ref/*ファイル内容取得
GET/api/repos/:repoId/logコミットログ
GET/api/repos/:repoId/log/:refref 指定コミットログ
GET/api/repos/:repoId/log/:ref/:pathパス指定コミットログ

Search / Diff / Blame

methodpathdescription
GET/api/repos/:repoId/searchリポジトリ内コンテンツ検索
GET/api/repos/:repoId/semantic-searchセマンティック検索
GET/api/repos/:repoId/diff/:baseHeadref 間 diff
GET/api/repos/:repoId/blame/:refルートファイル blame
GET/api/repos/:repoId/blame/:ref/:pathファイル blame

Status / Export

methodpathdescription
GET/api/repos/:repoId/statusリポジトリステータス
GET/api/repos/:repoId/exportリポジトリエクスポート
POST/api/repos/:repoId/commitコミット作成
POST/api/repos/:repoId/importインポート
POST/api/repos/:repoId/semantic-indexセマンティックインデックス実行

External Import

methodpathdescription
POST/api/repos/import-external外部 Git リポジトリインポート
POST/api/repos/:repoId/fetch-remoteリモートから更新取得

POST /api/repos/import-external

リクエスト:

json
{
  "url": "https://github.com/example/repo.git",
  "space_id": "ws_abc123",
  "name": "my-imported-repo",
  "auth": { "token": "ghp_..." },
  "description": "Imported repository",
  "visibility": "private"
}

Sync

methodpathdescription
POST/api/repos/:repoId/fetchupstream から fetch(fork 用)
POST/api/repos/:repoId/syncリポジトリ同期
GET/api/repos/:repoId/sync/status同期ステータス

Workflows

methodpathdescription
GET/api/repos/:repoId/workflowsワークフローファイル一覧
GET/api/repos/:repoId/workflows/:pathワークフロー詳細
PUT/api/repos/:repoId/workflows/:pathワークフロー更新
DELETE/api/repos/:repoId/workflows/:pathワークフロー削除
POST/api/repos/:repoId/workflows/:path/syncワークフロー同期
POST/api/repos/:repoId/workflows/sync-all全ワークフロー一括同期

repos.actions

ワークフロー実行・シークレット・アーティファクト管理。

Runs

methodpathdescription
GET/api/repos/:repoId/actions/runsワークフロー実行一覧(フィルタ対応)
POST/api/repos/:repoId/actions/runsワークフロー実行開始
GET/api/repos/:repoId/actions/runs/:runId実行詳細
GET/api/repos/:repoId/actions/runs/:runId/jobs実行のジョブ一覧
GET/api/repos/:repoId/actions/runs/:runId/ws実行イベント WebSocket
POST/api/repos/:repoId/actions/runs/:runId/cancel実行キャンセル
POST/api/repos/:repoId/actions/runs/:runId/rerun実行再実行

Jobs

methodpathdescription
GET/api/repos/:repoId/actions/jobs/:jobIdジョブ詳細(ステップ情報含む)
GET/api/repos/:repoId/actions/jobs/:jobId/logsジョブログ取得(range 対応)

ログの range パラメータ: offset (バイト位置), limit (バイト数)

Secrets

methodpathdescription
GET/api/repos/:repoId/actions/secretsシークレット一覧 (owner/admin)
PUT/api/repos/:repoId/actions/secrets/:nameシークレット作成・更新 (owner/admin)
DELETE/api/repos/:repoId/actions/secrets/:nameシークレット削除 (owner/admin)

シークレット名は ^[A-Z_][A-Z0-9_]*$ の形式が必要。

Artifacts

methodpathdescription
GET/api/repos/:repoId/actions/runs/:runId/artifacts実行のアーティファクト一覧
GET/api/repos/:repoId/actions/artifacts/:artifactIdアーティファクトダウンロード
DELETE/api/repos/:repoId/actions/artifacts/:artifactIdアーティファクト削除 (owner/admin/editor)

repos.releases

リリースの CRUD・アセット管理。

Release CRUD

methodpathdescription
GET/api/repos/:repoId/releasesリリース一覧(ページネーション対応)
GET/api/repos/:repoId/releases/latest最新リリース取得
GET/api/repos/:repoId/releases/:tagタグでリリース取得
POST/api/repos/:repoId/releasesリリース作成
PATCH/api/repos/:repoId/releases/:tagリリース更新
DELETE/api/repos/:repoId/releases/:tagリリース削除

Release Assets

methodpathdescription
GET/api/repos/:repoId/releases/:tag/assetsアセット一覧
POST/api/repos/:repoId/releases/:tag/assetsアセットアップロード(multipart/form-data)
GET/api/repos/:repoId/releases/:tag/assets/:assetId/downloadアセットダウンロード
DELETE/api/repos/:repoId/releases/:tag/assets/:assetIdアセット削除

アセットの最大サイズは 100MB。対応ファイル形式: .takopack, .zip, .tar.gz, .tgz, .json 等。


pull-requests

プルリクエストの作成・レビュー・マージ。

PR CRUD

methodpathdescription
GET/api/repos/:repoId/pullsPR 一覧(フィルタ対応)
POST/api/repos/:repoId/pullsPR 作成
GET/api/repos/:repoId/pulls/:prNumberPR 詳細
PATCH/api/repos/:repoId/pulls/:prNumberPR 更新
POST/api/repos/:repoId/pulls/:prNumber/closePR クローズ
GET/api/repos/:repoId/pulls/:prNumber/diffPR diff 取得

Comments

methodpathdescription
GET/api/repos/:repoId/pulls/:prNumber/commentsコメント一覧
POST/api/repos/:repoId/pulls/:prNumber/commentsコメント追加

Reviews

methodpathdescription
GET/api/repos/:repoId/pulls/:prNumber/reviewsレビュー一覧
POST/api/repos/:repoId/pulls/:prNumber/reviewsレビュー投稿
POST/api/repos/:repoId/pulls/:prNumber/ai-reviewAI レビュー実行

Merge

methodpathdescription
GET/api/repos/:repoId/pulls/:prNumber/conflictsコンフリクト確認
POST/api/repos/:repoId/pulls/:prNumber/resolveコンフリクト解決
POST/api/repos/:repoId/pulls/:prNumber/mergePR マージ(merge / squash / rebase)

agent-tasks

エージェントタスクのオーケストレーション。

methodpathdescription
GET/api/spaces/:spaceId/agent-tasksタスク一覧
POST/api/spaces/:spaceId/agent-tasksタスク作成
GET/api/agent-tasks/:idタスク詳細
PATCH/api/agent-tasks/:idタスク更新
DELETE/api/agent-tasks/:idタスク削除
POST/api/agent-tasks/:id/plan実行プラン生成

notifications

通知の一覧・既読管理・リアルタイム配信。

methodpathdescription
GET/api/notifications通知一覧(ページネーション・フィルタ対応)
GET/api/notifications/unread-count未読件数
PATCH/api/notifications/:id/read既読にする
GET/api/notifications/preferences通知設定取得
PATCH/api/notifications/preferences通知設定更新
GET/api/notifications/settings通知詳細設定(muted_until 等)
PATCH/api/notifications/settings通知詳細設定更新

リアルタイム配信

methodpathdescription
GET/api/notifications/sseSSE でリアルタイム通知受信
GET/api/notifications/wsWebSocket でリアルタイム通知受信
bash
curl -N \
  -H "Authorization: Bearer tak_pat_..." \
  https://your-takos.example/api/notifications/sse

app-deployments

git_ref source を使うアプリデプロイ管理。takos install は Store lookup で repository_url + tag を解決して同じ endpoint を使います。

remote public repo の source 解決は bounded/configurable な full pack を先に試し、pack size / object count / inflated size のような content-size・pack-limit 系の失敗だけを blobless partial fetch の対象にします。 任意の fetch error で fallback するわけではありません。blobless partial fetch は remote が filterallow-reachable-sha1-in-want を advertise している場合に限ります。archive download は GitHub / GitLab public repo 向けの host-specific な最終 fallback です。上限は TAKOS_APP_DEPLOY_REMOTE_* 環境変数で調整できます。

methodpathdescription
POST/api/spaces/:spaceId/app-deploymentsデプロイ開始
GET/api/spaces/:spaceId/app-deploymentsデプロイ一覧
GET/api/spaces/:spaceId/app-deployments/:appDeploymentIdデプロイ詳細
POST/api/spaces/:spaceId/app-deployments/:appDeploymentId/rollbackロールバック
DELETE/api/spaces/:spaceId/app-deployments/:appDeploymentIddeployment history record 削除

POST /api/spaces/:spaceId/app-deployments

リクエスト:

json
{
  "group_name": "my-app",
  "env": "staging",
  "provider": "cloudflare",
  "source": {
    "kind": "git_ref",
    "repository_url": "https://github.com/acme/my-app.git",
    "ref": "main",
    "ref_type": "branch"
  }
}

レスポンス (201):

json
{
  "app_deployment": {
    "id": "adep_xyz789",
    "group": {
      "id": "grp_123",
      "name": "my-app"
    },
    "status": "applied",
    "manifest_version": "1.0.0",
    "hostnames": ["my-app.example.com"],
    "rollback_of_app_deployment_id": null,
    "snapshot": {
      "state": "available",
      "rollback_ready": true,
      "format": "takopack-v1"
    },
    "source": {
      "kind": "git_ref",
      "repository_url": "https://github.com/acme/my-app.git",
      "ref": "main",
      "ref_type": "branch",
      "commit_sha": "abc123def456",
      "resolved_repo_id": null
    },
    "created_at": "2026-03-28T00:00:00.000Z",
    "updated_at": "2026-03-28T00:00:00.000Z"
  },
  "apply_result": {
    "applied": [],
    "skipped": []
  }
}

POST /api/spaces/:spaceId/app-deployments/:appDeploymentId/rollback は snapshot に保存された source / artifact / provider / env を既存 group に再適用します。current group metadata より snapshot 側の execution context を優先します。対象 group row が既に削除されている場合は失敗し、 rollback が group を再生成することはありません。


browser-sessions

ブラウザセッションのライフサイクル管理。

methodpathdescription
POST/api/spaces/:spaceId/browser-sessionsセッション作成
GET/api/browser-sessions/:idセッション情報取得
POST/api/browser-sessions/:id/gotoURL ナビゲーション
POST/api/browser-sessions/:id/actionブラウザアクション実行
POST/api/browser-sessions/:id/extractページデータ抽出
GET/api/browser-sessions/:id/htmlHTML コンテンツ取得
GET/api/browser-sessions/:id/screenshotスクリーンショット取得
POST/api/browser-sessions/:id/pdfPDF 生成
DELETE/api/browser-sessions/:idセッション破棄

groups

デプロイグループの管理・プラン・適用。

methodpathdescription
GET/api/spaces/:spaceId/groupsグループ一覧
POST/api/spaces/:spaceId/groupsグループ作成 (owner/admin/editor)
POST/api/spaces/:spaceId/groups/plangroup_name 指定で non-mutating preview (owner/admin/editor)
POST/api/spaces/:spaceId/groups/applygroup_name 指定で apply (owner/admin/editor)
POST/api/spaces/:spaceId/groups/uninstallgroup_name 指定で uninstall (owner/admin/editor)
GET/api/spaces/:spaceId/groups/:groupIdグループ詳細(インベントリ含む)
PATCH/api/spaces/:spaceId/groups/:groupId/metadataグループ metadata 更新 (owner/admin/editor)
GET/api/spaces/:spaceId/groups/:groupId/desireddesired app manifest 取得
PUT/api/spaces/:spaceId/groups/:groupId/desireddesired app manifest 置換 (owner/admin/editor)
DELETE/api/spaces/:spaceId/groups/:groupIdグループ削除 (owner/admin)
GET/api/spaces/:spaceId/groups/:groupId/resourcesグループリソース一覧
GET/api/spaces/:spaceId/groups/:groupId/servicesグループサービス一覧
GET/api/spaces/:spaceId/groups/:groupId/deploymentsグループデプロイ一覧
POST/api/spaces/:spaceId/groups/:groupId/plan既存 group ID 向けマニフェストプラン (owner/admin/editor)
POST/api/spaces/:spaceId/groups/:groupId/apply既存 group ID 向けマニフェスト適用 (owner/admin/editor)
GET/api/spaces/:spaceId/groups/:groupId/updates更新チェック

POST /api/spaces/:spaceId/groups/planPOST /api/spaces/:spaceId/groups/apply は current authoring surface です。plan は non-mutating preview、apply は必要なら group を作成して反映します。POST /api/spaces/:spaceId/groups/uninstall は empty desired state を apply して inventory を drain したあと group を削除します。

group には source projection が保存されますが、currentAppDeploymentId が意味を持つのは app-deployments 経由で管理されている group だけです。groups/apply や local working tree からの local_upload は source projection を更新しても app deployment history record を作らないため、currentAppDeploymentId は意図的に null のままです。

POST /api/spaces/:spaceId/groups/uninstall は terminal 操作です。group row を削除したあとは app-deployments/:id/rollback で deleted group を再生成できません。


billing

課金・使用量・サブスクリプション管理。

methodpathdescription
GET/api/billing課金情報取得
GET/api/billing/usage当月使用量
POST/api/billing/subscribeサブスクリプション開始(Stripe Checkout)
POST/api/billing/credits/checkoutクレジットトップアップ(Stripe Checkout)
POST/api/billing/portalStripe カスタマーポータルセッション作成
GET/api/billing/invoices請求書一覧
GET/api/billing/invoices/:id/pdf請求書 PDF
POST/api/billing/invoices/:id/send請求書メール送信

Webhook

methodpathauthdescription
POST/api/billing/webhookStripe signatureStripe webhook ハンドラー

auth

認証・プロファイル操作。

methodpathdescription
GET/api/auth/me認証中ユーザー情報
POST/api/auth/setup-username初期ユーザー名設定
PATCH/api/auth/profileプロファイル更新(表示名・アバター)
POST/api/auth/logoutログアウト

OAuth 同意 UI 用 API。

methodpathdescription
GET/api/oauth/authorize/context認可コンテキスト取得
POST/api/oauth/authorize/decision同意決定(approve / deny)
GET/api/oauth/device/contextデバイスフローコンテキスト
POST/api/oauth/device/decisionデバイスフロー決定

Non-API routes

smart-http

Git Smart HTTP プロトコル。git clone, git push 等で使用。

methodpathdescription
GET/git/:owner/:repo.git/info/refsGit reference advertisement
POST/git/:owner/:repo.git/git-upload-packGit fetch / clone
POST/git/:owner/:repo.git/git-receive-packGit push

:owner はユーザー名またはワークスペーススラッグ。認証は HTTP Basic(PAT)または匿名(公開リポジトリの読み取り)。

bash
git clone https://your-takos.example/git/tako/my-app.git

well-known

OAuth / OIDC ディスカバリーエンドポイント。

methodpathdescription
GET/.well-known/oauth-authorization-serverOAuth 2.0 Authorization Server Metadata (RFC 8414)
GET/.well-known/jwks.jsonJSON Web Key Set
GET/.well-known/openid-configurationOpenID Connect Discovery

activitypub-store

ActivityPub フェデレーションエンドポイント。

methodpathdescription
GET/.well-known/webfingerWebFinger プロトコル
GET/ns/takos-gitTakos Git 名前空間定義
GET/ap/stores/:storeストアアクター情報
GET/ap/stores/:store/search検索サービス情報
POST/ap/stores/:store/inboxストア Inbox
GET/ap/stores/:store/followersフォロワーコレクション
GET/ap/stores/:store/repositoriesリポジトリ一覧
GET/ap/stores/:store/search/repositoriesリポジトリ検索
GET/ap/stores/:store/repositories/:owner/:repoNameリポジトリオブジェクト
GET/ap/stores/:store/outboxアクティビティフィード

oauth-server

OAuth 2.0 サーバーエンドポイント。

methodpathdescription
GET/oauth/authorize認可エンドポイント
POST/oauth/tokenトークンエンドポイント(authorization_code, refresh_token, client_credentials, device_code)
POST/oauth/introspectトークンイントロスペクション
POST/oauth/revokeトークン失効
GET/oauth/userinfoOpenID Connect UserInfo
POST/oauth/register動的クライアント登録
GET/oauth/register/:clientIdクライアント登録情報取得

auth (server-side)

サーバーサイド認証フロー。

methodpathdescription
GET/auth/loginGoogle OAuth フロー開始
GET/auth/cliCLI 認証エンドポイント
GET/auth/external/session外部サービス用セッション確認
GET/auth/link/googleGoogle アカウントリンク開始
GET/auth/link/google/callbackGoogle リンクコールバック

Examples

current user を取得

bash
curl -H "Authorization: Bearer tak_pat_..." \
  https://your-takos.example/api/me

thread を作成

bash
curl -X POST \
  -H "Authorization: Bearer tak_pat_..." \
  -H "Content-Type: application/json" \
  -d '{"title":"debug"}' \
  https://your-takos.example/api/spaces/ws_123/threads

app deploy を開始

bash
curl -X POST \
  -H "Authorization: Bearer tak_pat_..." \
  -H "Content-Type: application/json" \
  -d '{"source":{"kind":"git_ref","repository_url":"https://github.com/acme/my-app.git","ref":"main","ref_type":"branch"}}' \
  https://your-takos.example/api/spaces/ws_123/app-deployments

run event を SSE で追う

bash
curl -N \
  -H "Authorization: Bearer tak_pat_..." \
  https://your-takos.example/api/runs/run_123/sse

seed repositories を取得

bash
curl https://your-takos.example/api/seed-repositories

workspace 一覧を取得

bash
curl -H "Authorization: Bearer tak_pat_..." \
  https://your-takos.example/api/spaces

通知を SSE でストリーミング受信

bash
curl -N \
  -H "Authorization: Bearer tak_pat_..." \
  https://your-takos.example/api/notifications/sse

リポジトリ内ファイルを取得

bash
curl -H "Authorization: Bearer tak_pat_..." \
  https://your-takos.example/api/repos/repo_123/git/blob/main/src/index.ts

PR を作成

bash
curl -X POST \
  -H "Authorization: Bearer tak_pat_..." \
  -H "Content-Type: application/json" \
  -d '{"title":"Fix bug","head":"fix/bug","base":"main"}' \
  https://your-takos.example/api/repos/repo_123/pulls

サービスをデプロイ

bash
curl -X POST \
  -H "Authorization: Bearer tak_pat_..." \
  -H "Content-Type: application/json" \
  -d '{"bundle":"<base64>","deploy_message":"v1.0"}' \
  https://your-takos.example/api/services/svc_123/deployments

SQL リソースにクエリ実行

bash
curl -X POST \
  -H "Authorization: Bearer tak_pat_..." \
  -H "Content-Type: application/json" \
  -d '{"sql":"SELECT * FROM users LIMIT 10"}' \
  https://your-takos.example/api/resources/res_123/sql/query

グループにマニフェスト適用

bash
curl -X POST \
  -H "Authorization: Bearer tak_pat_..." \
  -H "Content-Type: application/json" \
  -d '{"manifest":{...}}' \
  https://your-takos.example/api/spaces/ws_123/groups/grp_456/apply

implementation note

deploy family は current public surface です。app-deploymentsgit_ref source と immutable snapshot rollback を public contract として扱います。rollback は snapshot execution context を含み、既存 group があることを前提にします。

次に読むページ