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

# Create a wallet

> Create a wallet under an account or agent. Network auto-selects based on currency + tenant config if not specified. Stablecoin wallets get an on-chain address; fiat-ledger wallets don't.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/wallets
openapi: 3.1.0
info:
  title: Sly API
  description: >-
    The Agentic Economy Platform — stablecoin payments, agent wallets,
    multi-protocol commerce, and AI agent orchestration.
  version: 1.0.0
  contact:
    name: Sly
    url: https://getsly.ai
    email: support@getsly.ai
servers:
  - url: https://api.getsly.ai/v1
    description: Production
  - url: https://sandbox.getsly.ai/v1
    description: Sandbox
security:
  - bearerAuth: []
paths:
  /v1/wallets:
    post:
      tags:
        - Wallets
      summary: Create a wallet
      description: >-
        Create a wallet under an account or agent. Network auto-selects based on
        currency + tenant config if not specified. Stablecoin wallets get an
        on-chain address; fiat-ledger wallets don't.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWalletInput'
      responses:
        '201':
          description: Wallet created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Wallet'
                required:
                  - data
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Owner (account or agent) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    CreateWalletInput:
      type: object
      properties:
        owner_type:
          type: string
          enum:
            - account
            - agent
        owner_id:
          type: string
          format: uuid
        currency:
          type: string
          default: USDC
        network:
          type: string
          description: Auto-selected based on currency + tenant config if omitted
        name:
          type: string
          maxLength: 255
        metadata:
          type: object
          additionalProperties: {}
      required:
        - owner_type
        - owner_id
    Wallet:
      type: object
      properties:
        id:
          type: string
          format: uuid
        owner_type:
          type: string
          enum:
            - account
            - agent
        owner_id:
          type: string
          format: uuid
        currency:
          type: string
        balance_available:
          type: string
        balance_pending:
          type: string
        network:
          type:
            - string
            - 'null'
        address:
          type:
            - string
            - 'null'
          description: On-chain address (stablecoin wallets only)
        status:
          type: string
          enum:
            - active
            - frozen
            - deactivated
        name:
          type:
            - string
            - 'null'
        metadata:
          type: object
          additionalProperties: {}
          default: {}
        frozen_at:
          type:
            - string
            - 'null'
          format: date-time
        frozen_reason:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - owner_type
        - owner_id
        - currency
        - balance_available
        - balance_pending
        - status
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details: {}
        request_id:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (pk_test_* or pk_live_*), JWT session, agent token (agent_*),
        Ed25519 session (sess_*), or portal token (portal_*).

````