Patricia Permission Requests API
The permission-requests API from Patricia — 6 operation(s) for permission-requests.
The permission-requests API from Patricia — 6 operation(s) for permission-requests.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/patricia-app:patricia-app-permission-requests-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Patricia Permission Requests API
version: 0.1.0
tags:
- name: permission-requests
paths:
/v1/permission-requests:
get:
tags:
- permission-requests
summary: List tool-approval requests
description: Tenant-scoped human-in-the-loop approval queue (read-only SearchQuery view). Argument values are sanitized and visible only to callers who can decide requests (runs:execute); read-only callers receive a value-free input_summary instead.
operationId: list_permission_requests_v1_permission_requests_get
security:
- HTTPBearer: []
parameters:
- name: q
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: ANTLR filter expression
title: Q
description: ANTLR filter expression
- name: limit
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 500
minimum: 1
- type: 'null'
description: Page size
title: Limit
description: Page size
- name: sort_by
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Sort expression (e.g. created_at:desc)
title: Sort By
description: Sort expression (e.g. created_at:desc)
- name: fields
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Field projection (e.g. id,name)
title: Fields
description: Field projection (e.g. id,name)
- name: pq
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Pagination cursor query
title: Pq
description: Pagination cursor query
- name: from_prev
in: query
required: false
schema:
type: boolean
description: Backward pagination flag
default: false
title: From Prev
description: Backward pagination flag
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/queries__permission_request_queue__PermissionRequestQueueQuery__SearchValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/permission-requests/{permission_request_id}:
get:
tags:
- permission-requests
summary: Get a tool-approval request
description: Fetch a single approval request by id, scoped to the caller's tenant. Argument values are sanitized and visible only to callers who can decide requests (runs:execute) and are rendered in FULL on this detail view, so an approver can review everything the tool will run with; read-only callers receive a value-free input_summary instead.
operationId: get_permission_request_v1_permission_requests__permission_request_id__get
security:
- HTTPBearer: []
parameters:
- name: permission_request_id
in: path
required: true
schema:
type: string
format: uuid
title: Permission Request Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PermissionRequestRow'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/permission-requests/{permission_request_id}/approve:
post:
tags:
- permission-requests
summary: Approve a tool-approval request
description: Approve a pending request and resume its suspended run (async). A verified requester can answer their pending task offer with choice=none without runs:execute.
operationId: approve_permission_request_v1_permission_requests__permission_request_id__approve_post
security:
- HTTPBearer: []
parameters:
- name: permission_request_id
in: path
required: true
schema:
type: string
format: uuid
title: Permission Request Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/TaskOfferSelection'
- type: 'null'
title: Selection
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApprovalDecisionResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: 'Conflict: the request has already been resolved (error_type already_resolved), or the run''s actor is not the owner of the personal connection it would spend (error_type run_actor_not_connection_owner), which dispatch would refuse.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: 'Service unavailable: the task queue could not accept the decision.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/permission-requests/{permission_request_id}/deny:
post:
tags:
- permission-requests
summary: Deny a tool-approval request
description: Deny a pending request; its run resolves without running the tool (async). A verified requester can answer their pending task offer with choice=none without runs:execute.
operationId: deny_permission_request_v1_permission_requests__permission_request_id__deny_post
security:
- HTTPBearer: []
parameters:
- name: permission_request_id
in: path
required: true
schema:
type: string
format: uuid
title: Permission Request Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/TaskOfferSelection'
- type: 'null'
title: Selection
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApprovalDecisionResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: 'Conflict: the request has already been resolved (error_type already_resolved).'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: 'Service unavailable: the task queue could not accept the decision.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/permission-requests/{permission_request_id}/private-review:
post:
tags:
- permission-requests
summary: Get requester-private task destinations
operationId: get_task_private_review_v1_permission_requests__permission_request_id__private_review_post
security:
- HTTPBearer: []
parameters:
- name: permission_request_id
in: path
required: true
schema:
type: string
format: uuid
title: Permission Request Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TaskPrivateDetailResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/permission-requests/{permission_request_id}/private-review-acknowledgement:
post:
tags:
- permission-requests
summary: Acknowledge a requester-private task review
operationId: acknowledge_task_private_review_v1_permission_requests__permission_request_id__private_review_acknowledgement_post
security:
- HTTPBearer: []
parameters:
- name: permission_request_id
in: path
required: true
schema:
type: string
format: uuid
title: Permission Request Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TaskPrivateReviewAcknowledgement'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TaskPrivateReviewResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
TaskOfferSelection:
properties:
offer_request_id:
type: string
format: uuid
title: Offer Request Id
choice:
type: string
enum:
- all
- chosen
- none
title: Choice
chosen_line_keys:
items:
type: string
type: array
title: Chosen Line Keys
default: []
offer_digest:
type: string
minLength: 1
title: Offer Digest
private_review_tokens:
anyOf:
- additionalProperties:
type: string
type: object
- type: 'null'
title: Private Review Tokens
additionalProperties: false
type: object
required:
- offer_request_id
- choice
- offer_digest
title: TaskOfferSelection
description: 'One answer to one frozen offer.
The ``all`` choice excludes recipient-pinned lines and lines that cover a whole ad account.
``all`` and ``none`` carry no chosen keys; ``chosen`` carries at least one key and no key twice.'
ApprovalDecisionResponse:
properties:
status:
type: string
title: Status
permission_request_id:
type: string
format: uuid
title: Permission Request Id
run_id:
type: string
format: uuid
title: Run Id
approved:
type: boolean
title: Approved
type: object
required:
- status
- permission_request_id
- run_id
- approved
title: ApprovalDecisionResponse
description: Acknowledgement that an approval decision was accepted for async resume.
queries__permission_request_queue__PermissionRequestQueueQuery__SearchValidator:
properties:
items:
items:
$ref: '#/components/schemas/PermissionRequestRow'
type: array
title: Items
first:
anyOf:
- type: string
- type: 'null'
title: First
next:
anyOf:
- type: string
- type: 'null'
title: Next
previous:
anyOf:
- type: string
- type: 'null'
title: Previous
type: object
required:
- items
title: SearchValidator
description: Typed cursor-paginated response envelope for the approval queue.
ErrorResponse:
properties:
code:
type: string
title: Code
message:
type: string
title: Message
errors:
anyOf:
- items:
additionalProperties: true
type: object
type: array
- type: 'null'
title: Errors
type: object
required:
- code
- message
title: ErrorResponse
description: Standard error envelope, matching exception handler output.
TaskPrivateDetailResponse:
properties:
offer_request_id:
type: string
format: uuid
title: Offer Request Id
offer_digest:
type: string
title: Offer Digest
destinations:
additionalProperties:
items:
items:
type: string
type: array
type: array
type: object
title: Destinations
fixed_senders:
additionalProperties:
additionalProperties:
anyOf:
- type: string
- type: integer
type: object
type: object
title: Fixed Senders
review_key:
type: string
title: Review Key
type: object
required:
- offer_request_id
- offer_digest
- destinations
- fixed_senders
- review_key
title: TaskPrivateDetailResponse
ArgSummaryEntry:
properties:
key:
type: string
title: Key
description: Argument name (schema-level, never customer data).
type:
type: string
title: Type
description: 'JSON type of the hidden value: string, number, boolean, object, array, or null.'
size:
anyOf:
- type: integer
- type: 'null'
title: Size
description: 'Size of the hidden value: characters for a string, item count for an array, key count for an object. Null for other scalars, and always null for a credential-named argument.'
type: object
required:
- key
- type
title: ArgSummaryEntry
description: 'Value-free summary of ONE stored tool argument, for callers without the approval scope.
Read surfaces that carry tool arguments (the approval queue, the run''s tool-call timeline) return
argument VALUES only to callers holding ``runs:execute`` (the authority that may decide the request);
a plain ``runs:read`` caller gets one of these per top-level argument instead. Built by
``agent.arg_visibility.summarize_args``. Deliberately carries NO value hash: a row-salted digest was
reviewed and rejected as a practical value-confirmation oracle (the salt travels in the same response).'
PermissionRequestRow:
properties:
id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Id
run_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Run Id
tool_name:
anyOf:
- type: string
- type: 'null'
title: Tool Name
risk_tier_code:
anyOf:
- type: string
- type: 'null'
title: Risk Tier Code
status_code:
anyOf:
- type: string
- type: 'null'
title: Status Code
can_approve:
type: boolean
title: Can Approve
default: false
can_deny:
type: boolean
title: Can Deny
default: false
dispatch_blocked:
type: boolean
title: Dispatch Blocked
description: 'True when the bound account is personal and the run''s actor is not its connector, so an approval would be refused. Deliberately separate from can_approve, which keeps its own meaning: whether this caller holds approval authority under the audience policy.'
default: false
dispatch_block_reason:
anyOf:
- type: string
- type: 'null'
title: Dispatch Block Reason
description: Machine-readable code naming why dispatch is blocked, or null when it is not.
input:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Input
description: Tool arguments, sanitized. Present only for callers holding runs:execute (the authority that can decide this request); null for read-only callers, which receive input_summary instead. Null with no input_summary means the request carries no stored arguments.
input_summary:
anyOf:
- items:
$ref: '#/components/schemas/ArgSummaryEntry'
type: array
- type: 'null'
title: Input Summary
description: Value-free per-argument summary, populated in place of input for callers without runs:execute.
repeat_coverage_announced:
anyOf:
- type: boolean
- type: 'null'
title: Repeat Coverage Announced
task_offer_manifest:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Task Offer Manifest
task_offer_manifest_digest:
anyOf:
- type: string
- type: 'null'
title: Task Offer Manifest Digest
delivery_ref:
anyOf:
- type: string
- type: 'null'
title: Delivery Ref
approver_actor_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Approver Actor Id
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
resolved_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Resolved At
created_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Created At
type: object
title: PermissionRequestRow
description: 'Row shape for the approval queue.
All fields optional so ``fields=`` projection validates (runflow pattern).
``input`` is shaped per caller by the router (``routers/permission_requests.py``),
never returned raw: sanitized values for callers holding the approval scope
(``runs:execute``), null with ``input_summary`` populated for plain ``runs:read``
callers. The SQL below still selects the stored column; the shaping is response-time.'
TaskPrivateReviewAcknowledgement:
properties:
offer_digest:
type: string
minLength: 1
title: Offer Digest
review_key:
type: string
minLength: 1
title: Review Key
type: object
required:
- offer_digest
- review_key
title: TaskPrivateReviewAcknowledgement
TaskPrivateReviewResponse:
properties:
offer_request_id:
type: string
format: uuid
title: Offer Request Id
offer_digest:
type: string
title: Offer Digest
destinations:
additionalProperties:
items:
items:
type: string
type: array
type: array
type: object
title: Destinations
private_review_tokens:
additionalProperties:
type: string
type: object
title: Private Review Tokens
type: object
required:
- offer_request_id
- offer_digest
- destinations
- private_review_tokens
title: TaskPrivateReviewResponse
securitySchemes:
HTTPBearer:
type: http
scheme: bearer