trip2g API

trip2g API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-27); not the provider's own document.

GitHub OpenAPI

Operations 20

GET / GET / #
GET /_system/federation/admin read-эндпоинт топологии федерации #
POST /_system/graphql fleet GraphQL API: roles, agent-interaction graph, and the debugger surface #
POST /_system/hat Obtain admin session cookie via HAT‑JWT #
POST /debug/run-block codeexec: executor:code as an OpenAI-compatible endpoint #
POST /debug/test_webhook Mock-эндпоинт для приёма вебхуков. #
DELETE /debug/test_webhook_calls Очищает список сохранённых вызовов. #
GET /debug/test_webhook_calls Возвращает все сохранённые вызовы test_webhook. #
GET /debug/wait_all_jobs Блокирует до завершения всех goqite фоновых задач. #
POST /graphql POST /graphql #
GET /healthz GET /healthz #
GET /minio/health/live MinIO health endpoint used in Docker Compose healthcheck #
GET /page GET /page → fasthttp → pre-generated HTML (быстро, минимум ресурсов) #
GET /trip2g/obsidian-sync/releases/download/0.3.5/trip2g-sync.mjs GET /trip2g/obsidian-sync/releases/download/0.3.5/trip2g-sync.mjs #
GET /trip2g/trip2g/main/scripts/simple-install.sh GET /trip2g/trip2g/main/scripts/simple-install.sh #
GET /trip2g/trip2g/releases/download/{version}/trip2g__linux_amd64.tar.gz Download from GitHub Releases (recommended) #
GET /trip2g/trip2g/releases/download/{version} GET /trip2g/trip2g/releases/download/{version} #
POST /v1/chat/completions codeexec: executor:code as an OpenAI-compatible endpoint #
GET /v1/models codeexec: executor:code as an OpenAI-compatible endpoint #
POST /webhook Webhook приходит — subot получает POST с instruction, changes, api_token #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/trip2g-com:trip2g-com-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

trip2g-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: trip2g API
  version: '2026-11-27'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-27: 20 operation(s) read from 13 public documentation page(s) (each
    operation names its page in x-source). This is not the provider''s published contract; trip2g has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 6
    documentation: 14
    pages-with-code: 6
    pages-read: 13
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-27'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://trip2g.com/dev/codeexec_openai_endpoint
  - https://trip2g.com/dev/federation_system_endpoint
  - https://trip2g.com/dev/openai_compatible_endpoint
  - https://trip2g.com/dev/federation_system_endpoint_plan
  - https://trip2g.com/dev/graphql
  - https://trip2g.com/dev/webhook_bots
  - https://trip2g.com/dev/fleet_graphql
  - https://trip2g.com/dev/shared_webhooks
  - https://trip2g.com/en/user/local_quickstart
  - https://trip2g.com/ru/user/local_quickstart
  - https://trip2g.com/en/user/cli
  - https://trip2g.com/ru/user/cli
  - https://trip2g.com/en/user/selfhosted
paths:
  /:
    get:
      operationId: get
      tags:
      - Api
      summary: GET /
      x-source: https://trip2g.com/en/user/selfhosted
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -I https://docs.example.com/\n Expect HTTP/2 200 with a valid Let's Encrypt certificate. \n After that, open https://docs.example.com\
          \ , sign in with OWNER_EMAIL , and continue with Getting started . \n If email is not configured yet : no sign-in email can be sent,\
          \ so you can't get the code — set LOG_SIGN_IN_CODES=true in /etc/trip2g.env , restart ( systemctl restart trip2g ), trigger a sign-in, "
  /_system/federation/admin:
    get:
      operationId: get_system_federation_admin
      tags:
      - System
      summary: read-эндпоинт топологии федерации
      x-source: https://trip2g.com/dev/federation_system_endpoint
      parameters:
      - name: Cookie
        in: header
        required: true
        schema:
          type: string
        description: admin‑сессия (session‑cookie or t2g_ personal token).
      - name: Accept
        in: header
        required: false
        schema:
          type: string
        description: application/json
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSystemFederationAdminResponse'
      x-evidence:
        kind: documentation
  /_system/graphql:
    post:
      operationId: post_system_graphql
      tags:
      - System
      summary: 'fleet GraphQL API: roles, agent-interaction graph, and the debugger surface'
      x-source: https://trip2g.com/dev/fleet_graphql
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /_system/hat:
    post:
      operationId: post_system_hat
      tags:
      - System
      summary: Obtain admin session cookie via HAT‑JWT
      x-source: https://trip2g.com/dev/federation_system_endpoint
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostSystemHatRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /debug/run-block:
    post:
      operationId: post_debug_run_block
      tags:
      - Debug
      summary: 'codeexec: executor:code as an OpenAI-compatible endpoint'
      x-source: https://trip2g.com/dev/codeexec_openai_endpoint
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostDebugRunBlockRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostDebugRunBlockResponse'
      x-evidence:
        kind: documentation
  /debug/test_webhook:
    post:
      operationId: post_debug_test_webhook
      tags:
      - Debug
      summary: Mock-эндпоинт для приёма вебхуков.
      x-source: https://trip2g.com/dev/shared_webhooks
      parameters:
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: 'HTTP status code ответа (default: 200)'
      - name: delay
        in: query
        required: false
        schema:
          type: string
        description: Задержка перед ответом (Go duration, e.g. 2s )
      - name: body
        in: query
        required: false
        schema:
          type: string
        description: Кастомный response body (если пусто — echo mode, возвращает полученный body)
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /debug/test_webhook_calls:
    delete:
      operationId: delete_debug_test_webhook_calls
      tags:
      - Debug
      summary: Очищает список сохранённых вызовов.
      x-source: https://trip2g.com/dev/shared_webhooks
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_debug_test_webhook_calls
      tags:
      - Debug
      summary: Возвращает все сохранённые вызовы test_webhook.
      x-source: https://trip2g.com/dev/shared_webhooks
      parameters:
      - name: last
        in: query
        required: false
        schema:
          type: string
        description: только последний
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /debug/wait_all_jobs:
    get:
      operationId: get_debug_wait_all_jobs
      tags:
      - Debug
      summary: Блокирует до завершения всех goqite фоновых задач.
      x-source: https://trip2g.com/dev/shared_webhooks
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /graphql:
    post:
      operationId: post_graphql
      tags:
      - Graphql
      summary: POST /graphql
      x-source: https://trip2g.com/dev/graphql
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostGraphqlRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -N --request POST --url http://localhost:8081/graphql  --data '{\"query\":\"subscription {currentTime}\"}'  -H \"accept:\
          \ text/event-stream\" -H \"content-type: application/json\"\n Будущий рефакторинг Курсорная пагинация в Connection типах Сейчас все\
          \ 46 Connection типов грузят данные целиком. Нужно добавить pageInfo и cursor-based пагинацию: \n type AdminUsersConnection {\n nodes:\
          \ [AdminUser!]!\n pageInf"
  /healthz:
    get:
      operationId: get_healthz
      tags:
      - Healthz
      summary: GET /healthz
      x-source: https://trip2g.com/en/user/local_quickstart
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -sf http://localhost:24082/healthz >/dev/null; do sleep 1; done; echo \"up\"\n Notes: \n DEV=true enables the dev sign-in\
          \ code (no real email needed). Never use in production. \n You do not need the FEATURES / vector-search env for plain content; omit\
          \ it to avoid the embedding-service dependency. \n -p 24081:24081 -p 24082:24082 publishes the app and health ports to your host machine.\
          \ MinIO's -p 90"
  /minio/health/live:
    get:
      operationId: get_minio_health_live
      tags:
      - Minio
      summary: MinIO health endpoint used in Docker Compose healthcheck
      x-source: https://trip2g.com/en/user/selfhosted
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /page:
    get:
      operationId: get_page
      tags:
      - Page
      summary: GET /page → fasthttp → pre-generated HTML (быстро, минимум ресурсов)
      x-source: https://trip2g.com/dev/graphql
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /trip2g/obsidian-sync/releases/download/0.3.5/trip2g-sync.mjs:
    get:
      operationId: get_trip2g_obsidian_sync_releases_download_0_3_5_trip2g_sync_mjs
      tags:
      - Trip2G
      summary: GET /trip2g/obsidian-sync/releases/download/0.3.5/trip2g-sync.mjs
      x-source: https://trip2g.com/en/user/cli
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: curl -L -o trip2g-sync.mjs  https://github.com/trip2g/obsidian-sync/releases/download/0.3.5/trip2g-sync.mjs
  /trip2g/trip2g/main/scripts/simple-install.sh:
    get:
      operationId: get_trip2g_trip2g_main_scripts_simple_install_sh
      tags:
      - Trip2G
      summary: GET /trip2g/trip2g/main/scripts/simple-install.sh
      x-source: https://trip2g.com/en/user/selfhosted
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -fsSL https://raw.githubusercontent.com/trip2g/trip2g/main/scripts/simple-install.sh | sh\n Or do it by hand. Three options,\
          \ in order of preference: \n (a) Download from GitHub Releases (recommended): "
  /trip2g/trip2g/releases/download/{version}/trip2g_<version>_linux_amd64.tar.gz:
    get:
      operationId: get_trip2g_trip2g_releases_download_version_trip2g_version_linux_amd64_tar_gz
      tags:
      - Trip2G
      summary: Download from GitHub Releases (recommended)
      x-source: https://trip2g.com/en/user/selfhosted
      parameters:
      - name: version
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /trip2g/trip2g/releases/download/{version}:
    get:
      operationId: get_trip2g_trip2g_releases_download_version
      tags:
      - Trip2G
      summary: GET /trip2g/trip2g/releases/download/{version}
      x-source: https://trip2g.com/en/user/selfhosted
      parameters:
      - name: version
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -L https://github.com/trip2g/trip2g/releases/download/<version>/trip2g_<version>_linux_amd64.tar.gz  | tar xz trip2g-server\n\
          sudo mv trip2g-server /usr/local/bin/trip2g\nsudo chmod +x /usr/local/bin/trip2g\n (b) Extract from the Docker image : \n docker create\
          \ --name tmp ghcr.io/trip2g/trip2g &&  docker cp tmp:/trip2g/usr/local/bin/trip2g &&  docker rm tmp\nsudo chmod +x /usr/local/bin/trip2g\n\
          \ (c)"
  /v1/chat/completions:
    post:
      operationId: post_v1_chat_completions
      tags:
      - Chat
      summary: 'codeexec: executor:code as an OpenAI-compatible endpoint'
      x-source: https://trip2g.com/dev/codeexec_openai_endpoint
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1ChatCompletionsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1ChatCompletionsResponse'
      x-evidence:
        kind: documentation
  /v1/models:
    get:
      operationId: get_v1_models
      tags:
      - Models
      summary: 'codeexec: executor:code as an OpenAI-compatible endpoint'
      x-source: https://trip2g.com/dev/codeexec_openai_endpoint
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1ModelsResponse'
      x-evidence:
        kind: documentation
  /webhook:
    post:
      operationId: post_webhook
      tags:
      - Webhook
      summary: Webhook приходит — subot получает POST с instruction, changes, api_token
      x-source: https://trip2g.com/dev/webhook_bots
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostWebhookRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostWebhookResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetSystemFederationAdminResponse:
      type: object
      properties:
        self:
          type: object
          description: Идентичность инстанса.
        outbound:
          type: array
          description: Секреты, которыми инстанс ходит к пирам.
        inbound:
          type: array
          description: Секреты, которыми пиры ходят к этому инстансу.
        kb_notes:
          type: array
          description: Маршруты из vault (KB‑ноты).
    PostSystemHatRequest:
      type: object
      properties:
        HAT-JWT:
          type: string
          description: JWT signed with instance JWT_SECRET, payload contains {e, ae:true}.
      required:
      - HAT-JWT
    PostDebugRunBlockRequest:
      type: object
      properties:
        body:
          type: string
          description: Raw code to execute if no fenced block is used.
        block:
          type: string
          description: Fenced code block content.
        stdin:
          type: string
          description: Standard input for the program.
        input:
          type: object
          description: Delivery bag JSON object.
    PostDebugRunBlockResponse:
      type: object
      properties:
        stdout:
          type: string
        stderr:
          type: string
        ok:
          type: boolean
        error:
          type: string
        duration_ms:
          type: integer
    PostGraphqlRequest:
      type: object
      properties:
        query:
          type: string
    PostV1ChatCompletionsRequest:
      type: object
      properties:
        model:
          type: string
          description: Program name from the interpreter registry (e.g., python, bash, node).
        messages:
          type: array
          description: Array of message objects; the last message must contain fenced code blocks whose content is executed.
        input:
          type: object
          description: Optional JSON delivery bag passed to the sandbox as $FLEET_INPUT.
        max_tokens:
          type: integer
          description: Overrides the stdout size cap.
        timeout_seconds:
          type: integer
          description: Execution timeout in seconds.
        stream:
          type: boolean
          description: If true, response may be streamed (MVP returns a single chunk).
      required:
      - model
      - messages
    PostV1ChatCompletionsResponse:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          description: '"chat.completion"'
        model:
          type: string
        choices:
          type: array
          description: Array with a single choice containing the assistant message.
        usage:
          type: object
          description: Token usage (all zeros in MVP).
        codeexec:
          type: object
          description: Extension block with execution details.
    GetV1ModelsResponse:
      type: object
      properties:
        data:
          type: array
          description: List of allowed program models (e.g., python, bash).
    PostWebhookRequest:
      type: object
      properties:
        instruction:
          type: string
          description: Instruction for the bot, may include a link to a note
        changes:
          type: array
          description: List of changes sent to the bot
        api_token:
          type: string
          description: Short‑API token used for MCP calls
    PostWebhookResponse:
      type: object
      properties:
        changes:
          type: array
          description: Changes returned by the bot in the response body (sync mode)
tags:
- name: Api
- name: Chat
- name: Debug
- name: Graphql
- name: Healthz
- name: Minio
- name: Models
- name: Page
- name: System
- name: Trip2G
- name: Webhook