---
title: "createPrimaryUser"
method: POST
path: "/v2/user"
tags: ["User management"]
---

# createPrimaryUser

`POST /v2/user`

Create a Cloudally account (trial status).

## Headers

- `client-id` string, required
- `client-secret` string, required

## Request body

- CreatePrimaryUserDTO — Sign-up parameters
  - `email` string — Account email
  - `password` string, required — Account password
  - `displayName` string — Account friendly name
  - `region` 'US_EST' | 'US_EST_OHIO' | 'US_WEST_OREGON' | 'US_WEST_CAL' | 'EU' | 'EU_FRANKFURT' | 'ASIA_HONG_KONG' | 'ASIA_MUMBAI' | 'ASIA_SEOUL' | 'ASIA_SINGAPORE' | 'ASIA_SIDNEY' | 'ASIA_TOKYO' | 'SOUTH_AMERICA' | 'AFRICA_CAPE_TOWN' | 'ASIA_CHINA' | 'CANADA' | 'LONDON' | 'EU_PARIS' | 'EU_STOCKHOLM' | 'EU_ZURICH' — Account data center
  - `partnerId` string — Partner ID
  - `partnerEmail` string — Partner email
  - `partnerPassword` string — Partner password
  - `customStorage` CustomStorage
    - `type` 'S3' | 'S3_COMPATIBLE' | 'GCP' | 'AZURE' | 'DISTRIBUTOR_CLOUD' — Cloud storage type
    - `s3Key` string — Amazon S3 account key
    - `s3Secret` string — Amazon S3 account secret
    - `s3Region` 'US_EST' | 'EU' | 'EU_FRANKFURT' | 'CANADA' | 'ASIA_SIDNEY' | 'ASIA_TOKYO' | 'LONDON' | 'EU_PARIS' | 'AFRICA_CAPE_TOWN' | 'ASIA_MUMBAI' | 'EU_ZURICH' — Amazon S3 region
    - `s3Bucket` string — Amazon S3 bucket name
    - `endPoint` string — Amazon S3 compatible endpoint
  - `externalId` string — External ID of the user

## Response `200`

Successful retrieval of the information.

## Other responses

- `401` — The user is not logged in.
- `403` — The user does not have an access to view the account activity.

---

[API](https://skmtc.dev/cloudally/apis/cloudally-rest-api.md) · [All operations](https://skmtc.dev/cloudally/apis/cloudally-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudally/cloudally-rest-api/revisions/97e3a3740b5b/schema)
