Returns all the rewards that have been airdropped to the collection with the specified ID.
Request
Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
Header Params
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://testserver.loyi.io/public/api/collection//rewards' \
--header'Origin;' \
--header'x-api-key: <api-key>'
Responses
🟢200OK
application/json
Ok
Body
Example
[{"id":"123e4567-e89b-12d3-a456-426655440000","code":null,"title":"Unique Coupon","description":"A special reward with unique coupons","instruction":"Use these coupons to get discounts","type":"CouponLinkUnique","link":"https://example.com","coupons":[{"code":"coupon1"},{"code":"coupon2"}],"createdAt":"2022-01-01T00:00:00.000Z","updatedAt":"2022-01-01T00:00:00.000Z"}]