POST
/
subaccounts
curl --request POST \
  --url https://api.cnaught.com/v1/subaccounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Marketing Department",
  "email": "jane.doe@example.com",
  "default_portfolio_id": "mHvNvWbq"
}'
{
  "id": "5nubL0NS",
  "name": "Marketing Department",
  "email": "jane.doe@example.com",
  "default_portfolio_id": "mHvNvWbq",
  "logo_url": "https://customer-assets.cnaught.com/VChGzdcf/4b1cdc0f-fb47-4251-ab52-b0566369723b/logo"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

If present, a unique identifier that allows you to retry a request multiple times while only performing the action once. See Idempotency for more info.

Body

application/json
Subaccount Parameters

The body is of type object.

Response

201
application/json
Subaccount Details

The response is of type object.