Skip to main content

Create Token

Creates a new token in the system.

Request

POST /v2/admin/token/nodes/{node_id}

Parameters

NameTypeInDescription
node_idstringpathRequired. The ID of the node to create token under
category_idstringformRequired. The category ID for the token
namestringformRequired. The name of the token
descriptionstringformRequired. Description of the token
valuenumberformRequired. The token value
value_symbolstringformRequired. Symbol for the value (e.g., USDT)
ratenumberformRequired. Token rate
max_supplynumberformRequired. Maximum supply of the token
token_namestringformRequired. Short name for the token
token_symbolstringformRequired. Symbol for the token
imagesfileformRequired. Image file(s) for the token
documentsfileformOptional. Supporting document(s) for the token

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. Must be multipart/form-data

Example

curl --request POST \
--url '\{\{baseUrl\}\}/v2/admin/token/nodes/67d6c447f47ff3adafda700d' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: multipart/form-data' \
--form category_id=667e9251ca818a2138ed4915 \
--form 'name=TKN Token Name' \
--form 'description=Token Description' \
--form value=12000 \
--form value_symbol=USDT \
--form rate=30 \
--form max_supply=1000 \
--form token_name=tkn \
--form token_symbol=TKN \
--form images=@/path/to/image.png \
--form documents=@/path/to/document.pdf

Response

A successful request returns an HTTP 200 status code with an empty response body.

Status Codes

Status CodeDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing authentication token
404Not Found - Node ID does not exist
413Payload Too Large - File size exceeds limit
415Unsupported Media Type - File format not supported
500Internal Server Error