# trip2g API

**Canonical:** https://apis.io/apis/trip2g-com/trip2g-com-api/  
**Provider:** trip2g — https://apis.io/providers/trip2g-com/  
**Documentation:** https://trip2g.com/dev/codeexec_openai_endpoint

trip2g API is one of 2 APIs that [trip2g](https://apis.io/providers/trip2g-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

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

## Operations (20)

| Method | Path | Summary |
|---|---|---|
| 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_<version>_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 |

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/trip2g-com/openapi/_ae-authored/trip2g-com-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/trip2g-com/json-schema/trip2g-com-get-system-federation-admin-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/trip2g-com/json-schema/trip2g-com-post-v1-chat-completions-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/trip2g-com/json-schema/trip2g-com-post-v1-chat-completions-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/trip2g-com/json-schema/trip2g-com-post-debug-run-block-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/trip2g-com/json-schema/trip2g-com-post-webhook-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/trip2g-com/json-schema/trip2g-com-post-debug-run-block-response-schema.json

## Other trip2g APIs (1)

- [Trip2g Documentation API](https://apis.io/apis/trip2g-com/trip2g-documentation-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/trip2g-com` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/trip2g-com/trip2g-com-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/trip2g-com/.
