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
total_valuenumberformRequired. The total value of the token
currency_token_idstringformRequired. The currency token ID for the token value
salable_percentagenumberformRequired. Percentage of tokens that are salable (0-100)
max_supplynumberformRequired. Maximum supply of the token
token_namestringformRequired. Short name for the token
token_symbolstringformRequired. Symbol for the token
imagesfileformOptional. Image file(s) for the token
documentsfileformOptional. Supporting document(s) for the token
oracle_idstringformOptional. Oracle ID for price reference
oracle_codestringformOptional. Oracle code for price reference

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 total_value=12000 \
--form currency_token_id=68fe8c129367fd414b227c7a \
--form salable_percentage=80 \
--form max_supply=1000 \
--form token_name=tkn \
--form token_symbol=TKN \
--form images=@/path/to/image.png \
--form documents=@/path/to/document.pdf \
--form oracle_id=677ed6e3cc111aea14a3dfc3 \
--form oracle_code=IOG

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