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

# Create an MPC wallet

> Starts asynchronous wallet creation. In dry-run mode this only persists operation state and validates the key-generation request. In keygen mode it publishes an key-generation request and the operation is later completed by the keygen result consumer. Stale keygen requests can be failed by operator-configured timeout without allowing late success results to overwrite that terminal state.




## OpenAPI

````yaml /api-reference/openapi.yaml post /api/v1/wallets
openapi: 3.0.3
info:
  title: Blockops Wallet API
  version: 0.1.0
  description: >
    The Blockops Wallet API: create MPC wallets, attach assets and read deposit
    addresses and balances, request withdrawals and signing, and manage webhooks
    and API keys.
servers:
  - url: https://wallet-sandbox.blockops.network
security:
  - AccessApiKey: []
    AccessTimestamp: []
    AccessSign: []
tags:
  - name: catalog
  - name: wallets
  - name: balances
  - name: withdrawals
  - name: transactions
  - name: signing
  - name: webhooks
  - name: api-keys
  - name: audit
  - name: observability
paths:
  /api/v1/wallets:
    post:
      tags:
        - wallets
      summary: Create an MPC wallet
      description: >
        Starts asynchronous wallet creation. In dry-run mode this only persists
        operation state and validates the key-generation request. In keygen mode
        it publishes an key-generation request and the operation is later
        completed by the keygen result consumer. Stale keygen requests can be
        failed by operator-configured timeout without allowing late success
        results to overwrite that terminal state.
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWalletRequest'
            examples:
              snakeCase:
                value:
                  workspace_id: 00000000-0000-4000-8000-000000000001
                  name: Treasury
                  wallet_type: mpc
              camelCase:
                value:
                  workspaceId: 00000000-0000-4000-8000-000000000001
                  name: Treasury
                  walletType: mpc
      responses:
        '200':
          description: Existing idempotent wallet operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletOperationEnvelope'
        '202':
          description: New wallet operation accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletOperationEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/Conflict'
        '503':
          $ref: '#/components/responses/RouteUnavailable'
components:
  parameters:
    IdempotencyKey:
      name: X-Idempotency-Key
      in: header
      required: false
      schema:
        type: string
        maxLength: 128
      description: Idempotency key for write operations.
  schemas:
    CreateWalletRequest:
      type: object
      description: Accepts snake_case fields and camelCase aliases.
      properties:
        workspace_id:
          type: string
        workspaceId:
          type: string
        name:
          type: string
        wallet_type:
          type: string
          default: mpc
        walletType:
          type: string
      required:
        - name
      anyOf:
        - required:
            - workspace_id
        - required:
            - workspaceId
    WalletOperationEnvelope:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          required:
            - data
          properties:
            data:
              $ref: '#/components/schemas/WalletOperation'
    EnvelopeBase:
      type: object
      required:
        - success
        - message
        - code
      properties:
        success:
          type: boolean
        message:
          type: string
          example: success
        code:
          oneOf:
            - type: integer
            - type: string
          example: 0
    WalletOperation:
      type: object
      required:
        - id
        - wallet_id
        - status
      properties:
        id:
          type: string
        wallet_id:
          type: string
        workspace_id:
          type: string
        name:
          type: string
        wallet_type:
          type: string
        status:
          type: string
          enum:
            - pending
            - dry_run
            - submitted
            - failed
            - success
        status_reason:
          type: string
        mpc_correlation_id:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
    ErrorEnvelope:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          required:
            - data
          properties:
            success:
              type: boolean
              example: false
            data:
              nullable: true
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Authentication failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            success: false
            message: invalid api signature
            code: unauthorized
            data: null
    Conflict:
      description: Idempotency or state conflict.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RouteUnavailable:
      description: Route disabled, upstream missing, or dependency unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    AccessApiKey:
      type: apiKey
      in: header
      name: ACCESS-API-KEY
      description: HMAC API-key identifier.
    AccessTimestamp:
      type: apiKey
      in: header
      name: ACCESS-TIMESTAMP
      description: Unix timestamp in seconds.
    AccessSign:
      type: apiKey
      in: header
      name: ACCESS-SIGN
      description: Base64-encoded hex HMAC signature.

````