POST
/
community
/
{id}
/
collection
/
{collectionId}
/
mintable
curl --request POST \
  --url https://api.other.page/v1/community/{id}/collection/{collectionId}/mintable \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "image": "https://img.other.page/d4996a15-61f2-49db-907f-8a4969b4d224/image.jpg",
  "type": "avatar",
  "clippedImage": "https://img.other.page/d4996a15-61f2-49db-907f-8a4969b4d224/my-clipped-image.png",
  "bannerImage": "https://img.other.page/d4996a15-61f2-49db-907f-8a4969b4d224/my-mintable-banner-image.jpg",
  "traits": [
    {
      "trait_type": "Eye Color",
      "value": "Green"
    }
  ],
  "models": {
    "mml": "<string>",
    "threejs": "<string>",
    "unity": "<string>",
    "unreal": "<string>"
  },
  "animationUrl": "https://example.com/animation.mp4",
  "maxMints": 1000,
  "mintEndDate": "2023-12-31"
}'

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Community ID

collectionId
string
required

Body

application/json
name
string
required

The name of the mintable item

description
string
required

A description of the mintable item

image
string
required

The image URL of the mintable item

Example:

"https://img.other.page/d4996a15-61f2-49db-907f-8a4969b4d224/image.jpg"

type
enum<string>
required

The type of mintable item

Available options:
avatar,
theme,
item
Example:

"avatar"

bannerImage
string
required

The banner image URL of the mintable item

Example:

"https://img.other.page/d4996a15-61f2-49db-907f-8a4969b4d224/my-mintable-banner-image.jpg"

maxMints
number
required

The maximum number of mints allowed

Example:

1000

clippedImage
string

The clipped image URL of the mintable item

Example:

"https://img.other.page/d4996a15-61f2-49db-907f-8a4969b4d224/my-clipped-image.png"

traits
string[]

An array of traits for the mintable item

Example:
[
  {
    "trait_type": "Eye Color",
    "value": "Green"
  }
]
models
object

The models for the mintable item in different formats

animationUrl
string

The URL for the animation of the mintable item

Example:

"https://example.com/animation.mp4"

mintEndDate
string

The date until which minting is allowed

Example:

"2023-12-31"

Response

201

The mintable has been successfully created.