Agents

Decide a request for an agent

Changed on

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.

post/v1/personal-agents/{id}/requests/{requestId}/decision

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

id, string required
requestId, string required

Request body

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

Response

Request decided.

PersonalAgentRequest required
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
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
decidedBy, PersonalAgentPerson nullable 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.

Changes

    • warning

      added the new awaiting_owner enum value to the status response property for the response status

    • warning

      added the new turn_on enum value to the canDecide/items response property for the response status

    • info

      added the new turn_on enum value to the request property decision

    1 more change in this revision