Partners API
Description of the API that can be used by partners to update the NFT
Dernière mise à jour
Description of the API that can be used by partners to update the NFT
Dernière mise à jour
A partner API is being developed and allows third party to trigger actions in a NFT collection on Gardenlab.
For now, the API allows partners to trigger NFT creation and reservation for later claim by the user. The claim shall be performed by the user, after logging in with its email. It also allows to consume an interaction on a NFT, designated by the owner's email address. The interaction shall be created and configured beforehand on the collection admin tool.
An API key and a configured collection are required to properly perform those actions.
Swagger demo API : https://api-docs-demo.gardenlab.io/
Note: When creating a NFT for a user, this NFT is prepared but not minted. The mint of the NFT occurs when the user claims it using the email address.
Note: The action saved for a NFT is applied if the NFT is minted or not.
It is also possible to set up webhooks to get notified about some specific events occuring in Gardenlab.
The failure object is sent only when there is no "hope" about succeeding in performing the blockchain transactions. Gardenlab system is designed to try multiple times to perform a transaction if no fatal error occurs on the transaction.
Getting all the blockchain transactions for a specific token, with the information related to the transaction.
/getBlockchainTxForToken
The partner's name.
spacex
The contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_party
The token ID for which to retrieve the blockchain transactions
summer_party
Create or update a new interaction and specify the action_id to use to apply the interaction.
/saveActionInteraction
The partner's name.
spacex
The 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.
0ER368760G8787238
Notifies Gardenlab that a user has performed an action in the partner ecosystem
/newActionForUser
The partner's name.
spacex
The contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_party
The action ID.
eshop_purchase
The XP value to add on the NFT. Applied only if the interaction allows it.
5
Retrieve the information on a specific NFT of a contract.
/getNftByTokenId
The contract address of the token.
The token ID
No body
Retrieve all the interactions for a contract.
/getAllInteractions
The partner's name.
spacex
The contract for which to retrieve the interactions
0x0123456789abcdef0123456789abcdef01234567
The contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_party
Getting all the actions applied on a NFT
/getAllInteractionScansForToken
The partner's name.
spacex
The token ID to fetch the interactions for
123
The contract for which to retrieve the interactions
0x0123456789abcdef0123456789abcdef01234567
The contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_party
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.
/newUserForPartner
The partner's name.
spacex
The 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.
VIP
The contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_party
Additionnal fields that can be set for customized behaviors.
Optional NFT information that must be set for this user
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.
/mintTokenForUser
The partner's name.
spacex
The user's email address. The NFT must have been created with this email.
max@gardenlab.io
The user identification.
u123456789
The blockchain address of the user. The NFT will be minted to this address.
0x0123456789abcdef0123456789abcdef01234567
The contract ID associated with a specific contract/collection/customer (ex: the event ID or 'subscription')
summer_party
The contract address. Required if contract_id is not specified. The contract must be associated to the partner.
0x0123456789abcdef0123456789abcdef01234567
The 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.
123