Skip to main content

Create Token

Create a new token for a node and distributor.

Endpoint: POST /api/v1/integration/tokens/nodes/{node_id}/distributors/{distributor_id}

Authentication: Required (Bearer token)

Required Headers:

Authorization: Bearer <access_token>
X-Target-Server: integration
Content-Type: application/json

Path Parameters

ParameterTypeRequiredDescription
node_idstring (UUID)YesNode ID
distributor_idstring (UUID)YesDistributor ID

Request Body

{
"name": "My Token",
"symbol": "MTK",
"description": "This is a sample token description",
"chain_id": 1,
"value": 100.50,
"supply": 1000000,
"external_id": "ext_token_12345",
"contract": {
"address": "0x1234567890123456789012345678901234567890",
"hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
},
"rules": {
"max_purchase_limit": 10000,
"min_purchase_limit": 100
},
"status": 2,
"integration": {
"chain_id": 1,
"abi": "[{\"inputs\":[],\"name\":\"transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
"contract_address": "0x9876543210987654321098765432109876543210",
"function_name": "transfer",
"currency_token_address": "0x1111111111111111111111111111111111111111",
"is_approved": true,
"args": [
{
"type": "address",
"value": "0x2222222222222222222222222222222222222222",
"description": "Recipient address"
},
{
"type": "uint256",
"value": "1000000000000000000",
"description": "Amount to transfer"
}
]
},
"currency_token_address": "0x1111111111111111111111111111111111111111",
"currency_token_symbol": "USDT",
"currency_token_decimals": 18,
"currency_token_name": "Tether USD",
"meta": {
"images": [
{
"url": "https://example.com/images/token-logo.png",
"is_default": true,
"hash": "abc123def456"
},
{
"url": "https://example.com/images/token-banner.jpg",
"is_default": false,
"hash": "def456ghi789"
}
],
"documents": [
{
"name": "Whitepaper",
"url": "https://example.com/documents/whitepaper.pdf",
"type": 2,
"hash": "whitepaper_hash_123"
},
{
"name": "Terms of Service",
"url": "https://example.com/documents/terms.pdf",
"type": 3,
"hash": "terms_hash_456"
}
]
}
}

Request Parameters

FieldTypeRequiredDescription
namestringYesToken name
symbolstringYesToken symbol
descriptionstringNoToken description
chain_idintegerYesBlockchain network ID
valuenumberYesToken value
supplyintegerYesTotal token supply
external_idstringNoExternal token identifier
contractobjectNoContract information
contract.addressstringNoContract address
contract.hashstringNoContract hash
rulesobjectNoPurchase rules
rules.max_purchase_limitintegerNoMaximum purchase limit
rules.min_purchase_limitintegerNoMinimum purchase limit
statusintegerYesToken status
integrationobjectNoIntegration configuration
integration.chain_idintegerNoIntegration chain ID
integration.abistringNoContract ABI (JSON string)
integration.contract_addressstringNoIntegration contract address
integration.function_namestringNoFunction name to call
integration.currency_token_addressstringNoCurrency token address
integration.is_approvedbooleanNoWhether the contract is approved
integration.argsarrayNoFunction arguments
integration.args[].typestringNoArgument type
integration.args[].valuestringNoArgument value
integration.args[].descriptionstringNoArgument description
currency_token_addressstringNoCurrency token address
currency_token_symbolstringNoCurrency token symbol
currency_token_decimalsintegerNoCurrency token decimals
currency_token_namestringNoCurrency token name
metaobjectNoMetadata (images and documents)
meta.imagesarrayNoToken images
meta.images[].urlstringNoImage URL
meta.images[].is_defaultbooleanNoWhether this is the default image
meta.images[].hashstringNoImage hash
meta.documentsarrayNoToken documents
meta.documents[].namestringNoDocument name
meta.documents[].urlstringNoDocument URL
meta.documents[].typeintegerNoDocument type
meta.documents[].hashstringNoDocument hash

Response

Status: 201 Created

Returns the created token object with full details.

{
"id": "4c3e2fd0-cbed-4c01-aad5-e39fa9e17fa4",
"node_id": "e40efce4-38a3-46c4-a202-e8db95d0409c",
"distributor_id": "084a5159-1546-4ade-a7ba-956e0234a417",
"currency_token_id": "c94c94fc-479d-4d08-bba0-123a210c174c",
"chain_id": 1,
"name": "My Token",
"description": "This is a sample token description",
"symbol": "MTK",
"value": 100.5,
"supply": 1000000,
"external_id": "ext_token_12345",
"contract": {
"address": "0x1234567890123456789012345678901234567890",
"hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
},
"rules": {
"max_purchase_limit": 10000,
"min_purchase_limit": 100
},
"status": 2,
"integration": {
"chain_id": 1,
"abi": "[{\"inputs\":[],\"name\":\"transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
"contract_address": "0x9876543210987654321098765432109876543210",
"function_name": "transfer",
"currency_token_address": "0x1111111111111111111111111111111111111111",
"is_approved": true,
"args": [
{
"type": "address",
"value": "0x2222222222222222222222222222222222222222",
"description": "Recipient address"
},
{
"type": "uint256",
"value": "1000000000000000000",
"description": "Amount to transfer"
}
]
},
"meta": {
"images": [
{
"id": "073a551e-583f-498d-8b2f-c8d088995d30",
"url": "https://example.com/images/token-logo.png",
"is_default": true,
"hash": "abc123def456",
"created_at": "2025-12-24T10:05:48.503461Z"
},
{
"id": "c89102a7-ded1-4d97-b503-d85af888ffc8",
"url": "https://example.com/images/token-banner.jpg",
"is_default": false,
"hash": "def456ghi789",
"created_at": "2025-12-24T10:05:48.504681Z"
}
],
"documents": [
{
"id": "56a00061-8336-4009-9247-01eaad054e7c",
"name": "Whitepaper",
"url": "https://example.com/documents/whitepaper.pdf",
"type": 2,
"hash": "whitepaper_hash_123",
"created_at": "2025-12-24T10:05:48.505861Z"
},
{
"id": "fc7a8a2a-7e35-4169-9293-0f272c1fb0eb",
"name": "Terms of Service",
"url": "https://example.com/documents/terms.pdf",
"type": 3,
"hash": "terms_hash_456",
"created_at": "2025-12-24T10:05:48.50757Z"
}
]
},
"created_at": "2025-12-24T13:05:48.496502+03:00",
"updated_at": "2025-12-24T13:05:48.496502+03:00"
}

Example cURL Request

curl -X POST 'https://<base-url>/api/v1/integration/tokens/nodes/e40efce4-38a3-46c4-a202-e8db95d0409c/distributors/084a5159-1546-4ade-a7ba-956e0234a417' \
-H "Content-Type: application/json" \
-H "X-Target-Server: integration" \
-H "Authorization: Bearer <access_token>" \
-d '{
"name": "My Token",
"symbol": "MTK",
"description": "This is a sample token description",
"chain_id": 1,
"value": 100.50,
"supply": 1000000,
"external_id": "ext_token_12345",
"contract": {
"address": "0x1234567890123456789012345678901234567890",
"hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
},
"rules": {
"max_purchase_limit": 10000,
"min_purchase_limit": 100
},
"status": 2,
"integration": {
"chain_id": 1,
"abi": "[{\"inputs\":[],\"name\":\"transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
"contract_address": "0x9876543210987654321098765432109876543210",
"function_name": "transfer",
"currency_token_address": "0x1111111111111111111111111111111111111111",
"is_approved": true,
"args": [
{
"type": "address",
"value": "0x2222222222222222222222222222222222222222",
"description": "Recipient address"
},
{
"type": "uint256",
"value": "1000000000000000000",
"description": "Amount to transfer"
}
]
},
"currency_token_address": "0x1111111111111111111111111111111111111111",
"currency_token_symbol": "USDT",
"currency_token_decimals": 18,
"currency_token_name": "Tether USD",
"meta": {
"images": [
{
"url": "https://example.com/images/token-logo.png",
"is_default": true,
"hash": "abc123def456"
},
{
"url": "https://example.com/images/token-banner.jpg",
"is_default": false,
"hash": "def456ghi789"
}
],
"documents": [
{
"name": "Whitepaper",
"url": "https://example.com/documents/whitepaper.pdf",
"type": 2,
"hash": "whitepaper_hash_123"
},
{
"name": "Terms of Service",
"url": "https://example.com/documents/terms.pdf",
"type": 3,
"hash": "terms_hash_456"
}
]
}
}'