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

# Approve or reject an activity

> Submits a customer signature to approve or reject an activity. Returns approval progress and the result when voting completes.

Submit the signature from the prepared signing request. A `202` response means approval or execution is still in progress; continue polling the activity or associated withdrawal.


## OpenAPI

````yaml swagger/v3.yaml POST /v3/approvals/{activityId}/vote
openapi: 3.0.0
info:
  title: Ground API
  description: API for Portfolio Wallets, gtokens, MicroVaults, and webhooks.
  version: 3.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: >-
      Direct access to gtokens with deposit access controls and optional fee
      wrappers.
  - name: MicroVaults
    description: >-
      Customer-owned onchain vaults with externally held ERC-20 shares. Private
      preview.
  - name: Webhook Endpoints
    description: Webhook endpoint management for portfolio wallet notifications.
paths:
  /v3/approvals/{activityId}/vote:
    post:
      tags:
        - Approvals
      summary: Approve or reject an activity
      description: >-
        Submits a customer signature to approve or reject an activity. Returns
        approval progress and the result when voting completes.
      operationId: voteOnApproval
      parameters:
        - name: activityId
          in: path
          required: true
          schema:
            type: string
          description: Opaque activity ID returned by the pending approvals endpoint.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - action
              additionalProperties: false
              anyOf:
                - required:
                    - customerApprovalStamp
                - properties:
                    action:
                      enum:
                        - reject
              properties:
                action:
                  type: string
                  enum:
                    - approve
                    - reject
                customerApprovalStamp:
                  $ref: '#/components/schemas/CustomerApprovalStamp'
            example:
              action: approve
              customerApprovalStamp:
                version: 1
                context: >-
                  eyJ2ZXJzaW9uIjoxLCJvcmdhbml6YXRpb25JZCI6IjBhMWIyYzNkLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDAwMCIsInByb2ZpbGVJZCI6IjlmOGU3ZDZjLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDAwMiIsImFjdGl2aXR5SWQiOiIwMThmNGI3YS0xMTExLTcwMDAtODAwMC0wMDAwMDAwMDAwMDEiLCJhY3Rpb24iOiJhcHByb3ZlIiwidGltZXN0YW1wIjoxNzk0NDk5MjAwMDAwLCJyZXF1ZXN0SGFzaCI6IjgyZTdhY2FjN2IwZmZkMzU1MzgzMDMxNDY3MTA5ZjQ0NTIxYTUzODk4ZWJjNDljM2UzZTFmMjYxODRkODhmYmQifQ
                publicKey: >-
                  MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAESyy7ultYYrElEuXpk3F9BAAGMXCr3vAh1NzEH6bUz7Qs4/VaUuyteIzBGQlz6iFo6uEQUusQYja203BO/EUeIw==
                signature: >-
                  MEUCIQDzWS6pOYxGY5+RXGPbdG6IonAZaa8scd8UFoIt+0HhEQIgJhVCeRdahaxb0CgXBk+ym6S77AyQyn3i5gJvXfibfnc=
      responses:
        '200':
          description: Vote submitted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerApprovalResult'
              example:
                activityId: 018f4b7a-1111-7000-8000-000000000001
                approvalStatus: completed
                approvalProgress:
                  approved: 2
                  required: 2
                currentUserApproved: true
                canApprove: false
        '202':
          description: Pending or processing; continue polling.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerApprovalResult'
              example:
                activityId: 018f4b7a-1111-7000-8000-000000000001
                approvalStatus: pending
                approvalProgress:
                  approved: 1
                  required: 2
                currentUserApproved: true
                canApprove: false
        '400':
          description: Validation error or mismatched signed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalErrorResponse'
              example:
                error: customerApprovalStamp is required
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            The authenticated customer is not allowed to perform this approval
            action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalErrorResponse'
              example:
                error: >-
                  Approval activity does not belong to the authenticated
                  organization
        '404':
          description: Approval activity not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalErrorResponse'
              example:
                error: Approval activity not found
        '409':
          description: Activity is not currently actionable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalErrorResponse'
              example:
                error: >-
                  Approval activity is already complete; refresh the pending
                  list
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    CustomerApprovalStamp:
      type: object
      additionalProperties: false
      required:
        - version
        - context
      oneOf:
        - required:
            - publicKey
            - signature
          not:
            required:
              - webauthn
        - required:
            - webauthn
          not:
            anyOf:
              - required:
                  - publicKey
              - required:
                  - signature
      properties:
        version:
          type: integer
          enum:
            - 1
        context:
          type: string
        publicKey:
          type: string
          description: >-
            Base64 SPKI P-256 public key registered to the authenticated
            customer.
        signature:
          type: string
          description: >-
            Base64 DER ECDSA/SHA-256 signature over the decoded
            signingRequest.payload.
        webauthn:
          type: object
          description: WebAuthn assertion fields encoded as base64url.
          additionalProperties: false
          required:
            - credentialId
            - authenticatorData
            - clientDataJSON
            - signature
          properties:
            credentialId:
              type: string
            authenticatorData:
              type: string
            clientDataJSON:
              type: string
            signature:
              type: string
    CustomerApprovalResult:
      type: object
      required:
        - activityId
        - approvalStatus
        - approvalProgress
        - currentUserApproved
        - canApprove
      properties:
        activityId:
          type: string
          description: Opaque activity ID; use unchanged for prepare and vote.
        approvalStatus:
          $ref: '#/components/schemas/CustomerApprovalStatus'
        approvalProgress:
          $ref: '#/components/schemas/CustomerApprovalProgress'
        currentUserApproved:
          type: boolean
          nullable: true
          description: Whether this customer has already approved; null when unknown.
        canApprove:
          type: boolean
    ApprovalErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable approval error message.
        code:
          type: string
          description: Machine-readable code when supplied by the signing provider.
    CustomerApprovalStatus:
      type: string
      nullable: true
      enum:
        - pending
        - processing
        - completed
        - rejected
        - expired
        - failed
        - null
      description: >-
        Approval state, separate from onchain confirmation and accounting. Null
        when unavailable.
    CustomerApprovalProgress:
      description: Customer approval counts, excluding Ground. Null when unknown.
      type: object
      nullable: true
      required:
        - approved
        - required
      additionalProperties: false
      properties:
        approved:
          type: integer
          minimum: 0
          description: >-
            Distinct customers; passkey and machine credentials for one customer
            count once.
        required:
          type: integer
          minimum: 1
    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
          description: >-
            Some auth and scope failures include a stable code; middleware
            errors may omit it.
    ErrorResponse:
      type: object
      required:
        - error
        - code
      properties:
        error:
          type: string
          description: >-
            Human-readable error message. May change without notice; do not
            parse programmatically.
        code:
          type: string
          description: >-
            Machine-readable error code. Use it for programmatic handling rather
            than parsing the error message.
          enum:
            - validation_error
            - unknown_parameters
            - payload_too_large
            - unsupported_media_type
            - submission_id_conflict
            - feedback_unavailable
            - unsupported_chain
            - unsupported_token
            - invalid_destination_address
            - stellar_destination_account_not_active
            - stellar_destination_usdc_not_enabled
            - precision_overflow
            - invalid_cursor
            - unauthenticated
            - forbidden
            - wallet_not_found
            - wallet_limit_reached
            - withdrawal_not_found
            - deposit_not_found
            - yield_source_not_found
            - wallet_projection_unavailable
            - insufficient_funds
            - duplicate_request_id
            - request_id_conflict
            - invalid_position_weight
            - invalid_withdrawal_plan
            - payout_not_found
            - webhook_not_found
            - webhook_duplicate_url
            - withdrawal_not_cancellable
            - withdrawal_already_cancelled
            - withdrawal_payout_in_progress
            - withdrawal_policy_required
            - workflow_conflict
            - stale_rebalance_plan
            - stale_wallet_strategy
            - payout_already_terminal
            - payout_in_progress
            - payout_not_retryable
            - address_book_entry_not_found
            - address_book_duplicate_entry
            - address_book_whitelist_violation
            - rate_limited
            - rate_limit_exceeded
            - internal_error
            - wallet_creation_failed
            - service_temporarily_unavailable
            - operation_not_supported
            - wallet_withdrawal_active
            - stellar_customer_approval_unavailable
            - withdrawal_signing_required
            - wallet_performance_unavailable
            - tempo_beta_transfer_limit_exceeded
            - product_not_enabled
            - gvault_not_found
            - allowlist_update_pending
            - fee_wrapper_not_found
            - fee_wrapper_fee_update_pending
            - statement_too_large
            - no_reportable_wallets
            - report_timeout
            - read_only_api_key
  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
    TooManyRequests:
      description: >-
        Rate limit exceeded. Limits are enforced by API key/customer identity
        and by endpoint class. Wait for the number of seconds in Retry-After,
        add a small random delay, then retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Rate limit exceeded
            code: rate_limited
    InternalServerError:
      description: >-
        An unexpected error occurred. Reconcile the original operation before
        retrying a write; preserve its required idempotency key and payload.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Internal server error
            code: internal_error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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