---
title: "Create an account"
method: POST
path: "/v0/accounts"
tags: ["Accounts"]
---

# Create an account

`POST /v0/accounts`

## Request

- Base URL: `https://distributor-api.spiko.io`
- URL: `https://distributor-api.spiko.io/v0/accounts`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/spiko/apis/spiko-distributor-api/docs/v0/accounts/post.ts> (a function with typed inputs; its response is checked against the schema)

Create an account for an investor

## Request body

- object
  - `investorId` string, uuid, required: a Universally Unique Identifier
  - `name` string, nullable
  - `shareClassIds` UUID[]

## Response `200`

Success

- object
  - `id` string, uuid, required: a Universally Unique Identifier
  - `investorId` string, uuid, required: a Universally Unique Identifier
  - `walletId` string, uuid, required: a Universally Unique Identifier
  - `address` union, required: Deprecated. Use the wallet API instead.
    - string
    - string
    - string
    - string
    - string: a valid Solana address, consisting of 32 to 44 base58 characters
  - `network` 'Ethereum' | 'Polygon' | 'Base' | 'Arbitrum' | 'ArbitrumUk' | 'Etherlink' | 'Starknet' | 'Stellar' | 'Solana', required: Deprecated. Use the wallet API instead.
  - `createdAt` string, nullable, required
  - `name` union, required
    - object
      - `_tag` 'Some', required
      - `value` string, required
    - object
      - `_tag` 'None', required
  - `shareClassIds` UUID[], required

## Other responses

- `400`: The request did not match the expected schema
- `401`: Authentication failed. Two bodies are possible: the schema below when the API rejects the credentials, and `{ "error": { "code", "status", "request", "message" } }` when the API gateway rejects them first. Only the former carries a `_tag`.
- `403`: Forbidden
- `404`: NotFound
- `503`: The investor is undergoing a scheduled upgrade, access is temporarily paused to ensure data safety.

---

[API](https://skmtc.dev/spiko/apis/spiko-distributor-api.md) - [All operations](https://skmtc.dev/spiko/apis/spiko-distributor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spiko/apis/spiko-distributor-api/revisions/ad85137fd00b?raw)
