Tokens & Networks
Delete Network
Deletes a network of your organization, with its token types and test transaction settings, and returns the deleted network row. Fails if wallets, grant wallets, invoice payments, custody integrations or sent test transactions still use it. Needs a CLIENT_ORG_ADMIN token with full Networks & Tokens access; some organizations do not let client admins delete networks, and the call then returns 403.
This is the v1 (legacy) API. The current API is in the API reference.
curl --request DELETE \
--url 'https://app.toku.com/api/tokuApi/v1/deleteNetwork' \
--header 'Authorization: Bearer <token>' \
--header 'x-role-type: CLIENT_ORG_ADMIN' \
--header 'Content-Type: application/json' \
--data '{
"networkID": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'{
"data": {
"networkID": "880e8400-e29b-41d4-a716-446655440003",
"orgID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Ethereum",
"icon": "ethereum.svg",
"tokenType": "ERC20",
"isNetworkEnabled": true,
"chainType": "EVM",
"meshConnectNetworkID": "string",
"evmChainID": 1,
"multiSendCallOnlyAddress": "string",
"safeSingletonAddress": "string",
"safeFactoryAddress": "string",
"safeAppBaseUrl": "string",
"safeTxServiceUrl": "string",
"blockExplorerBaseUrl": "string",
"eipsName": "string",
"aleoTransferVisibility": "PUBLIC",
"defaultNetworkSlugUrl": "string",
"catalogChainID": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"error": null
}Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your API token.
Headers
x-role-typestringrequiredSeat role the token acts as. The token's creator must hold this role in the token's organization; TOKU_ADMIN and unknown values are refused with 401. This operation accepts CLIENT_ORG_ADMIN; other roles get 403.
Available options: CLIENT_ORG_ADMIN
Body
application/json
networkIDstring<uuid>requiredResponse
200Network deleted
dataobjectrequiredA network row. rpcUrl is left out: most operations remove it.
Show child attributes
networkIDstring<uuid>orgIDstring<uuid>namestringiconstring | nulltokenTypestringAvailable options: ERC20, NATIVE
isNetworkEnabledboolean | nullchainTypestring | nullAvailable options: EVM, SOLANA, XRPL, BITCOIN, COSMOS_SDK, FILECOIN, PROVENANCE, ALEO, FOGO, FIAT, NEAR, POLKADOT, STACKS, SUI
meshConnectNetworkIDstring | nullevmChainIDinteger | nullmultiSendCallOnlyAddressstring | nullsafeSingletonAddressstring | nullsafeFactoryAddressstring | nullsafeAppBaseUrlstring | nullsafeTxServiceUrlstring | nullblockExplorerBaseUrlstring | nulleipsNamestring | nullaleoTransferVisibilitystring | nullAvailable options: PUBLIC, PUBLIC_TO_PRIVATE, PRIVATE
defaultNetworkSlugUrlstring | nullcatalogChainIDstring<uuid> | nullerrorobject | nullrequiredAlways null on success
401The token is missing, invalid or expired
errorstringrequiredWhat went wrong
403The token's seat doesn't have the permission this operation needs
errorobjectrequiredShow child attributes
messagestringrequired429Too many requests from this address or token. Wait for the number of seconds in the Retry-After header, then retry.
errorstringrequiredWhat went wrong
500The operation failed. This includes input that doesn't match what the operation accepts; error.message says what was wrong.
errorobjectrequiredShow child attributes
messagestringrequired