> ## 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.

# Register 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.



## OpenAPI

````yaml POST /v1/mandates
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:
    post:
      tags:
        - Mandates
      summary: Register 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.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MandateRegisterRequest'
      responses:
        '201':
          description: Registered
          content:
            application/json:
              schema:
                type: object
                properties:
                  mandate:
                    $ref: '#/components/schemas/Mandate'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          description: A signature does not match the owner.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          $ref: '#/components/responses/Unavailable'
      deprecated: true
components:
  schemas:
    MandateRegisterRequest:
      type: object
      properties:
        program_b64:
          type: string
        delegation_sig:
          type: string
          description: Owner's LogicSig delegation signature (base64).
        registration:
          type: object
          description: The draft's `registration` plus `issued_at` (unix seconds).
        owner_sig:
          type: string
          description: algosdk.signBytes over the canonical JSON of `registration`, base64.
      required:
        - program_b64
        - delegation_sig
        - registration
        - owner_sig
    Mandate:
      type: object
      properties:
        id:
          type: string
          description: The program's Algorand address.
        owner:
          type: string
        label:
          type: string
        status:
          type: string
          enum:
            - active
            - revoked
        max_per_call:
          type: string
        daily_cap:
          type: string
        spent_24h:
          type: string
        remaining_24h:
          type: string
        allowed_models:
          type:
            - array
            - 'null'
          items:
            type: string
        expiry_round:
          type: integer
        created_at:
          type: string
          format: date-time
        revoked_at:
          type:
            - string
            - 'null'
          format: date-time
    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.