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

# Ask a device to resend quarantined turns

> The server records the request. The device sees a newer `retry_requested_at` on its next report and resends.



## OpenAPI

````yaml /api-reference/openapi.json post /api/me/coding-agents/sync/{device_id}/retry
openapi: 3.1.0
info:
  title: Nasiko API
  description: >-
    HTTP API for the Nasiko OpenRuntime: agents, coding harnesses, TokenOps,
    routing, MCP, and secrets. Spec is generated from annotated routes; some
    surfaces are documented on the hand-written pages alongside this file.
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://free.app.nasiko.com
    description: Nasiko Cloud Free
  - url: https://{workspace}.app.nasiko.com
    description: Nasiko Cloud paid workspace
    variables:
      workspace:
        default: your-workspace
        description: >-
          Your workspace's subdomain, as shown in the connect command on the
          dashboard's Nasiko CLI page
security:
  - bearer_auth: []
tags:
  - name: secrets
    description: Encrypted per-user agent secrets
  - name: catalog
    description: >-
      Agent catalog: registration, discovery, versions, per-agent secrets, and
      source import
  - name: agents
    description: >-
      Agent lifecycle: deployments, LLM routing config, update/rollback,
      upload-and-deploy
  - name: orchestrator
    description: >-
      A2A dispatch: routing-engine/ReAct orchestrator and direct agent chat,
      plus routing stats
  - name: users
    description: >-
      User management: CRUD, roles, credentials, accessible agents
      (superuser-only)
  - name: usage
    description: Per-user token usage and cost reporting
  - name: observability
    description: Sessions, traces, spans, agent logs, and FinOps reporting
  - name: llm-router
    description: LLM routing presets, provider/model catalog, and tier→model registry
  - name: context-selection
    description: >-
      Per-user chat-history selection preferences: strategy, PACMS budget tier,
      the on/off switch, a dry-run preview, and settings-change history
  - name: coding-agents
    description: >-
      The progress local clients report while they bring in the caller's coding
      agents
  - name: settings
    description: >-
      Workspace-wide settings, including the Optimization tiers a user's PACMS
      budget level resolves against
  - name: mcp
    description: >-
      MCP gateway: agent-facing JSON-RPC tool calls, connector
      registration/upload/sharing, credentials & OAuth, and per-agent tool
      permissions
paths:
  /api/me/coding-agents/sync/{device_id}/retry:
    post:
      tags:
        - coding-agents
      summary: Ask a device to resend quarantined turns
      description: >-
        The server records the request. The device sees a newer
        `retry_requested_at` on its next report and resends.
      operationId: request_sync_retry
      parameters:
        - name: device_id
          in: path
          description: The device whose quarantined turns to re-send
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The run, with `retry_requested_at` set to now
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncRun'
        '400':
          description: 'Plain text: the device_id is malformed'
        '404':
          description: 'Plain text: this device has no run for the caller'
      security:
        - bearer_auth: []
components:
  schemas:
    SyncRun:
      type: object
      description: One device's latest run, as stored.
      required:
        - device_id
        - device_name
        - client
        - phase
        - agents
        - updated_at
        - windows
      properties:
        agents:
          type: array
          items:
            $ref: '#/components/schemas/SyncAgent'
        client:
          $ref: '#/components/schemas/SyncClient'
        device_id:
          type: string
        device_name:
          type: string
        error:
          type:
            - string
            - 'null'
        phase:
          $ref: '#/components/schemas/SyncPhase'
        retry_requested_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When the user last asked this device to re-send its quarantined
            turns; `null` if never.
        started_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When the current run entered `discovering`; `null` if this device
            never started one.
        updated_at:
          type: string
          format: date-time
        windows:
          type: array
          items:
            $ref: '#/components/schemas/SyncWindow'
    SyncAgent:
      type: object
      required:
        - id
        - name
        - detected
        - connected
        - import
      properties:
        connected:
          type: boolean
        detected:
          type: boolean
        id:
          type: string
          description: Integration id, e.g. `claude`, `codex`, `opencode`, `cursor`.
        import:
          $ref: '#/components/schemas/ImportProgress'
        name:
          type: string
          description: Display name, e.g. `Claude Code`.
    SyncClient:
      type: string
      enum:
        - desktop
        - cli
    SyncPhase:
      type: string
      description: >-
        Where a device's run is. Clients no longer send `awaiting_consent`
        (consent is local to the

        client); it is still accepted so a report from an older client is not a
        400.
      enum:
        - awaiting_consent
        - discovering
        - connecting
        - importing
        - sending
        - done
        - failed
    SyncWindow:
      type: object
      description: >-
        One slice of history the client reads, newest first (e.g. "Last 8
        hours").
      required:
        - label
        - status
        - sessions
        - turns
      properties:
        label:
          type: string
        sessions:
          type: integer
          format: int32
          minimum: 0
        status:
          $ref: '#/components/schemas/WindowStatus'
        turns:
          type: integer
          format: int32
          minimum: 0
    ImportProgress:
      type: object
      description: One agent's past-session import.
      required:
        - status
        - done
        - total
        - sessions
        - turns
        - failed
      properties:
        done:
          type: integer
          format: int32
          description: Sessions processed so far.
          minimum: 0
        error:
          type:
            - string
            - 'null'
        failed:
          type: integer
          format: int32
          description: Sessions that could not be read.
          minimum: 0
        pending:
          type: integer
          format: int32
          description: Turns queued locally that the server has not accepted yet.
          minimum: 0
        rejected:
          type: integer
          format: int32
          description: Turns quarantined by the client.
          minimum: 0
        rejected_reasons:
          type: array
          items:
            $ref: '#/components/schemas/RejectedReason'
          description: Why turns were quarantined, most frequent first.
        sessions:
          type: integer
          format: int32
          description: Sessions that had new turns.
          minimum: 0
        status:
          $ref: '#/components/schemas/ImportStatus'
        total:
          type: integer
          format: int32
          description: Sessions to process.
          minimum: 0
        turns:
          type: integer
          format: int32
          description: Turns queued.
          minimum: 0
    WindowStatus:
      type: string
      enum:
        - waiting
        - running
        - done
    RejectedReason:
      type: object
      required:
        - reason
        - count
      properties:
        count:
          type: integer
          format: int32
          minimum: 0
        reason:
          type: string
    ImportStatus:
      type: string
      enum:
        - waiting
        - running
        - done
        - failed
        - skipped
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Session JWT. After `nasiko auth login`, print it with `jq -r
        '.clusters[.active].token' ~/.nasiko/config.json`. API keys aren't
        supported.

````

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