Create a Project
To begin integrating blockchain functions into your game, you will create a project using the Playfix Project API. Projects are containers for all the token, NFT, and wallet resources you will provision for your game.
To create a project, you will make a POST request to the /project
endpoint, with the relevant parameters sent as JSON in the request body.
Create a New Project
POST
https://api.playfix.io/project/projects
Create a new project, which holds tokens, NFTs, and user wallets for your game.
Headers
Authorization*
String
The access token you get from the authorization process.
Example:
Bearer <your_access_token>
Request Body
title
String
The title of your project. You should use a concise, human-readable title of a few words, each separated by a space. Titles should also be unique, although this is not enforced. and duplicate project titles are allowed. Although it is optional, it is highly recommended that you use this option.
description
String
A short description of your project.
Use a concise but descriptive sentence between 30 and 70 characters is recommended.
Although it is optional, it is highly recommended that you use this option.
imageCoverCid
String
IPFS CID for the image to use as the project cover when it is displayed in the user interface.
Although it is optional, it is highly recommended that you use this option.
The example below shows how to create a new project with the title "Block Party1" and a description of "A good block party game."
Example Curl API Call
Example Python API Call
In the Authorization header, replace <your_access_token> with the token you get from the authorization process.
Response Body
Response Fields
name
: A unique name of the project, automatically created by Playfix. It begins with the prefix projects/ followed by the project'sULID
.title
: The title of your project, as supplied in the API request.description
: A short description of your project, as supplied in the API request.imageCoverCid
: The IPFS CID of the cover image to display in the user interface.imageCoverUrl
: An automatically generated URL to an IPFS gateway that fetches the cover image.
ULID is a sortable unique identifier comprised of twenty-six Base32 encoded characters.
IPFS (Interplanetary File System) is a decentralized file system used to store content for Web3.
CID (Content Identifier) is a unique identifier that points to content on IPFS. To get this, upload your game cover image to IPFS, then copy the CID.
Last updated