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

# Read one fleet turn

> Returns one turn's request body and full reply. Turn lists omit these bodies; fetch details when opening a turn. Missing turns and turns outside your workspace both return 404.



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json get /v1/workspaces/{workspace_id}/fleets/{fleet_id}/turns/{turn_id}
openapi: 3.1.0
info:
  title: agentsfleet API
  description: API for managing workspaces, fleets, triggers, and runs.
  contact:
    name: agentsfleet
    url: https://agentsfleet.net
  license:
    name: MIT
    identifier: MIT
  version: 1.0.0
servers:
  - url: https://api.agentsfleet.net
    description: Production
security: []
paths:
  /v1/workspaces/{workspace_id}/fleets/{fleet_id}/turns/{turn_id}:
    get:
      tags:
        - Fleets
      summary: Read one fleet turn
      description: >-
        Returns one turn's request body and full reply. Turn lists omit these
        bodies; fetch details when opening a turn. Missing turns and turns
        outside your workspace both return 404.
      operationId: get_fleet_turn
      parameters:
        - name: workspace_id
          in: path
          description: >-
            Workspace identifier (version 7 universally unique identifier, or
            UUID).
          required: true
          schema:
            type: string
        - name: fleet_id
          in: path
          description: Fleet identifier (version 7 universally unique identifier, or UUID).
          required: true
          schema:
            type: string
        - name: turn_id
          in: path
          description: Turn identifier (version 7 universally unique identifier, or UUID).
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TurnDetail'
        '400':
          description: The request is invalid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '401':
          description: Authentication is missing, invalid, or not accepted by this endpoint
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '403':
          description: You do not have permission for this action
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '404':
          description: The resource was not found or is not accessible to you
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '429':
          description: A request or capacity limit has been reached
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '500':
          description: An internal server error occurred
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '503':
          description: A required service is unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
      security:
        - BearerAuth: []
components:
  schemas:
    TurnDetail:
      type: object
      description: One turn as the expanded view renders it — bodies included.
      required:
        - fleet_id
        - turn_id
        - workspace_id
        - actor
        - event_type
        - status
        - request_json
        - created_at
        - updated_at
      properties:
        actor:
          type: string
          description: Who or what produced the turn.
        cost_nanos:
          oneOf:
            - $ref: '#/components/schemas/Nanos'
              description: What this turn actually cost, summed over its telemetry rows.
            - type: 'null'
        created_at:
          type: string
          format: date-time
          description: When the row was created.
        durable_task_activity:
          $ref: '#/components/schemas/DurableTaskActivityHistory'
          description: >-
            Retained public task progress, separate from private conversation
            state.
        event_type:
          type: string
          description: How the turn entered the system, as stored.
        failure_detail:
          type:
            - string
            - 'null'
          description: The operator-readable cause line, absent when none was carried.
        failure_label:
          type:
            - string
            - 'null'
          description: What refused or failed the run, absent on a clean one.
        fleet_id:
          type: string
          description: The fleet this turn belongs to.
        request_json:
          type: string
          description: The trigger payload as stored, serialized to text.
        response_text:
          type:
            - string
            - 'null'
          description: |-
            The agent's full answer.

            `null` while a run is in flight, and on a run that failed before
            producing one.
        resumes_turn_id:
          type:
            - string
            - 'null'
          description: The turn this one continues, set on a continuation.
        status:
          type: string
          description: Where the turn's run got to, as stored.
        tokens:
          type:
            - integer
            - 'null'
          format: int64
          description: Tokens the run spent, absent until a runner reports.
        tool_calls:
          oneOf:
            - $ref: '#/components/schemas/ToolTrace'
              description: >-
                Recorded tool calls, including arguments and outcomes. Null
                means records are

                unavailable, not that no tools ran.
            - type: 'null'
          description: 'Beta: this field may change shape before it is stable.'
          x-stability: beta
        turn_id:
          type: string
          description: >-
            The canonical turn identifier — the stream entry id that produced
            it.
        updated_at:
          type: string
          format: date-time
          description: When the row last changed.
        wall_ms:
          type:
            - integer
            - 'null'
          format: int64
          description: Wall milliseconds the run took, absent until a runner reports.
        workspace_id:
          type: string
          description: The workspace the fleet belongs to.
      additionalProperties: false
    ProblemBody:
      type: object
      description: The body every refusal carries, under `application/problem+json`.
      required:
        - docs_uri
        - title
        - detail
        - error_code
        - request_id
      properties:
        action_id:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the action the gate held.'
        current_state:
          type:
            - string
            - 'null'
          description: 'On a 409 only: the state that forbade the transition.'
        detail:
          type: string
          description: One sentence on what was refused and why.
        docs_uri:
          type: string
          description: Where the error code is documented.
        error_code:
          type: string
          description: The registry code, stable across releases.
        etag:
          type:
            - string
            - 'null'
          description: >-
            On a 412 only: the resource's current entity tag, to refetch and
            retry.
        gate_id:
          type:
            - string
            - 'null'
          description: 'On an answered approval gate''s 409 only: the gate that was answered.'
        local_read_permitted:
          type:
            - boolean
            - 'null'
          description: >-
            On a temporary extract outage, true authorizes one local read under
            the fleet's network policy.
        outcome:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the answer that stands.'
        request_id:
          type: string
          description: The request this refusal answers, for support.
        resolved_at:
          type:
            - string
            - 'null'
          format: date-time
          description: 'On that 409 only: when the standing answer was given.'
        resolved_by:
          type:
            - string
            - 'null'
          description: 'On that 409 only: who gave it.'
        title:
          type: string
          description: A short name for the refusal, safe to show a person.
        user_message:
          type:
            - string
            - 'null'
          description: A curated sentence for end users, where the code has one.
    Nanos:
      type: string
      description: A whole number of nanos (10⁻⁹ US dollars) as a decimal string.
      pattern: ^(0|[1-9][0-9]*)$
    DurableTaskActivityHistory:
      type: object
      description: Retained activity, kept apart from the task's private history.
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/DurableTaskActivityRecord'
          description: The newest fact of each operation and stage, in observed order.
    ToolTrace:
      type: object
      description: >-
        Every call one run made, oldest first.


        No count or size caps the list: the report's frame

        (`crate::protocol::MESSAGE_BYTES_MAX`) bounds it, and each row keeps
        only

        its short preview.
      required:
        - calls
      properties:
        calls:
          type: array
          items:
            $ref: '#/components/schemas/ToolTraceCall'
          description: Every call the run made.
        sources_in_items:
          type: boolean
          description: >-
            The final report needed the room taken by duplicate citations.
            Settlement

            restores them from this run's numbered items in the same
            transaction.
      additionalProperties: false
    DurableTaskActivityRecord:
      oneOf:
        - type: object
          description: A physical judgment started.
          required:
            - progress
            - kind
          properties:
            kind:
              type: string
              enum:
                - durable_task_decision_started
            progress:
              $ref: '#/components/schemas/DurableTaskActivity'
              description: A physical judgment started.
        - type: object
          description: Its original receipt was recorded or remained unusable.
          required:
            - progress
            - kind
          properties:
            kind:
              type: string
              enum:
                - durable_task_decision_completed
            progress:
              $ref: '#/components/schemas/DurableTaskActivity'
              description: Its original receipt was recorded or remained unusable.
        - type: object
          description: A bounded capture/restore stage advanced.
          required:
            - progress
            - kind
          properties:
            kind:
              type: string
              enum:
                - durable_task_transfer_progress
            progress:
              $ref: '#/components/schemas/DurableTaskActivity'
              description: A bounded capture/restore stage advanced.
      description: Saved progress uses the same discriminators as live activity.
    ToolTraceCall:
      type: object
      description: One call in a run's trace.
      required:
        - call_id
        - name
        - arguments
        - status
        - duration_ms
      properties:
        arguments:
          type: object
          description: >-
            The arguments the call was made with, secret values masked. At most

            2048 bytes encoded, no string or key inside longer than 256 bytes,
            and

            no NUL character anywhere.
        call_id:
          type: string
          description: >-
            Call number starting at 1, as a decimal string. Other formats are
            dropped. The server

            adds `{fence}:` to match the activity stream's identifier.
        changes:
          type: array
          items:
            $ref: '#/components/schemas/FileChange'
          description: >-
            For an edit: each file it changed and the lines it added and
            removed.

            Absent for any other call, and for an edit that failed.
        duration_ms:
          type: integer
          format: int64
          description: How long the call took, in milliseconds.
          minimum: 0
        exit_code:
          type:
            - integer
            - 'null'
          format: int32
          description: The process's exit code, for a call that ran one.
        name:
          type: string
          description: Which tool.
        output_head:
          type:
            - string
            - 'null'
          description: >-
            The output's first lines, at most 5 lines and 1024 bytes. Absent
            when

            the call returned nothing.
        output_line_count:
          type:
            - integer
            - 'null'
          format: int64
          description: How many lines the whole output had.
          minimum: 0
        output_tail:
          type:
            - string
            - 'null'
          description: |-
            The output's last lines, at most 5 lines and 1024 bytes. Absent when
            the head already holds the whole output.
        sources:
          type: array
          items:
            $ref: '#/components/schemas/WebSource'
          description: Pages returned by this call, in their original order.
        status:
          $ref: '#/components/schemas/ToolCallStatus'
          description: How the call ended.
      additionalProperties: false
    DurableTaskActivity:
      type: object
      description: Progress comes from native identities and counters, never model prose.
      required:
        - activity_id
        - operation
        - phase
        - completed
      properties:
        activity_id:
          type: string
          description: Physical decision or checkpoint operation identity.
        bytes:
          oneOf:
            - $ref: '#/components/schemas/DurableTaskTransferBytes'
              description: >-
                Deduplicated ciphertext bytes; absent for decisions and
                historical frames.
            - type: 'null'
        completed:
          type: integer
          format: int32
          description: Completed objects, never an inferred success percentage.
          minimum: 0
        durable_task_id:
          type:
            - string
            - 'null'
          description: Native task, absent during initial intent routing.
        model:
          type:
            - string
            - 'null'
          description: Selected model label.
        operation:
          $ref: '#/components/schemas/DurableTaskActivityOperation'
          description: Native operation category.
        phase:
          $ref: '#/components/schemas/DurableTaskActivityPhase'
          description: The current public stage.
        provider:
          type:
            - string
            - 'null'
          description: Selected provider label; no credential or URL.
        sequence:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            Event-local observation order assigned by the daemon, never a worker
            clock.


            Bounded by JavaScript's `Number.MAX_SAFE_INTEGER`, 2^53 - 1: the
            browser

            and the CLI read this JSON number as a double and order by it
            exactly.
          minimum: 0
        source_turn_id:
          type:
            - string
            - 'null'
          description: Exact original turn, when assessing human intent.
        total:
          type:
            - integer
            - 'null'
          format: int32
          description: Total objects when known.
          minimum: 0
      additionalProperties: false
    FileChange:
      type: object
      description: One file an edit changed.
      required:
        - path
        - added
        - removed
      properties:
        added:
          type: integer
          format: int64
          description: Lines the call added to the file.
          minimum: 0
        path:
          type: string
          description: |-
            The file, as the call named it relative to its working directory,
            secret values masked; never empty.
        removed:
          type: integer
          format: int64
          description: Lines the call removed from it.
          minimum: 0
      additionalProperties: false
    WebSource:
      type: object
      description: >-
        A sanitized page citation shared by a completion, a trace row and its
        saved item.
      required:
        - url
      properties:
        title:
          type:
            - string
            - 'null'
          description: Displayable page title, when supplied.
        url:
          type: string
          description: >-
            Displayable URL, stripped of credentials, query and fragment by the
            runner.
      additionalProperties: false
    ToolCallStatus:
      type: string
      description: >-
        How one tool call ended.


        Every call ends exactly once. A call the run never finished, after a
        crash,

        a kill or a timeout, ends `interrupted`. So no call is left running in a

        browser or missing from the record.
      enum:
        - succeeded
        - failed
        - interrupted
    DurableTaskTransferBytes:
      type: object
      description: >-
        Transfer facts, excluding speculative sends and repeated object
        references.
      required:
        - acknowledged
        - missing
        - reused
      properties:
        acknowledged:
          type: integer
          format: int64
          description: Unique bytes verified after upload or authenticated download.
          minimum: 0
        missing:
          type: integer
          format: int64
          description: >-
            Known missing bytes still awaiting acknowledgement; not a total
            estimate.
          minimum: 0
        reused:
          type: integer
          format: int64
          description: Unique bytes already present when native authorization was read.
          minimum: 0
      additionalProperties: false
    DurableTaskActivityOperation:
      type: string
      description: The operation whose progress is being shown.
      enum:
        - goal
        - capture
        - restore
    DurableTaskActivityPhase:
      type: string
      description: A public stage, separate from authoritative task completion.
      enum:
        - starting
        - recorded
        - unavailable
        - preparing
        - scanning
        - uploading
        - verifying
        - saved
        - restoring
        - restored
        - failed
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Send a dashboard session token, an account API key (`agt_t`), or a
        command-line credential (`afc_`) as a Bearer token. Each endpoint lists
        accepted credential types.

````

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