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 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 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 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
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 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
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
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