TurfAITurfAI Developers
API Reference

API Reference

TurfAI REST API, task types, and downloadable contracts — synced from source.

This section frames the synced reference — the authoritative endpoint, task-type, and schema docs generated weekly from the source repositories. Start here to orient, then jump into the synced pages for exact request/response shapes.

The pages under api/_synced/ and the contract files are regenerated by the weekly docs sync from turfai_docs and turfai (staging). They are the source of truth — do not rely on anything that contradicts them.

Conventions

  • Base URL — staging https://apisandbox.turfai.in/api, local http://localhost:1338/api.
  • Auth — most endpoints take a user JWT (Authorization: Bearer …). Public surfaces use key headers. See Authentication for the full matrix.
  • Strapi shape — list/get responses wrap data in { "data": … } with meta.pagination; writes take { "data": { … } }. Paginate with pagination[page] and pagination[pageSize]; filter and sort with Strapi filters[…] / sort.
  • Async execution — workflows, squads, and jobs run asynchronously: you start them, then poll a status endpoint until a terminal status.
  • Errors{ "error", "message", "details?" } with standard HTTP codes (400/401/403/404/429/500).

Synced reference

  • Comprehensive API documentation — all endpoint groups: Activity, Agent, Agent Conversation, Auth, Chatbot, Collection, Credential, Document, Event Bus, Google OAuth, Job, Prompt, RAG, Webhook, Squad, Workflow Execution, plus the LLM Service and RAG Query Service.
  • Task types reference — every workflow task type with config, input, and output schemas.
  • Communication standard — the internal job and result message contract between platform services.
  • Data schemas — shared object schemas.

Integration guides (synced)

Downloadable contracts

Machine-readable contracts for the Document/Workflow service (DMS), synced into public/contracts/:

Import the OpenAPI file into your client generator, or the Postman collection into Postman to try endpoints interactively.

Where to go next

  • New to the platform? Start with the Quickstart.
  • Building something specific? The Guides wire these endpoints into end-to-end examples.

On this page