Skip to main content

Create an item

This section describes how to create one item at a time using the Phosphor API. You can also create items in bulk.

Issue a POST request to the items endpoint to create an item.

POST https://admin-api.phosphor.xyz/v1/items
Example payload
{
"collection_id": "960300ca-ad1e-4054-b056-77c3dcfd2b9d",
"attributes": {
"title": "item-title",
"description": "item-description",
"image_url": "https://",
"...": "..."
},
"item_type_id": "item-type-id"
}
ParameterRequired?Description
collection_idYesYour collection ID.
attributesYesVaries by item-type. Usually contains title, description, image_url. title is a required field.
item_type_idNoID of the item type commonly associated with this collection.
Example response
{
"attributes": {
"description": null,
"image_url": "http://",
"title": "SAS"
},
"collection_id": "960300ca-ad1e-4054-b056-77c3dcfd2b9d",
"id": "ce67342d-9e0b-4fea-ad54-f668d7fd59ad",
"item_type_id": null,
"locked": false,
"max_supply": null,
"media": {
"image": {
"cid": null,
"full": "http://",
"original": "http://",
"thumb": "http://",
"tiny": "http://"
}
},
"royalty_info": null,
"token_id": null,
"token_status": "NOT_MINTED"
}