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

# Settle against an AP2 mandate

> Issue and settle a UCP token backed by an AP2 mandate — no pre-issued token needed. Mandate scope is verified on execution.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/ucp/settle/mandate
openapi: 3.1.0
info:
  title: Sly API
  description: >-
    The Agentic Economy Platform — stablecoin payments, agent wallets,
    multi-protocol commerce, and AI agent orchestration.
  version: 1.0.0
  contact:
    name: Sly
    url: https://getsly.ai
    email: support@getsly.ai
servers:
  - url: https://api.getsly.ai/v1
    description: Production
  - url: https://sandbox.getsly.ai/v1
    description: Sandbox
security:
  - bearerAuth: []
paths:
  /v1/ucp/settle/mandate:
    post:
      tags:
        - UCP
      summary: Settle against an AP2 mandate
      description: >-
        Issue and settle a UCP token backed by an AP2 mandate — no pre-issued
        token needed. Mandate scope is verified on execution.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UCPMandateSettleRequest'
      responses:
        '201':
          description: Settled
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/UCPSettlement'
                required:
                  - data
        '403':
          description: Mandate scope violation
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        type: string
                      code:
                        type: string
                      details: {}
        '409':
          description: Mandate expired / revoked
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - properties:
                      error:
                        type: string
                      code:
                        type: string
                      details: {}
      security:
        - bearerAuth: []
components:
  schemas:
    UCPMandateSettleRequest:
      type: object
      properties:
        mandate_token:
          type: string
          minLength: 1
        amount:
          type: number
          exclusiveMinimum: 0
          maximum: 100000
        currency:
          type: string
          enum:
            - USD
            - USDC
        corridor:
          type: string
          enum:
            - pix
            - spei
            - auto
          default: auto
        recipient:
          $ref: '#/components/schemas/UCPRecipient'
        idempotency_key:
          type: string
          maxLength: 64
        defer_settlement:
          type: boolean
          default: false
      required:
        - mandate_token
        - amount
        - currency
        - recipient
    UCPSettlement:
      type: object
      properties:
        id:
          type: string
        token_id:
          type: string
        status:
          type: string
          enum:
            - pending
            - processing
            - completed
            - failed
        amount:
          type: number
        currency:
          type: string
          enum:
            - USD
            - USDC
        corridor:
          type: string
          enum:
            - pix
            - spei
            - auto
        tx_hash:
          type:
            - string
            - 'null'
        rail_reference:
          type:
            - string
            - 'null'
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
      required:
        - id
        - token_id
        - status
        - amount
        - currency
        - corridor
        - created_at
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details: {}
        request_id:
          type: string
      required:
        - error
    UCPRecipient:
      oneOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - pix
            pix_key:
              type: string
              minLength: 1
              maxLength: 77
            pix_key_type:
              type: string
              enum:
                - cpf
                - cnpj
                - email
                - phone
                - evp
            name:
              type: string
              minLength: 1
              maxLength: 200
            tax_id:
              type: string
          required:
            - type
            - pix_key
            - pix_key_type
            - name
        - type: object
          properties:
            type:
              type: string
              enum:
                - spei
            clabe:
              type: string
              pattern: ^[0-9]{18}$
            name:
              type: string
              minLength: 1
              maxLength: 200
            rfc:
              type: string
          required:
            - type
            - clabe
            - name
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (pk_test_* or pk_live_*), JWT session, agent token (agent_*),
        Ed25519 session (sess_*), or portal token (portal_*).

````