POST
/
token-launch
/
create-token-info
Create token info and Metadata
curl --request POST \
  --url https://public-api-v2.bags.fm/api/v1/token-launch/create-token-info \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form 'imageUrl=<string>' \
  --form 'metadataUrl=<string>' \
  --form 'name=<string>' \
  --form 'symbol=<string>' \
  --form 'description=<string>' \
  --form 'telegram=<string>' \
  --form 'twitter=<string>' \
  --form 'website=<string>' \
  --form image=@example-file
{
  "success": true,
  "response": {
    "tokenMint": "<string>",
    "tokenMetadata": "<string>",
    "tokenLaunch": {
      "userId": "<string>",
      "name": "<string>",
      "symbol": "<string>",
      "description": "<string>",
      "telegram": "<string>",
      "twitter": "<string>",
      "website": "<string>",
      "image": "<string>",
      "tokenMint": "<string>",
      "status": "PRE_LAUNCH",
      "launchWallet": "<string>",
      "launchSignature": "<string>",
      "uri": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

x-api-key
string
header
required

API key authentication. Provide your API key as the header value.

Body

multipart/form-data

Provide either an image file or imageUrl. If metadataUrl is provided, we will not upload metadata to IPFS.

image
file
required

Token image file (optional if imageUrl is provided)

name
string
required

Token name (max 32 characters)

Maximum length: 32
symbol
string
required

Token symbol (will be converted to UPPERCASE; max 10 characters)

Maximum length: 10
description
string
required

Token description (max 1000 characters)

Maximum length: 1000
imageUrl
string<uri>

Public URL to the token image (optional if image is provided)

metadataUrl
string<uri>

URL to a JSON metadata file. When provided, the API will not upload metadata to IPFS and will use this URL as-is. The JSON must match the fields submitted in this request.

telegram
string | null

Telegram URL

twitter
string | null

Twitter URL

website
string | null

Website URL

Response

Successfully created token info

success
boolean
required
Example:

true

response
object