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

# Relay a MicroVault authorization

> Submits an authorized transaction. A `202` response means the relay accepted it; poll the authorization endpoint for confirmation.

Submit a signed or managed-approved authorization through Ground's sponsored relay.

<Note>
  MicroVaults are in private preview for enabled sandbox organizations on Ethereum Sepolia.
</Note>


## OpenAPI

````yaml swagger/swagger-combined.yaml POST /v2/microvaults/authorizations/{intentId}/relay
openapi: 3.0.0
info:
  title: Ground API
  description: Core API for Portfolio Wallets, gVaults, MicroVaults, and webhooks.
  version: 2.0.0
servers:
  - url: https://sandbox.groundtech.co
  - url: https://production.groundtech.co
security:
  - bearerAuth: []
tags:
  - name: System
    description: System health and utility endpoints.
  - name: Sandbox Faucets
    description: Sandbox-only test token faucets.
  - name: Portfolio Wallets
    description: >-
      Portfolio wallets with strategy allocation, deposits, withdrawals, and
      yield positions.
  - name: gVaults
    description: App-specific Ground vaults with customer access and fee sharing.
  - name: MicroVaults
    description: >-
      Customer-owned onchain vaults with externally held ERC-20 shares. Private
      preview in sandbox on Ethereum Sepolia.
  - name: Webhook Endpoints
    description: Webhook endpoint management for portfolio wallet notifications.
paths:
  /v2/microvaults/authorizations/{intentId}/relay:
    parameters:
      - name: intentId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/UuidV4'
    post:
      tags:
        - MicroVaults
      summary: Relay a signed MicroVault authorization
      description: >-
        Submits an authorized transaction. A `202` response means the relay
        accepted it; poll the authorization endpoint for confirmation.
      operationId: relayMicrovaultAuthorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MicroVaultRelayRequest'
      responses:
        '202':
          description: Relay accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MicroVaultRelayResult'
        '400':
          description: Invalid signature or request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MicroVaultError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Authorization not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MicroVaultError'
        '409':
          description: Payload drift, stale state, or expired authorization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MicroVaultError'
        '503':
          description: Relay transport is temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MicroVaultError'
components:
  schemas:
    UuidV4:
      type: string
      format: uuid
      pattern: >-
        ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
      example: 8f4c52d7-62ab-4db9-a964-92f481f6b851
    MicroVaultRelayRequest:
      oneOf:
        - $ref: '#/components/schemas/MicroVaultExternalSignatureRelayRequest'
        - $ref: '#/components/schemas/MicroVaultTurnkeyRelayRequest'
        - $ref: '#/components/schemas/MicroVaultPrivyRelayRequest'
    MicroVaultRelayResult:
      type: object
      additionalProperties: true
      properties:
        status:
          type: string
        transactionHash:
          $ref: '#/components/schemas/NullableTransactionHash'
      example:
        status: submitted
        transactionHash: '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
    MicroVaultError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Stable machine-readable error code.
        message:
          type: string
          nullable: true
        details:
          nullable: true
      example:
        error: microvaults_not_enabled
        message: MicroVaults are not enabled for this organization
    MicroVaultExternalSignatureRelayRequest:
      title: External signature
      type: object
      additionalProperties: false
      required:
        - signature
      properties:
        signature:
          type: string
          pattern: ^0x(?:[0-9a-fA-F]{2})+$
          maxLength: 8194
      example:
        signature: >-
          0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    MicroVaultTurnkeyRelayRequest:
      title: Turnkey approval
      type: object
      additionalProperties: false
      required:
        - approvalReference
      properties:
        approvalReference:
          type: object
          additionalProperties: false
          required:
            - provider
            - activityId
          properties:
            provider:
              type: string
              enum:
                - turnkey
            activityId:
              type: string
      example:
        approvalReference:
          provider: turnkey
          activityId: 2a66cf3a-839b-45f6-b26b-04fc420774a1
    MicroVaultPrivyRelayRequest:
      title: Privy approval
      type: object
      additionalProperties: false
      required:
        - approvalReference
      properties:
        approvalReference:
          type: object
          additionalProperties: false
          required:
            - provider
            - walletId
          properties:
            provider:
              type: string
              enum:
                - privy
            walletId:
              type: string
            approvalId:
              type: string
      example:
        approvalReference:
          provider: privy
          walletId: cm14m8k1s0000m9zq7w2x4abc
          approvalId: approval_01J7ZX2GJ4Z4XQZCV1N1S9QDHV
    NullableTransactionHash:
      type: string
      nullable: true
      description: EVM transaction hash, or null when no transaction was submitted.
      minLength: 66
      maxLength: 66
      pattern: ^0x[0-9a-fA-F]{64}$
      example: '0xabababababababababababababababababababababababababababababababab'
    AuthErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Authentication or authorization error message.
        message:
          type: string
          nullable: true
          description: Additional auth middleware detail, when present.
        code:
          type: string
          nullable: true
          enum:
            - unauthenticated
            - forbidden
          description: >-
            Some auth and scope failures include a stable code; middleware
            errors may omit it.
  responses:
    Unauthorized:
      description: >-
        The request is missing a valid bearer token, or the token is invalid or
        expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AuthErrorResponse'
          example:
            error: Unauthenticated request
            message: Missing or invalid bearer token
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````