Campaigns describe points-based engagement programs. A record can include stable identity and code, localized name and description, rules and rewards, dates, and links. Rules are campaign configuration, not a promise of a particular points outcome.
/v1/campaignsList campaigns#
Bearer API key. See API access.
Parameters#
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
_id | query | array<string> | No | List of item IDs. Minimum items: 1. Maximum items: 200. Pattern: ^[a-f0-9]{24}$. Encode multiple values as a comma-separated list. |
code | query | array<string> | No | Maximum items: 200. Encode multiple values as a comma-separated list. |
limit | query | integer | No | Number of requested items. Default: 50. Minimum: 1. Maximum: 200. |
offset | query | integer | No | Number of skipped items. Minimum: 0. |
order | query | string | No | Sort order of the items. Values: asc, desc. |
fields | query | array<string> | No | Fields to include in the response. Values: _id, tokenId, code, rules, boosts, startDate, endDate, createdAt, updatedAt. Encode multiple values as a comma-separated list. |
sort | query | string | No | The field to use to sort the items. Values: _id. |
Response 200#
Paginated campaigns. Items may be field projections.
Content type: application/json · Schema: object
| Field | Type | Presence | Description |
|---|---|---|---|
data | array<object> | Required | |
data[]._id | string | Optional | |
data[].code | string | Optional | |
data[].name | object | Optional | |
data[].description | object | Optional | |
data[].rules | array<object> | Optional | |
data[].rules[].code | string | Required | |
data[].rules[].name | object | Required | |
data[].rules[].trigger | string | Required | Values: DEPOSIT, DEPOSIT_REQUEST. |
data[].rules[].deposit | object | Required | |
data[].rules[].deposit.type | string | Required | Values: BALANCE, BALANCE_USP, BALANCE_SUSP, POOL_BALANCE, AGE. |
data[].rules[].deposit.value | number | Required | |
data[].rules[].deposit.tokenId | string | Optional | |
data[].rules[].reward | object | Required | |
data[].rules[].reward.type | string | Required | Values: AMOUNT, MULTIPLIER, PERCENTAGE. |
data[].rules[].reward.value | number | Required | |
data[].startDate | string | Optional | Format: date-time. |
data[].endDate | string | Optional | Format: date-time. |
data[].link | string | Optional | |
data[].galxeId | number | Optional | |
data[].isSyncable | boolean | Optional | |
data[].createdAt | string | Optional | Format: date-time. |
data[].updatedAt | string | Optional | Format: date-time. |
totalCount | integer | Required | Minimum: 0. |
Example response#
{
"data": [
{
"_id": "66f1a2b3c4d5e6f789012340",
"code": "loyalty-2026",
"name": {
"en": "Loyalty 2026"
}
}
],
"totalCount": 1
}Response 400#
Invalid request parameters. Correct the request before retrying.
Response 401#
An issued, valid API key is required.
Response 403#
The requested business data is outside the integration key access.
Response 429#
Request volume has been limited. Reduce frequency and honor Retry-After when supplied.
Response 5XX#
Service or upstream failure. Retry transient read failures with bounded backoff.
Download OpenAPI specification/v1/campaigns/{campaignId}Get a campaign#
Bearer API key. See API access.
Parameters#
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
campaignId | path | string | Yes | Pattern: ^[a-f0-9]{24}$. |
Response 200#
Campaign record.
Content type: application/json · Schema: object
| Field | Type | Presence | Description |
|---|---|---|---|
_id | string | Required | |
code | string | Required | |
name | object | Required | |
description | object | Optional | |
rules | array<object> | Optional | |
rules[].code | string | Required | |
rules[].name | object | Required | |
rules[].trigger | string | Required | Values: DEPOSIT, DEPOSIT_REQUEST. |
rules[].deposit | object | Required | |
rules[].deposit.type | string | Required | Values: BALANCE, BALANCE_USP, BALANCE_SUSP, POOL_BALANCE, AGE. |
rules[].deposit.value | number | Required | |
rules[].deposit.tokenId | string | Optional | |
rules[].reward | object | Required | |
rules[].reward.type | string | Required | Values: AMOUNT, MULTIPLIER, PERCENTAGE. |
rules[].reward.value | number | Required | |
startDate | string | Optional | Format: date-time. |
endDate | string | Optional | Format: date-time. |
link | string | Optional | |
galxeId | number | Optional | |
isSyncable | boolean | Optional | |
createdAt | string | Required | Format: date-time. |
updatedAt | string | Required | Format: date-time. |
Response 400#
Invalid request parameters. Correct the request before retrying.
Response 401#
An issued, valid API key is required.
Response 403#
The requested business data is outside the integration key access.
Response 404#
The requested resource was not found.
Response 429#
Request volume has been limited. Reduce frequency and honor Retry-After when supplied.
Response 5XX#
Service or upstream failure. Retry transient read failures with bounded backoff.
Download OpenAPI specificationWallet points#
GET /v1/campaigns/{campaignId}/points?walletAddress=0x... returns the campaign's calculated points view for that blockchain address. Points and rankings are indexed calculations; they can change as new activity is processed.
/v1/campaigns/{campaignId}/pointsGet a wallet's campaign points#
Supply the blockchain walletAddress to retrieve its points.
Bearer API key. See API access.
Parameters#
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
campaignId | path | string | Yes | Pattern: ^[a-f0-9]{24}$. |
walletAddress | query | string | Yes |
Response 200#
Campaign point totals and breakdowns.
Content type: application/json · Schema: object
| Field | Type | Presence | Description |
|---|---|---|---|
points | string | Required | |
perDay | string | Required | |
multiplier | string | Required | |
multiplierScaled | string | Optional | |
rewards | array<object> | Optional | |
rewards[].USD | string | Required | Integer USD amount in the endpoint's stored precision. |
rewards[].tokenId | string | Optional | |
rewards[].amount | string | Optional | |
code | string | Optional | |
rules | array<string> | Optional | |
vaults | array<object> | Optional | |
vaults[].points | string | Required | |
vaults[].perDay | string | Required | |
vaults[].multiplier | string | Required | |
vaults[].multiplierScaled | string | Optional | |
vaults[].rewards | array<object> | Optional | |
vaults[].rewards[].USD | string | Required | Integer USD amount in the endpoint's stored precision. |
vaults[].rewards[].tokenId | string | Optional | |
vaults[].rewards[].amount | string | Optional | |
vaults[].code | string | Optional | |
vaults[].rules | array<string> | Optional | |
vaults[]._id | string | Required | |
boosts | array<object> | Optional | |
boosts[].points | string | Required | |
boosts[].perDay | string | Required | |
boosts[].multiplier | string | Required | |
boosts[].multiplierScaled | string | Optional | |
boosts[].rewards | array<object> | Optional | |
boosts[].rewards[].USD | string | Required | Integer USD amount in the endpoint's stored precision. |
boosts[].rewards[].tokenId | string | Optional | |
boosts[].rewards[].amount | string | Optional | |
boosts[].code | string | Required | |
boosts[].rules | array<string> | Optional | |
metrics | object | Optional |
Response 400#
Invalid request parameters. Correct the request before retrying.
Response 401#
An issued, valid API key is required.
Response 403#
The requested business data is outside the integration key access.
Response 404#
The requested resource was not found.
Response 429#
Request volume has been limited. Reduce frequency and honor Retry-After when supplied.
Response 5XX#
Service or upstream failure. Retry transient read failures with bounded backoff.
Download OpenAPI specificationRanking#
GET /v1/campaigns/{campaignId}/ranking returns the campaign ranking view. Wallet address and rank filters can be supplied as comma-separated lists where the schema allows. Use the ranking response as an indexed view.
/v1/campaigns/{campaignId}/rankingGet campaign rankings#
Bearer API key. See API access.
Parameters#
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
campaignId | path | string | Yes | Pattern: ^[a-f0-9]{24}$. |
walletAddress | query | array<string> | No | Maximum items: 200. Encode multiple values as a comma-separated list. |
rank | query | array<number> | No | Maximum items: 200. Encode multiple values as a comma-separated list. |
Response 200#
Campaign ranking.
Content type: application/json · Schema: object
| Field | Type | Presence | Description |
|---|---|---|---|
totalPoints | number | Required | |
totalWallets | number | Required | |
totalWalletsWithPoints | number | Required | |
updatedAt | string | Optional | |
rankings | array<object> | Required | |
rankings[].walletAddress | string | Required | |
rankings[].points | number | Required | |
rankings[].perDay | number | Required | |
rankings[].rank | number | Required |
Response 400#
Invalid request parameters. Correct the request before retrying.
Response 401#
An issued, valid API key is required.
Response 403#
The requested business data is outside the integration key access.
Response 404#
The requested resource was not found.
Response 429#
Request volume has been limited. Reduce frequency and honor Retry-After when supplied.
Response 5XX#
Service or upstream failure. Retry transient read failures with bounded backoff.
Download OpenAPI specification