Give the outcome of a screen an Oliver run opened.
POST/api/v1/oliver-runs/{oliver_run_id}/surface-eventsoliver:run
Settles a surface of your own run as the editor's Save, Publish, Cancel or error does: the surface takes the state, and a run parked on it (waiting_for_surface_save) continues, which respond_oliver_run cannot do (v1_run_editor_wait). Without oliver_surface_event_id the run's open surface is used (409 when it has none). state is what the screen was saved with. Answers 201 with the surface. Needs Interact With Oliver Surfaces; callers without View Oliver Conversations and View Oliver Surfaces receive a write receipt.
| Scope | oliver:run |
| Asynchronous | No |
| MCP tool | create_oliver_run_surface_event |
| Portal permissions | interact_with_oliver_surfaces |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
oliver_run_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | OliverSurfaceEventCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json OliverSurfaceEvent or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict, idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
OliverSurfaceEvent
| Field | Type | Required | Description |
|---|---|---|---|
created_at | string (date-time) or null | Required | |
mode | string | Required | |
oliver_run_id | string | Required | |
oliver_surface_event_id | string | Required | The surface the run opened: the one an outcome is given to. |
save_state | string | Required | pending (open, waiting for an outcome), saved, published, cancelled or error (open). |
state | object | Required | The state the surface was saved with (and what it created); empty until an outcome carries one. |
type | string | Required | The kind of screen: email_template, search, exploration, agent_config and so on (open). |
updated_at | string (date-time) or null | Required |
OliverSurfaceEventCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
error | string or null | Optional | What went wrong (surface_error). |
event_type | string | Required | surface_saved, surface_published, surface_cancelled or surface_error. |
oliver_surface_event_id | string or null | Optional | The surface the outcome is for; omit for the run's open surface. |
state | object or null | Optional | What the surface was saved with, as the editor reports it (saved and published). |