---
title: "Connect an open browser editor to agent tools"
method: POST
path: "/editor-agent/sessions"
tags: ["Editor Agent"]
---

# Connect an open browser editor to agent tools

`POST /editor-agent/sessions`

## Request

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

## Request body

- EditorAgentRegisterInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `editor_kind` 'video' | 'image', required
  - `project_id` string, required
  - `workspace_id` string, required

## Response `200`

OK

- EditorAgentRegisterOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `epoch` string, required
  - `session` Session, required
    - `created_at` string, date-time, required
    - `editor_kind` string, required
    - `expires_at` string, date-time, required
    - `id` string, required
    - `last_seen_at` string, date-time, required
    - `project_id` string, required
    - `workspace_id` string, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `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)
