---
title: "Poll the next operation for the open editor"
method: GET
path: "/editor-agent/sessions/{session_id}/next"
tags: ["Editor Agent"]
---

# Poll the next operation for the open editor

`GET /editor-agent/sessions/{session_id}/next`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/editor-agent/sessions/{session_id}/next`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `session_id` string, required

## Query parameters

- `epoch` string, required

## Response `200`

OK

- EditorAgentNextOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `request` Request, required
    - `$schema` string, uri: A URL to the JSON Schema for this object.
    - `arguments` unknown, required
    - `created_at` string, date-time, required
    - `error` unknown
    - `expires_at` string, date-time, required
    - `id` string, required
    - `operation` string, required
    - `request_key` string, required
    - `result` unknown
    - `session_id` string, required
    - `status` string, required
    - `updated_at` string, date-time, required
    - `workspace_id` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
