---
title: "Add a share-class line to an account"
method: POST
path: "/v0/accounts/{accountId}/lines"
tags: ["Accounts"]
---

# Add a share-class line to an account

`POST /v0/accounts/{accountId}/lines`

## Request

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

Add a new line to an internal account for a given share class. This enables the investor to hold and subscribe to that share class within the account. Returns 409 if the account already has a line for the specified share class.

## Path parameters

- `accountId` string, uuid, required: a Universally Unique Identifier

## Request body

- object
  - `shareClassId` string, uuid, required: a Universally Unique Identifier

## 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`: BadRequest | 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
- `409`: Conflict
- `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/1f76a401300c?raw)
