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

# Resume an agent run (no run can resume at this time)

> No run can resume at this time. The route answers with an HTTP status code:
  - 409 Conflict: the run is a graph run in progress, or the run is stopped. The run
    is left untouched; poll `GET /api/v1/query/runs/{runId}` for its outcome.
  - 501 Not Implemented: the run is a kernel run in progress.
  - 410 Gone: the run is Completed (the final answer is in the body) or Expired. The
    body carries the original question and, for Completed runs, the rendered result.
  - 422 Unprocessable Content: the run is in a Failed state.
  - 403 Forbidden: another credential started the run.
  - 404 Not Found: the run does not exist or is not owned by the caller.

The `200` response is the one a future kernel resume sends: an SSE stream whose
first event is `run-started`, followed by the same domain events as the original
streaming endpoint (for example `plan`, `step`, `answer` for AutoRag).




## OpenAPI

````yaml /api-reference/openapi.yml post /query/runs/{runId}/resume
openapi: 3.0.3
info:
  title: DataLinks
  version: 3.21.1
servers:
  - url: https://api.datalinks.com/api/v1
    description: production server
security:
  - bearerAuth: []
  - openId:
      - implicit
paths:
  /query/runs/{runId}/resume:
    post:
      tags:
        - agentRuns
      summary: Resume an agent run (no run can resume at this time)
      description: >
        No run can resume at this time. The route answers with an HTTP status
        code:
          - 409 Conflict: the run is a graph run in progress, or the run is stopped. The run
            is left untouched; poll `GET /api/v1/query/runs/{runId}` for its outcome.
          - 501 Not Implemented: the run is a kernel run in progress.
          - 410 Gone: the run is Completed (the final answer is in the body) or Expired. The
            body carries the original question and, for Completed runs, the rendered result.
          - 422 Unprocessable Content: the run is in a Failed state.
          - 403 Forbidden: another credential started the run.
          - 404 Not Found: the run does not exist or is not owned by the caller.

        The `200` response is the one a future kernel resume sends: an SSE
        stream whose

        first event is `run-started`, followed by the same domain events as the
        original

        streaming endpoint (for example `plan`, `step`, `answer` for AutoRag).
      operationId: resumeAgentRun
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: >-
            Not sent at this time. A future kernel resume sends an SSE stream of
            lifecycle and domain events for the resumed run.
          content:
            text/event-stream:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            Another credential started the run; only that credential can resume
            it.
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            The run is a graph run in progress or is stopped, and cannot be
            resumed. Poll the status of the run.
        '410':
          description: Run is already completed or expired.
        '422':
          description: Run is in a failed state.
        '501':
          description: >-
            The run is a kernel run in progress. Resuming a kernel run is not
            implemented yet.
components:
  responses:
    Unauthorized:
      description: >-
        Unauthorized. This error occurs if the authentication token is missing
        or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      required:
        - error_code
        - message
      type: object
      properties:
        error_code:
          type: string
          example: UNAUTHORIZED
        error_message:
          type: string
          example: ''
        message:
          type: string
          example: Missing authentication token
        sub_errors:
          type: array
          items:
            required:
              - code
              - message
            type: object
            properties:
              code:
                type: string
              message:
                type: string
  securitySchemes:
    bearerAuth:
      type: http
      description: >
        Use a Bearer token for authentication. Submit the token using the
        `Authorization`

        header: `Authorization: Bearer <token>`.
      scheme: bearer
    openId:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: >-
            https://login.datalinks.com/realms/datalinks-realm/protocol/openid-connect/auth
          scopes:
            openid: openid

````

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