---
title: "Unified cloud agent session (tier=sandbox|ephemeral)"
method: POST
path: "/v1/cloud/runtime/sessions/stream"
tags: ["v1", "Cloud Runtime"]
---

# Unified cloud agent session (tier=sandbox|ephemeral)

`POST /v1/cloud/runtime/sessions/stream`

## Request

- Base URL: `https://memory.papr.ai`
- URL: `https://memory.papr.ai/v1/cloud/runtime/sessions/stream`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Request body

- RuntimeSessionRequest
  - `external_user_id` string, nullable: Parse _User.objectId of the acting user (desktop OAuth). Used for ownership-scoped cloud operations instead of the API key user.
  - `chatId` string, required
  - `prompt` string, required
  - `provider` string, required
  - `model` string, required
  - `agentId` string, nullable
  - `jobId` string, nullable
  - `appId` string, nullable
  - `runtime` string
  - `tier` 'ephemeral' | 'sandbox'
  - `keyNames` string[]
  - `history` RuntimeSessionHistoryMessage[], nullable
    - `role` string, required
    - `content` string, required

## Response `200`

SSE stream of cloud agent events

- object: Generic JSON response object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `0e7a5c0d125d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/v1/cloud/runtime/sessions/stream/post.md)

---

[API](https://skmtc.dev/papr-ai/apis/papr-memory-api.md) - [All operations](https://skmtc.dev/papr-ai/apis/papr-memory-api/llms.txt) - [OpenAPI document](https://skmtc.dev/papr-ai/apis/papr-memory-api/revisions/6fc381dc78b3?raw)
