Make verify request

Requirement You are required to show empowered by RE:DREAMER if you used our protocol in any part of your product.

empowered white
empowered black

Domain

  • Mainnet: mainnet-api.redreamer.io

  • Testnet: testnet-api.redreamer.io

POST /api/v1/passport/:network/campaigns/:uuid/validate

Validate a QR code content.

QR Code Content

There is a prefix REDREAMER: at the beginning of content for quickly identification and then follow by a base64 encoded JSON object.

JSON object format example:

Request Parameters

  • [Required] network: the network of campaign (now only support eth and polygon)

  • [Required] uuid: campaign's uuid.

Reqeust Body

Request Headers

We provide an api key - 8AetTdcKwtrOvZJcPLI5VP2qxL70_kQ9Pkn6SNECrwo= in testnet.

Response

200

400, 500

Error Code

  • PASSPORT_CAMPAIGN_NOT_FOUND: campaign not found.

  • PASSPORT_NETWORK_MISMATCH: network mismatch.

  • EXCEED_MAXIMUM_PASSPORT_REDEMPTION: out of redemption's limit.

  • NOT_TOKEN_OWNER: user is not token owner.

  • INVALID_PASSPORT_CAMPAIGN: invalid campaign.

  • QR_CODE_EXPIRED: QR code is expired.

  • INVALID_QR_CODE: QR code is invalid.

Test information

This QR code created in testnet and it can be verified unlimited times.

Testnet QR code

Last updated