Partners API
Description of the API that can be used by partners to update the NFT
Introduction
Description
Configuration
Interactions
Create or update a new interaction and specify the action_id to use to apply the interaction.
The partner's name.
spacexThe contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_party(optional) The interaction ID to edit. Leave empty to create.
0ER368760G8787238Returns an object containing the interaction information along with its id.
The interaction ID
IQ0LuundpiAvnfDcQ21YThe request is malformed. Please verify the content of the body.
The API key is missing or incorrect.
An internal error occured. Check the error message.
Operation
User creation
Notifies Gardenlab that a user has been created in the database. Create and reserve a NFT for the user, if the conditions are respected. The NFT associated to user_category_id will be used for this user.
This endpoint supports body with an array of requests or a single request. The response will be an array or a single body accordingly.
The partner's name.
spacexThe user's email address. The NFT created will be reserved to this email.
The user identification.
The user catagory. This defines which NFT to distribute.
VIPThe contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_partyReturns an array of object containing the NFTs created for the user.
The request is not valid or an error occured.
The API key is missing or incorrect.
An internal error occured. Please verify the message
Action
Notifies Gardenlab that a user has performed an action in the partner ecosystem
The partner's name.
spacexThe contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_partyThe action ID.
eshop_purchaseThe XP value to add on the NFT. Applied only if the interaction allows it.
5Returns an object containing the NFT created for the user.
The NFT's smart contract address.
0x0123456789abcdef0123456789abcdef01234567The NFT token ID.
123The NFT attributes.
The NFT page URL.
The owner User ID.
The owner email address.
The request is malformed. Please verify the content of the body.
The API key is missing or incorrect.
An internal error occured. Check the error message.
Mint token
Mint an existing token to a user. The token must be created and allocated to a user, through his email address. The NFT will then be minted to the blockchain address specified in the request. The UID of the user must also be specified for additional security.
The partner's name.
spacexThe user's email address. The NFT must have been created with this email.
[email protected]The user identification.
u123456789The blockchain address of the user. The NFT will be minted to this address.
0x0123456789abcdef0123456789abcdef01234567The contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_partyThe contract address. Required if contract_id is not specified. The contract must be associated to the partner.
0x0123456789abcdef0123456789abcdef01234567The token ID to be minted. It must be reserved to the user. If not specified, the token ID will be searched using the user email.
123Returns the basic information of the mint. The mint is not yet processed in the blockchain.
The user address to which the NFT will be minted.
0x0123456789abcdef0123456789abcdef01234567The contract address
0x0123456789abcdef0123456789abcdef01234567The token ID being minted
123The token URL.
ipfs://bafyreid2zqtuvrcemlhesksvibci7xaphbvw4ytun5xykdjancfaum2l3i/metadata.jsonThe request is not valid or an error occured.
The API key is missing or incorrect.
An internal error occured. Please verify the message
Getters
Retrieve the information on a specific NFT of a contract.
The contract address of the token.
The token ID
Returns an object containing the NFT information.
Aucun contenu
There is an error in the query.
The API key is missing or incorrect.
The specified NFT cannot be found in Gardenlab database.
Aucun contenu
Retrieve all the interactions for a contract.
The partner's name.
spacexThe contract for which to retrieve the interactions
0x0123456789abcdef0123456789abcdef01234567The contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_partyReturns a list with all the interactions
The interaction type (the NFT attribute to make an evolution on)
IRL EventThe interaction name
Event checkinThe interaction description
The interaction applied when a user get access to the eventThe default number of XP points to add on the NFT, when applying this interaction
5Whether the interaction adds XP or just an attribute type
falseWhether the interaction accepts a custom XP increment (passed in the request parameters)
falseNumber of interactions that can be applied on one NFT. (-1 if infinity)
1The action id keyword to call this interaction with in the API request
event_checkinThere is an error in the query.
The API key is missing or incorrect.
An internal error occured. Check the error message.
Getting all the actions applied on a NFT
The partner's name.
spacexThe token ID to fetch the interactions for
123The contract for which to retrieve the interactions
0x0123456789abcdef0123456789abcdef01234567The contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_partyReturns a list with all the interactions
A list of the interactions
XP before the interaction
XP after the interaction
Level before the interaction
Level after the interaction
Flag indicating the max level has been reached
The name of the interaction
The type of the interaction (attribute name)
There is an error in the query.
The API key is missing or incorrect.
An internal error occured. Check the error message.
Getting all the blockchain transactions for a specific token, with the information related to the transaction.
The partner's name.
spacexThe contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_partyThe token ID for which to retrieve the blockchain transactions
summer_partyReturns a list with all the blockchain transactions
The interaction details
The blockchain transaction hash
The blockchain explorer url
The URI of the token
XP before the interaction
XP after the interaction
Level before the interaction
Level after the interaction
Flag indicating the max level has been reached
The name of the interaction
The type of the interaction (attribute name)
There is an error in the query.
The API key is missing or incorrect.
An internal error occured. Check the error message.
Webhooks
New interaction with blockchain update:
Type :
Header:
Success Content:
Failure Content:
New NFT minted
Type :
Header:
Success content:
Failure content:
Mis à jour