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

# Create External Wallet

> Registers an external (user-owned) wallet, such as a personal MetaMask address, on behalf of one of your users. The wallet is created with status `PENDING` and moves to `APPROVED` or `REJECTED` after an automatic compliance screening.

#### Request

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| Authorization | Header | Yes | `Bearer <access_token>` obtained from **POST /api/v1/client/token**. |
| user_id | Path | Yes | User who will own the wallet, from **GET /admin/users**. |

#### Request Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| name | string | Yes | Label for the wallet. |
| address | string | Yes | On-chain address. |
| networkId | integer | Yes | Network ID from **GET /parameters/networks**. |
| tokenId | integer | Yes | Token ID from **GET /parameters/tokens**. |
| custodianId | integer | Yes | Custodian ID from **GET /parameters/custodians**. |



## OpenAPI

````yaml /stack/openapi.json post /api/v1/admin/wallets/external/{user_id}
openapi: 3.1.0
info:
  title: Kravata Stack API
  version: '2.0'
  description: >-
    Kravata Stack API: users, accounts, custody wallets, liquidity ramps and
    fiat payments.
servers:
  - url: https://test-api-kore.kravata.co
    description: Test
  - url: https://partners-api.kravata.co
    description: Production (mTLS + IP allowlist)
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Users
  - name: Accounts
  - name: Earn
  - name: Custody
  - name: Liquidity Ramps
  - name: Payments
  - name: Webhooks
paths:
  /api/v1/admin/wallets/external/{user_id}:
    post:
      tags:
        - Custody
      summary: Create External Wallet
      description: >-
        Registers an external (user-owned) wallet, such as a personal MetaMask
        address, on behalf of one of your users. The wallet is created with
        status `PENDING` and moves to `APPROVED` or `REJECTED` after an
        automatic compliance screening.


        #### Request


        | Field | Type | Required | Description |

        | --- | --- | --- | --- |

        | Authorization | Header | Yes | `Bearer <access_token>` obtained from
        **POST /api/v1/client/token**. |

        | user_id | Path | Yes | User who will own the wallet, from **GET
        /admin/users**. |


        #### Request Body


        | Field | Type | Required | Description |

        | --- | --- | --- | --- |

        | name | string | Yes | Label for the wallet. |

        | address | string | Yes | On-chain address. |

        | networkId | integer | Yes | Network ID from **GET
        /parameters/networks**. |

        | tokenId | integer | Yes | Token ID from **GET /parameters/tokens**. |

        | custodianId | integer | Yes | Custodian ID from **GET
        /parameters/custodians**. |
      operationId: create-external-wallet
      parameters:
        - name: user_id
          in: path
          required: true
          description: ''
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                address:
                  type: string
                networkId:
                  type: integer
                tokenId:
                  type: integer
                custodianId:
                  type: integer
            example:
              name: My Polygon wallet
              address: '0x1234567890abcdef1234567890abcdef12345678'
              networkId: 8
              tokenId: 1
              custodianId: 79
      responses:
        '200':
          description: Successful response
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Access token from POST /api/v1/client/token.

````