---
title: "Decide a request for an agent"
method: POST
path: "/v1/personal-agents/{id}/requests/{requestId}/decision"
tags: ["Agents"]
---

# Decide a request for an agent

`POST /v1/personal-agents/{id}/requests/{requestId}/decision`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/personal-agents/{id}/requests/{requestId}/decision`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Approves or denies a pending request. Needs a person signed in, not an API key. A 409 means the request was already decided or no longer matches the agent.

## Path parameters

- `id` string, required
- `requestId` string, required

## Request body

- DecidePersonalAgentRequest
  - `decision` 'deny' | 'allow_once' | 'always_allow' | 'approve' | 'turn_on', required

## Response `200`

Request decided.

- PersonalAgentRequest
  - `id` string, required
  - `agentId` string, required
  - `kind` 'tool' | 'change', required
  - `status` 'pending' | 'awaiting_owner' | 'denied' | 'allowed_once' | 'always_allowed' | 'approved' | 'used', required
  - `requestedBy` PersonalAgentPerson, required
    - `memberId` string, required
    - `name` string, required
  - `requestedByCaller` boolean: True when the caller is the person the request is for.
  - `runId` string, nullable, required
  - `connectionId` string, nullable, required
  - `connectionName` string, nullable, required
  - `toolName` string, nullable, required
  - `toolTitle` string, nullable, required
  - `summary` string, nullable, required
  - `change` PersonalAgentChange, nullable, required
    - `routineId` string
    - `schedule` union
      - object
        - `kind` 'once', required
        - `timezone` string, required
        - `at` integer, required
      - object
        - `kind` 'daily', required
        - `timezone` string, required
        - `hour` integer, required
        - `minute` integer, required
      - object
        - `kind` 'weekly', required
        - `timezone` string, required
        - `daysOfWeek` integer[], required
        - `hour` integer, required
        - `minute` integer, required
      - object: Every everyHours hours on the hour, counted from startHour on each listed day (0 = Sunday) and stopping before endHour, in timezone. Needs the organization's every-few-hours schedules.
        - `kind` 'interval', required
        - `timezone` string, required
        - `everyHours` integer, required
        - `daysOfWeek` integer[]
        - `startHour` integer
        - `endHour` integer
      - object: Runs offsetMinutes (negative is before) from the start or end of each meeting on the owner's primary Google Calendar: timed meetings they accepted or organize, with someone else invited. Cloud Automations only; needs Google Calendar connected and the organization's before-and-after-meeting Automations.
        - `kind` 'calendar', required
        - `timezone` string, required
        - `edge` 'start' | 'end', required
        - `offsetMinutes` integer, required
        - `rule` object
          - `withExternalAttendees` boolean
          - `titleIncludes` string
    - `instructions` string
    - `brief` string: The agent's definition, as Markdown: who it is, what it does, how it reports. Every run of the agent starts from it.
    - `name` string: A new name for the routine.
    - `active` boolean: Turn the routine on or off.
    - `toolPolicy` PersonalAgentToolPolicy
      - `connections` object
      - `tools` object
    - `memoryNote` string: Something for the agent to remember, added to its memory when the owner approves.
    - `newRoutine` object: A routine to add to the agent.
      - `name` string, required
      - `instructions` string, required
      - `schedule` union, required
        - object
          - `kind` 'once', required
          - `timezone` string, required
          - `at` integer, required
        - object
          - `kind` 'daily', required
          - `timezone` string, required
          - `hour` integer, required
          - `minute` integer, required
        - object
          - `kind` 'weekly', required
          - `timezone` string, required
          - `daysOfWeek` integer[], required
          - `hour` integer, required
          - `minute` integer, required
        - object: Every everyHours hours on the hour, counted from startHour on each listed day (0 = Sunday) and stopping before endHour, in timezone. Needs the organization's every-few-hours schedules.
          - `kind` 'interval', required
          - `timezone` string, required
          - `everyHours` integer, required
          - `daysOfWeek` integer[]
          - `startHour` integer
          - `endHour` integer
        - object: Runs offsetMinutes (negative is before) from the start or end of each meeting on the owner's primary Google Calendar: timed meetings they accepted or organize, with someone else invited. Cloud Automations only; needs Google Calendar connected and the organization's before-and-after-meeting Automations.
          - `kind` 'calendar', required
          - `timezone` string, required
          - `edge` 'start' | 'end', required
          - `offsetMinutes` integer, required
          - `rule` object
            - `withExternalAttendees` boolean
            - `titleIncludes` string
  - `decidedBy` PersonalAgentPerson, nullable, required
    - `memberId` string, required
    - `name` string, required
  - `decidedAt` string, date-time, nullable, required
  - `createdAt` string, date-time, required
  - `connectorAccess` true
  - `canDecide` string[], required: The decisions the caller may make on this request; empty when it is not theirs to decide or already decided.

## Other responses

- `403`: You cannot make this decision.
- `404`: Agent or request not found.
- `409`: Someone already decided this request.

## Changes

- **2026-11-26** `b55d1864549e`: 2 warning, 2 info
  - added the new `awaiting_owner` enum value to the `status` response property for the response status `200`
  - added the new `turn_on` enum value to the `canDecide/items/` response property for the response status `200`
  - added the new `turn_on` enum value to the request property `decision`
  - added the optional property `connectorAccess` to the response with the `200` status
- **2026-11-26** `bc0092687a7b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/personal-agents/:id/requests/:requestId/decision/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)
