Loop Returns · Agentic Access

Loop Returns Agentic Access

x-agentic-access generated

Loop Returns exposes 32 API operations that an AI agent could call, of which 22 are state-changing ‘acting’ operations. This is a recommended x-agentic-access execution contract — the scope, audience, consequence tier, short-lived token constraints, and escalation each action should carry before it is handed to an autonomous agent.

By consequence: 10 read, 20 write, and 2 physical.

Contracts are classified heuristically from the provider’s OpenAPI and refresh on every APIs.io network build; audience is bound per deployment. The model follows Curity’s Access Intelligence (apidays Munich 2026). Browse every provider’s agent contracts at agentic-access.apis.io.

ReturnsE-CommerceExchangesRefundsShippingPost-PurchaseShopifyFraud PreventionRetail
Operations: 32 Acting: 22 Human-in-the-loop: 0 Method: generated

By consequence

read 10 write 20 physical 2

Highest-consequence actions

The physical and safety-critical operations an agent could invoke — the ones that most warrant scoped tokens, tight TTLs, and escalation. Full per-operation contracts are in the source below.

MethodPathConsequenceHuman-in-loop
POST /order/link physical conditional
POST /order/qr physical conditional

Source

Agentic Access

Raw ↑
generated: '2026-07-15'
method: generated
source: openapi/loop-returns-carts-openapi.yml, openapi/loop-returns-destinations-openapi.yml,
  openapi/loop-returns-fraud-reports-openapi.yml, openapi/loop-returns-labels-openapi.yml, openapi/loop-returns-returns-openapi.yml,
  openapi/loop-returns-webhooks-openapi.yml
description: Recommended x-agentic-access execution contracts, classified heuristically from
  the OpenAPI. A governance starting point for exposing this API to AI agents — review and bind
  audience per deployment. See research/curity/agentic-governance/.
summary:
  operations: 32
  by_action_class:
    acting: 22
    connected: 10
  by_consequence:
    write: 20
    read: 10
    physical: 2
  human_in_the_loop_required: 0
operations:
- path: /cart
  method: post
  operationId: createCart
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /cart/{token}
  method: get
  operationId: getCart
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    token:
      max-ttl: 3600
    audit: none
- path: /cart/{token}
  method: post
  operationId: updateCart
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /cart/{token}
  method: delete
  operationId: deleteCart
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /destinations
  method: get
  operationId: getAllDestinations
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    token:
      max-ttl: 3600
    audit: none
- path: /destinations
  method: post
  operationId: createDestination
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /destinations/{id}
  method: get
  operationId: getDestinationDetails
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    token:
      max-ttl: 3600
    audit: none
- path: /destinations/{id}
  method: put
  operationId: updateDestination
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /destinations/{id}
  method: delete
  operationId: deleteDestination
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /returns/{return_id}/fraud-report
  method: post
  operationId: createFraudReport
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /label-requests
  method: get
  operationId: list-label-requests
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    scope:
    - label_requests:read
    token:
      max-ttl: 3600
    audit: none
- path: /label-requests/{id}
  method: get
  operationId: get-label-request
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    scope:
    - label_requests:read
    token:
      max-ttl: 3600
    audit: none
- path: /label-requests/{id}/errors
  method: post
  operationId: create-label-request-error
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    scope:
    - label_requests:write
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /labels
  method: post
  operationId: create-label-request-label
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    scope:
    - labels:write
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /labels/{id}
  method: put
  operationId: update-label-status
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    scope:
    - labels:write
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /returns/{returnId}/labels
  method: post
  operationId: generate-label
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    scope:
    - returns
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /warehouse/return/{return_id}/process
  method: post
  operationId: processReturn
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /warehouse/return/{return_id}/remove
  method: post
  operationId: removeLineItems
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /warehouse/return/{return_id}/cancel
  method: post
  operationId: cancelReturn
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /warehouse/return/{return_id}/flag
  method: post
  operationId: flagReturn
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /warehouse/return/{return_id}/close
  method: post
  operationId: closeReturn
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /warehouse/return/{return_id}/notes
  method: get
  operationId: getReturnNotes
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    token:
      max-ttl: 3600
    audit: none
- path: /warehouse/return/{return_id}/note
  method: post
  operationId: createReturnNote
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /warehouse/return/list
  method: get
  operationId: getDetailedReturnsList
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    token:
      max-ttl: 3600
    audit: none
- path: /warehouse/return/details
  method: get
  operationId: getReturnDetails
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    token:
      max-ttl: 3600
    audit: none
- path: /warehouse/reporting/asn
  method: get
  operationId: getAdvancedShippingNotice
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    token:
      max-ttl: 3600
    audit: none
- path: /order/link
  method: post
  operationId: createReturnDeepLink
  x-agentic-access:
    action-class: acting
    consequence: physical
    subject: required
    audience: null
    token:
      max-ttl: 300
      exchange: true
      purpose-required: true
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /order/qr
  method: post
  operationId: createReturnDeepLinkWithQrCode
  x-agentic-access:
    action-class: acting
    consequence: physical
    subject: required
    audience: null
    token:
      max-ttl: 300
      exchange: true
      purpose-required: true
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /webhooks
  method: get
  operationId: getWebhooks
  x-agentic-access:
    action-class: connected
    consequence: read
    subject: optional
    scope:
    - developer_tools
    token:
      max-ttl: 3600
    audit: none
- path: /webhooks
  method: post
  operationId: createWebhook
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    scope:
    - developer_tools
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /webhooks/{id}
  method: delete
  operationId: deleteWebhook
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    scope:
    - developer_tools
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required
- path: /webhooks/{id}
  method: put
  operationId: updateWebhook
  x-agentic-access:
    action-class: acting
    consequence: write
    subject: required
    scope:
    - developer_tools
    audience: null
    token:
      max-ttl: 900
    escalation:
      human-in-the-loop: conditional
      triggers:
      - abnormal
      - high-value
    audit: required