> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orbit.devotel.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delegate an attenuated sub-agent mandate

> Mint an attenuated CHILD mandate from a live `parent` for an agent-as-tool / A2A re-delegation hop (orchestrator → sub-agent, or transitively sub-agent → sub-sub-agent). The child's allowlists, invocation cap, and expiry are each narrowed to a subset of the parent's — a delegated mandate can never end up with more authority than it was given — and it carries a `parentMandateId` + `parentDigest` pointer baked into its own consent digest so the ancestry link cannot be forged or repointed. Delegation is refused from a parent that is revoked, expired, exhausted, or fails its own integrity check. Requires the `agents:write` scope and an owner, admin, or developer role. Audit-logged.



## OpenAPI

````yaml /openapi.yaml post /api/v1/agents/agent-authorization-mandate/delegate
openapi: 3.1.0
info:
  title: Devotel CPaaS API
  description: Orbit by Devotel — Communications Platform as a Service API
  version: 1.0.0
  contact:
    name: Devotel
    url: https://devotel.io
    email: support@devotel.io
  license:
    name: Proprietary
servers:
  - url: https://api.orbit.devotel.io
    description: Production
security:
  - Bearer: []
  - ApiKey: []
tags:
  - name: Messages
    description: >-
      Send and manage messages across all channels (SMS, WhatsApp, RCS, Email,
      Viber, etc.)
  - name: Fax
    description: >-
      List and track fax (MMS/T.38) transmissions on Telnyx-backed fax numbers
      (sending flows through the Messaging API)
  - name: Agents
    description: AI agent creation, configuration, and execution
  - name: Voice
    description: Voice calls, IVR, conferencing, and SIP trunking
  - name: OnCall
    description: On-call rotations and escalation policy planning for incident alerting
  - name: Webhooks
    description: Webhook endpoint management and delivery logs
  - name: Numbers
    description: Phone number search, provisioning, and configuration
  - name: Brand Identity
    description: >-
      Unified cross-channel brand trust posture (10DLC, toll-free, WhatsApp,
      RCS, branded calling, number KYC)
  - name: Contacts
    description: Contact management, segmentation, and lifecycle tracking
  - name: Campaigns
    description: Marketing campaign orchestration and analytics
  - name: Flows
    description: Automation flow builder and execution engine
  - name: Templates
    description: Message template management and approval workflows
  - name: Settings
    description: Organization, channel, and user preference settings
  - name: Verify
    description: OTP generation and verification across channels
  - name: Push
    description: Push notification delivery via FCM and APNs
  - name: Integrations
    description: Third-party service connections and OAuth management
  - name: CDP
    description: >-
      Customer Data Platform — activation surface (CRM object sync, streaming
      destinations, ad-audience activation)
  - name: Files
    description: >-
      Server-to-server media upload, listing, retrieval, and deletion
      (signed-URL backed)
  - name: Commerce
    description: >-
      Omnichannel conversational-commerce — persistent cart + checkout state
      machine, channel-agnostic hosted pay-by-link, native WhatsApp checkout,
      and AP2-style agent payment mandates.
  - name: Sync
    description: >-
      Real-time shared-state primitive (Twilio Sync parity) — Documents, Maps,
      Lists, and ephemeral Streams, with change events relayed over the
      /api/v1/ws/sync WebSocket gateway
  - name: Risk
    description: >-
      Unified cross-channel Trust & Fraud risk scoring — fuses SMS-pumping,
      URL-reputation, Verify Fraud Guard, and Voice Biometrics signals into one
      composite verdict queryable before a send or a call.
  - name: Orby
    description: >-
      In-dashboard Orby operator assistant: streamed assistant turns,
      conversation threads, product knowledge-base search, and the tool-action
      approval gate. Available to signed-in operators only (dashboard session
      auth — API-key requests are rejected).
paths:
  /api/v1/agents/agent-authorization-mandate/delegate:
    post:
      tags:
        - Agents
      summary: Delegate an attenuated sub-agent mandate
      description: >-
        Mint an attenuated CHILD mandate from a live `parent` for an
        agent-as-tool / A2A re-delegation hop (orchestrator → sub-agent, or
        transitively sub-agent → sub-sub-agent). The child's allowlists,
        invocation cap, and expiry are each narrowed to a subset of the parent's
        — a delegated mandate can never end up with more authority than it was
        given — and it carries a `parentMandateId` + `parentDigest` pointer
        baked into its own consent digest so the ancestry link cannot be forged
        or repointed. Delegation is refused from a parent that is revoked,
        expired, exhausted, or fails its own integrity check. Requires the
        `agents:write` scope and an owner, admin, or developer role.
        Audit-logged.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - parent
                - id
                - agentId
              properties:
                parent:
                  $ref: '#/components/schemas/AgentAuthorizationMandate'
                id:
                  type: string
                  minLength: 1
                  maxLength: 128
                  description: Opaque, caller-supplied id for the new child mandate.
                agentId:
                  type: string
                  minLength: 1
                  maxLength: 128
                  description: The sub-agent receiving the delegated authority.
                allowedActions:
                  type:
                    - 'null'
                    - array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 256
                  maxItems: 256
                  description: >-
                    Action allowlist to further narrow to. Omit or send empty to
                    inherit the parent's unchanged.
                allowedTools:
                  type:
                    - 'null'
                    - array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 256
                  maxItems: 256
                  description: >-
                    Tool allowlist to further narrow to. Omit or send empty to
                    inherit the parent's unchanged.
                allowedDataCategories:
                  type:
                    - 'null'
                    - array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 256
                  maxItems: 256
                  description: >-
                    Data-category allowlist to further narrow to. Omit or send
                    empty to inherit the parent's unchanged.
                maxInvocations:
                  type:
                    - 'null'
                    - integer
                  minimum: 1
                  description: >-
                    Invocation cap to further narrow to. Omit to inherit the
                    parent's cap; the effective cap is the minimum of this and
                    the parent's, never higher.
                expiresAt:
                  type:
                    - 'null'
                    - integer
                  description: >-
                    Expiry to further narrow to. Omit to inherit the parent's
                    expiry; the effective expiry is the earlier of this and the
                    parent's, never later.
      responses:
        '200':
          description: The minted, attenuated child mandate snapshot.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/AgentAuthorizationMandate'
                  meta:
                    $ref: '#/components/schemas/ResponseMeta'
        '422':
          description: >-
            Delegation refused — the parent is not delegatable (revoked,
            expired, exhausted, or integrity failure), a requested allowlist
            shares nothing with the parent's (which would broaden it), or the
            request body was malformed. `error.code` is `VALIDATION_ERROR`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    AgentAuthorizationMandate:
      type: object
      description: >-
        A scoped, revocable, action-capped authorization an AI agent acts under
        — a serializable snapshot the caller stores and round-trips in each
        request body. The scope fields (principal, agent, allowlists, invocation
        cap, expiry, ancestry) are immutable after issue and bound by
        `consentDigest`; only `status`, `invocationCount`, `updatedAt`, and
        `revokedAt` advance over the mandate's life. A delegated (child) mandate
        additionally carries a `parentMandateId` + `parentDigest` pointer to the
        parent it was attenuated from.
      required:
        - id
        - agentId
        - principalId
        - allowedActions
        - allowedTools
        - allowedDataCategories
        - maxInvocations
        - invocationCount
        - status
        - consentDigest
        - expiresAt
        - createdAt
        - updatedAt
        - revokedAt
        - parentMandateId
        - parentDigest
      properties:
        id:
          type: string
          description: Opaque, caller-supplied mandate id (stable across actions).
        agentId:
          type: string
          description: >-
            The agent authorized to act — an Orbit agent id or an external
            A2A/MCP identity.
        principalId:
          type: string
          description: >-
            The principal (account holder / contact / end-user) who granted
            consent.
        allowedActions:
          type: array
          items:
            type: string
          description: >-
            Action allowlist — the verbs the agent may perform (e.g.
            `profile:read`, `booking:create`). An empty array means any action
            is in scope. Stored trimmed, sorted, and de-duped.
        allowedTools:
          type: array
          items:
            type: string
          description: >-
            Tool allowlist — the specific tool ids the agent may invoke. An
            empty array means any tool is in scope.
        allowedDataCategories:
          type: array
          items:
            type: string
          description: >-
            Data-category allowlist — the categories of data the agent may
            access (e.g. `contact_profile`, `order_history`). An empty array
            means any category is in scope.
        maxInvocations:
          type: integer
          description: >-
            Cumulative ceiling on the number of actions authorized under this
            mandate (a positive integer). The non-payment analog of a spend cap.
        invocationCount:
          type: integer
          description: Number of actions authorized so far (starts at 0).
        status:
          type: string
          enum:
            - active
            - exhausted
            - revoked
            - expired
          description: >-
            Current lifecycle status. `exhausted`, `revoked`, and `expired` are
            terminal — no further action is authorized once a mandate leaves
            `active`.
        consentDigest:
          type: string
          description: >-
            SHA-256 hex commitment over the immutable scope — the cryptographic
            consent record. Recompute and compare via the `/verify` endpoint.
        expiresAt:
          type:
            - 'null'
            - integer
          description: Epoch-ms after which the mandate is dead, or null for no expiry.
        createdAt:
          type: integer
          description: Epoch-ms the mandate was issued.
        updatedAt:
          type: integer
          description: Epoch-ms of the last status/count change.
        revokedAt:
          type:
            - 'null'
            - integer
          description: Epoch-ms the mandate was revoked, or null while still issuable.
        parentMandateId:
          type:
            - 'null'
            - string
          description: >-
            Id of the mandate this one was delegated from, or null for a root
            mandate the principal issued directly. Part of the immutable scope.
        parentDigest:
          type:
            - 'null'
            - string
          description: >-
            The parent mandate's `consentDigest` at the moment this child was
            minted — the cryptographic ancestry pointer. Null for a root
            mandate.
    ResponseMeta:
      type: object
      required:
        - request_id
        - timestamp
      additionalProperties: false
      properties:
        request_id:
          type: string
          description: Unique request identifier (also returned as X-Request-Id header)
        timestamp:
          type: string
          format: date-time
        docs_url:
          type: string
          format: uri
          nullable: true
    ErrorEnvelope:
      type: object
      required:
        - error
        - meta
      additionalProperties: false
      properties:
        error:
          type: object
          required:
            - code
            - message
            - status
          additionalProperties: false
          properties:
            code:
              type: string
            message:
              type: string
            status:
              type: integer
            details:
              type: object
              nullable: true
              additionalProperties: true
        meta:
          type: object
          required:
            - request_id
            - timestamp
          additionalProperties: false
          properties:
            request_id:
              type: string
              description: Unique request identifier (also returned as X-Request-Id header)
            timestamp:
              type: string
              format: date-time
            docs_url:
              type: string
              format: uri
              nullable: true
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Dashboard JWT token from Clerk
    ApiKey:
      type: apiKey
      name: X-API-Key
      in: header
      description: Server-to-server API key (dv_live_sk_*)

````