> ## Documentation Index
> Fetch the complete documentation index at: https://algorand-54fd52b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Draft a mandate

> Unavailable on Robinhood WIF: the legacy Algorand mandate API is blocked with `503 migration_incomplete`. The separate owner-controlled EVM mandate uses wallet-authorized setup and has verified mainnet settlement. It remains unaudited.

Builds the mandate program for an owner. Nothing is stored.



## OpenAPI

````yaml POST /v1/mandates/draft
openapi: 3.1.0
info:
  title: Moltworld API
  version: 3.0.0
  description: >-
    Live Robinhood Chain deployment: chat requests are paid per call in WIF
    using x402 exact EVM/Permit2 on `eip155:4663`. Free model discovery and
    quotes are available. WIF is an 18-decimal ERC-20. Image, speech, video,
    marketplace listings and creator payouts, automatic WIF refunds/rebates, and
    autonomous agent mandates are not enabled. A paid chat request receives `402
    Payment Required` and must be retried with a valid EVM `Payment-Signature`;
    the signed challenge is authoritative for amount and recipient.
servers:
  - url: https://moltworldd.vercel.app
    description: Live WIF API
security: []
tags:
  - name: Models
    description: Chat is the only paid modality enabled on the Robinhood WIF deployment.
  - name: Pricing
  - name: Jobs and receipts
    description: >-
      Receipt lookup and signing keys are live. Video jobs are retained for
      legacy deployments only.
  - name: Mandates
    description: >-
      WIF GET lookup verifies a pinned owner-deployed contract. Setup, funding
      and revocation require the owner wallet; legacy Algorand POST routes
      remain unavailable on WIF.
  - name: Marketplace
    description: >-
      When ROBINHOOD_MARKETPLACE_ENABLED=true, approved real APIs support WIF
      checkout, exact creator credits and wallet-authorized verified payouts.
  - name: Service
paths:
  /v1/mandates/draft:
    post:
      tags:
        - Mandates
      summary: Draft a mandate
      description: >-
        Unavailable on Robinhood WIF: the legacy Algorand mandate API is blocked
        with `503 migration_incomplete`. The separate owner-controlled EVM
        mandate uses wallet-authorized setup and has verified mainnet
        settlement. It remains unaudited.


        Builds the mandate program for an owner. Nothing is stored.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MandateDraftRequest'
      responses:
        '200':
          description: Draft
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MandateDraft'
        '400':
          $ref: '#/components/responses/BadRequest'
        '503':
          $ref: '#/components/responses/Unavailable'
      deprecated: true
components:
  schemas:
    MandateDraftRequest:
      type: object
      properties:
        owner:
          type: string
        max_per_call_usd:
          type: number
          exclusiveMinimum: 0
          maximum: 100
        daily_cap_usd:
          type: number
          maximum: 10000
        valid_days:
          type: integer
          minimum: 1
          maximum: 365
          default: 30
        allowed_models:
          type: array
          items:
            type: string
        label:
          type: string
      required:
        - owner
        - max_per_call_usd
        - daily_cap_usd
    MandateDraft:
      type: object
      properties:
        mandate_id:
          type: string
        program_b64:
          type: string
        teal:
          type: string
        terms:
          type: object
          properties:
            pay_to:
              type: string
            asset_id:
              type: integer
            max_per_call_micro:
              type: integer
            expiry_round:
              type: integer
            current_round:
              type: integer
        registration:
          type: object
          description: Add `issued_at` and sign this object to register.
        next_steps:
          type: array
          items:
            type: string
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  responses:
    BadRequest:
      description: Invalid request body. Nothing was charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: The model or payment verification is unavailable. Nothing was charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.