Triall Run API

The Run API from Triall — 4 operation(s) for run.

GitHub OpenAPI

Operations 4

POST /api/v1/run Api Start Run #
GET /api/v1/run/{session_id}/progress Api Run Progress #
GET /api/v1/run/{session_id}/result Api Run Result #
GET /api/v1/run/{session_id}/pdf Api Run Pdf #

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/triall-ai:triall-ai-run-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

triall-ai-run-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Triall Run API
  description: Iterative AI Reasoning System
  version: 0.1.0
tags:
- name: Run
paths:
  /api/v1/run:
    post:
      tags:
      - Run
      summary: Api Start Run
      description: Start a Triall run. Returns session_id immediately; poll /progress for updates.
      operationId: api_start_run_api_v1_run_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/run/{session_id}/progress:
    get:
      tags:
      - Run
      summary: Api Run Progress
      description: Get granular progress with ticker events.
      operationId: api_run_progress_api_v1_run__session_id__progress_get
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/run/{session_id}/result:
    get:
      tags:
      - Run
      summary: Api Run Result
      description: Get the final result of a completed run.
      operationId: api_run_result_api_v1_run__session_id__result_get
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/run/{session_id}/pdf:
    get:
      tags:
      - Run
      summary: Api Run Pdf
      description: 'Download the PDF result for a completed run.


        No auth required — the session_id (UUID) is unguessable and acts as

        the access token. This allows direct browser links from MCP chat UIs.'
      operationId: api_run_pdf_api_v1_run__session_id__pdf_get
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RunRequest:
      properties:
        question:
          type: string
          maxLength: 50000
          minLength: 1
          title: Question
        context:
          anyOf:
          - type: string
            maxLength: 100000
          - type: 'null'
          title: Context
        preset:
          type: string
          pattern: ^(full_power|test_run|custom)$
          title: Preset
          default: full_power
        language:
          type: string
          maxLength: 5
          title: Language
          default: en
        depth:
          anyOf:
          - type: string
            pattern: ^(verdict|trial)$
          - type: 'null'
          title: Depth
        council_models:
          anyOf:
          - items:
              type: string
            type: array
            maxItems: 3
            minItems: 3
          - type: 'null'
          title: Council Models
        generator_model:
          anyOf:
          - type: string
          - type: 'null'
          title: Generator Model
        critic_model:
          anyOf:
          - type: string
          - type: 'null'
          title: Critic Model
        refiner_model:
          anyOf:
          - type: string
          - type: 'null'
          title: Refiner Model
        max_iterations:
          anyOf:
          - type: integer
            maximum: 10.0
            minimum: 1.0
          - type: 'null'
          title: Max Iterations
      type: object
      required:
      - question
      title: RunRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer