> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enablementstudio.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Send specialist message

> Sends a question or edit request (1–1,500 chars) to a kit specialist. Any suggested edit queues in Kit → Review until applied by a person on the web; responds JSON or SSE when `Accept: text/event-stream` is sent.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/kits/{kit}/threads/{agent}/turns
openapi: 3.1.0
info:
  title: Enablement Studio API
  version: 1.0.0
  description: >-
    REST API v1 for Enablement Studio: inspect projects and kits, draft
    Role/Call/Critic runs, consult kit specialists, run deterministic
    learning-science audits, and publish SCORM/learner links.
  contact:
    name: Enablement Studio Support
    email: login@enablementstudio.app
    url: https://enablementstudio.ai/contact
servers:
  - url: https://enablementstudio.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Discovery
    description: Server metadata, signed-in account status, and public examples.
  - name: Library
    description: Read projects, kits, full kit documents, and deliverable exports.
  - name: Runs
    description: Start asynchronous Role, Call, and Critic drafts and poll status.
  - name: Specialists
    description: Read and message specialist agents; edits wait in Kit Review.
  - name: Learning Science
    description: Deterministic Mager, Bloom, Haladyna, and cognitive-load checks.
  - name: Delivery & Practice
    description: Online lessons, SCORM 1.2 exports, learner practice links, and results.
paths:
  /api/v1/kits/{kit}/threads/{agent}/turns:
    post:
      tags:
        - Specialists
      summary: Send specialist message
      description: >-
        Sends a question or edit request (1–1,500 chars) to a kit specialist.
        Any suggested edit queues in Kit → Review until applied by a person on
        the web; responds JSON or SSE when `Accept: text/event-stream` is sent.
      operationId: postSpecialistTurn
      parameters:
        - name: kit
          in: path
          required: true
          description: Positive numeric kit ID (1 to 16 digits, no leading zero).
          schema:
            type: integer
            minimum: 1
          example: 12
        - name: agent
          in: path
          required: true
          schema:
            type: string
            enum:
              - guide
              - gap
              - role
              - skills
              - objectives
              - practice
              - evidence
              - quiz
              - module
              - export
              - call
              - critic
          description: Lowercase specialist agent identifier.
          example: quiz
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TurnRequest'
            example:
              message: Make question 2 test application rather than recall.
      responses:
        '200':
          description: Specialist reply and optional pending patch.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TurnResponse'
              example:
                turn:
                  id: 0123456789abcdef
                  who: agent
                  kind: say
                  text: Here is a tightened question option.
                  at: '2026-01-02T03:04:06+00:00'
                you:
                  id: fedcba9876543210
                  who: you
                  kind: say
                  text: Tighten question 2.
                  at: '2026-01-02T03:04:05+00:00'
                revision: >-
                  bf7c7fd10d56aa4c781de7baa6f0f4b87d7e895b2c3943437ef7026c8a9730c8
                usage:
                  turns: 1
                  input_tokens: 310
                  output_tokens: 140
                  reasoning_tokens: 64
        '400':
          description: Empty message or over 1,500 characters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: bad_request
                  message: Keep a message under 1500 characters.
        '401':
          description: Missing, expired, or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: signed_out
                  message: Sign in to continue.
        '403':
          description: >-
            Connector disabled, Pro API key entitlement required (pro_required),
            route forbidden (connector_forbidden or api_key_forbidden), or
            consent missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: connector_forbidden
                  message: >-
                    An AI app cannot do that. Open Enablement Studio on the web
                    to do it.
        '404':
          description: Resource missing, trashed, or owned by another account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: not_found
                  message: That page is not part of the app.
        '429':
          description: Account allowance spent or hourly/daily turn rate limit reached.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limited
                  message: This account has used its specialist turns for now.
        '503':
          description: Studio daily budget reached or model unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: studio_paused
                  message: Specialist runs are paused right now.
components:
  schemas:
    TurnRequest:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          minLength: 1
          maxLength: 1500
    TurnResponse:
      type: object
      required:
        - turn
        - you
        - revision
        - usage
      properties:
        turn:
          type: object
        you:
          type: object
        revision:
          type: string
        usage:
          type: object
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from OAuth 2.1 MCP sign-in, native app sign-in, or a Pro
        developer API key (`es_live_...`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.