Skip to main content
POST
/
api
/
external
/
v1
/
tokens
/
create
Create Token
curl --request POST \
  --url https://app.magna.so/api/external/v1/tokens/create \
  --header 'Content-Type: application/json' \
  --header 'x-magna-api-token: <api-key>' \
  --data '
{
  "symbol": "<string>",
  "chainId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "decimals": 9,
  "address": "<string>",
  "usdPrice": 123,
  "totalSupply": 123,
  "logo": "<string>",
  "mintDate": "2023-11-07T05:31:56Z",
  "isNative": true
}
'
{
  "isProcessed": true,
  "result": {
    "id": "tok...uuid",
    "symbol": "MAGNA",
    "chainId": "ch...uuid",
    "address": "0x...",
    "decimals": 18,
    "usdPrice": 1.25,
    "totalSupply": null,
    "logo": null,
    "mintDate": null,
    "isNative": false,
    "projectId": "p...uuid",
    "createdAt": "2024-04-15T21:26:21.000Z"
  }
}

Authorizations

x-magna-api-token
string
header
required

Body

application/json
symbol
string
required
Minimum string length: 1
chainId
string<uuid>
required
Minimum string length: 1
decimals
integer
required
Required range: 0 <= x <= 18
address
string | null
Minimum string length: 1
usdPrice
number | null
totalSupply
number | null
Required range: x <= 1000000000000000000
logo
string | null
Minimum string length: 1
mintDate
string<date-time> | null
Minimum string length: 1
isNative
boolean

Response

Successful response

isProcessed
boolean
result
any

Endpoint-specific result payload.