---
title: "Answer a remote session's question or permission"
method: POST
path: "/v1/remote-sessions/answer"
tags: ["Automations"]
---

# Answer a remote session's question or permission

`POST /v1/remote-sessions/answer`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/remote-sessions/answer`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

The member answers a question or permission one of their remote sessions waits on: the chosen option labels per question, decision once or reject (never always), or kind dismiss to close a question without answering it. requestId names the open request the member saw, any of those a read lists; one that is no longer open answers 409 stale_request and nothing is sent. A computer that cannot dismiss a question answers 409 answer_unsupported. A desktop that has not answered within about 20 seconds returns state pending with a requestId to read later. Same result as the remote-session:answer capability.

## Request body

- union
  - object
    - `sessionId` string, required
    - `workspaceId` string
    - `originSessionId` string
    - `originWorkspaceId` string
    - `kind` 'question', required
    - `requestId` string, required
    - `answers` array[], required
      - string[]
  - object
    - `sessionId` string, required
    - `workspaceId` string
    - `originSessionId` string
    - `originWorkspaceId` string
    - `kind` 'permission', required
    - `requestId` string, required
    - `decision` 'once' | 'reject', required
  - object
    - `sessionId` string, required
    - `workspaceId` string
    - `originSessionId` string
    - `originWorkspaceId` string
    - `kind` 'dismiss', required
    - `requestId` string, required

## Response `200`

The answer reached the session, or is pending.

- RemoteSessionResult

## Other responses

- `400`: The request or its arguments were invalid.
- `401`: Authentication required.
- `404`: The task is unknown or the organization was not found.
- `409`: The task cannot do that now. remote_access_off: the computer takes nothing from other devices (its owner's choice, no choice yet under the organization's opt-in, or the organization's ceiling); the message says who can allow it.
- `503`: The computer or cloud workspace that runs the task can't be reached right now; retry.

## Changes

- **2026-11-26** `9c7a5398948a`: 1 breaking, 1 info
  - removed `subschema #1, subschema #2, subschema #3` from the request body `oneOf` list
  - added `subschema #1, subschema #2, subschema #3` to the request body `oneOf` list
- **2026-11-11** `c298eb7b3d3c`: 1 info
  - added `subschema #3` to the request body `oneOf` list
- **2026-10-30** `a77c5a5943bf`: 1 breaking, 3 info
  - the response's body type changed from no type to `object` for status `404`
  - removed `#/components/schemas/NotFoundError, subschema #2` from the response body `anyOf` list for the response status `404`
  - added the optional property `message` to the response with the `404` status
  - added the required property `error` to the response with the `404` status
- **2026-10-30** `4324c5a1ad42`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/remote-sessions/answer/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
