Skip to main content

Create Node

Creates a new node in the system.

Request

POST /v2/admin/node

Parameters

NameTypeInDescription
parent_idstringbodyRequired. The ID of the parent node
node_typeintegerbodyRequired. The type of node to create
namestringbodyRequired. The name of the node

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. Must be application/json

Example

curl --request POST \
--url '\{\{baseUrl\}\}/v2/admin/node' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--data '{
"parent_id": "67a68d4462dd1d00073d0af3",
"node_type": 2,
"name": "Tostik 5"
}'

Response

{
"id": "67d6c447f47ff3adafda700d",
"parent_id": "67a68d4462dd1d00073d0af3",
"parent_name": null,
"name": "Tostik 5",
"type": 2,
"status": 3,
"contract": {
"wallet": {
"public_key": "0xAF4bf547c4d354266449dB91fe0c4d8861cFfc0E"
},
"fee_contract_address": null,
"listing_contract_address": null,
"rent_contract_address": null,
"burn_contract_address": null,
"secondary_contract_address": null
},
"meta": null,
"int_id": 38,
"path": "1.38",
"listed_token_count": 0,
"supervisor_count": 0,
"created_at": "2025-03-16T15:29:59.460414+03:00"
}

Response Fields

FieldTypeDescription
idstringUnique identifier for the new node
parent_idstringID of the parent node
parent_namestringName of the parent node (may be null)
namestringName of the node
typeintegerType of the node
statusintegerStatus code of the node
contractobjectContract details for the node
contract.wallet.public_keystringPublic key of the node's wallet
metaobjectAdditional metadata (may be null)
int_idintegerInternal ID of the node
pathstringPath representation of the node hierarchy
listed_token_countintegerNumber of tokens listed under the node
supervisor_countintegerNumber of supervisors associated with the node
created_atstringISO 8601 timestamp of when the node was created

Status Codes

Status CodeDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing authentication token
404Not Found - Parent node ID does not exist
500Internal Server Error

Node Types

TypeValueDescription
Apex1Top-level node type in the hierarchy
Account2Corporate node type positioned under Apex nodes
SubAccount3Branch nodes positioned under Account nodes representing company branches

Node Status

StatusValueDescription
ActiveStatus1Node is active and can perform operations
PassiveStatus2Node is passive and cannot perform operations
CreatingStatus3Node is in setup phase with installations being completed