Campaigns
Requirement You are required to show empowered by RE:DREAMER if you used our protocol in any part of your product.
Domain
Mainnet:
mainnet-api.redreamer.io
Testnet:
testnet-api.redreamer.io
Request Headers
[Required]
Authorization
:Bearer ${token}
[Required]
X-API-Key
:${api key}
Please contacts RE:DREAMER to get API keys.
GET /api/v1/passport/:network/campaigns
List valid campaigns by given network.
Request Parameters
[Required]
network
: the network of campaigns
Query Strings
[Optional]
mine
: Boolean
It will only returns the campaigns created by same creator of API key.
Response
200
400, 500
Error Code
GET /api/v1/passport/:network/campaigns/:id/nfts
List all available NFTs for given campaign.
Request Headers
[Required]
Authorization
:Bearer ${token}
[Required]
X-API-Key
:${api key}
Please contacts RE:DREAMER to get API keys.
Request Paramters
[Required]
id
: the campaign id
Response
200
400, 500
Error Code
POST /api/v1/passport/:network/campaigns/:id/redeem
Send request to redeem PASSPORT QR code.
Request Headers
[Required]
Authorization
:Bearer ${token}
Request Paramters
[Required]
id
: the campaign id
Request Body
signature
: sign the message with the format below
Response
200
after_redeemed
:0
: User want to present PASSPORT QR code.1
: User do not want to present PASSPORT QR code.2
: User want to present text only.
qr_code
: PASSPORT QR code content.redeemed_description
: User want to present this message after PASSPORT QR code is presenting.validated_description
: User want to present this message after this PASSPORT QR code is validated by validator.
400, 500
Error Code
Information
Posted: May 25, 2022
Last updated