Campaigns
Campaign management operations
Retrieve a list of campaigns for the authenticated user with optional filtering
Filter campaigns by status
Maximum number of results per request
25Number of results to skip
0List of campaigns
trueTotal number of campaigns matching the filter
Unauthorized
Internal server error
GET /api/campaigns HTTP/1.1
Host: rewards.decentraland.org
Accept: */*
{
"ok": true,
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Summer Rewards Campaign",
"enabled": true,
"active_since": "2024-01-01T00:00:00Z",
"active_until": "2024-12-31T23:59:59Z",
"max_gas": 200,
"chain_id": "137",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"total": 1
}Create a new reward campaign with specified configuration
Campaign name
Summer Rewards CampaignBlockchain chain ID
137Possible values: Whether the campaign is enabled
trueExample: trueMaximum gas fee per transaction
200Example: 200Campaign start time
2024-01-01T00:00:00ZCampaign end time
2024-12-31T23:59:59ZCampaign created successfully
trueBad request
Unauthorized
Internal server error
POST /api/campaigns HTTP/1.1
Host: rewards.decentraland.org
Content-Type: application/json
Accept: */*
Content-Length: 156
{
"name": "Summer Rewards Campaign",
"chain_id": "137",
"enabled": true,
"max_gas": 200,
"active_since": "2024-01-01T00:00:00Z",
"active_until": "2024-12-31T23:59:59Z"
}{
"ok": true,
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Summer Rewards Campaign",
"enabled": true,
"active_since": "2024-01-01T00:00:00Z",
"active_until": "2024-12-31T23:59:59Z",
"max_gas": 200,
"chain_id": "137",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
}Retrieve public campaign information by IDs
Array of campaign IDs to retrieve
Public campaign information
trueBad request
Internal server error
GET /api/campaigns/publics?id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: rewards.decentraland.org
Accept: */*
{
"ok": true,
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Summer Rewards Campaign",
"enabled": true,
"active_since": "2024-01-01T00:00:00Z",
"active_until": "2024-12-31T23:59:59Z",
"max_gas": 200,
"chain_id": "137",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"role": "owner"
}
]
}Retrieve detailed information about a specific campaign
Campaign ID
Campaign details
trueUnauthorized
Not found
Internal server error
GET /api/campaigns/{campaign_id} HTTP/1.1
Host: rewards.decentraland.org
Accept: */*
{
"ok": true,
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Summer Rewards Campaign",
"enabled": true,
"active_since": "2024-01-01T00:00:00Z",
"active_until": "2024-12-31T23:59:59Z",
"max_gas": 200,
"chain_id": "137",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
}Update campaign configuration and settings
Campaign ID
Campaign name
Updated Campaign NameBlockchain chain ID
137Possible values: Whether the campaign is enabled
trueMaximum gas fee per transaction
200Campaign start time
2024-01-01T00:00:00ZCampaign end time
2024-12-31T23:59:59ZCampaign updated successfully
trueBad request
Unauthorized
Not found
Internal server error
PATCH /api/campaigns/{campaign_id} HTTP/1.1
Host: rewards.decentraland.org
Content-Type: application/json
Accept: */*
Content-Length: 154
{
"name": "Updated Campaign Name",
"chain_id": "137",
"enabled": true,
"max_gas": 200,
"active_since": "2024-01-01T00:00:00Z",
"active_until": "2024-12-31T23:59:59Z"
}{
"ok": true,
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Summer Rewards Campaign",
"enabled": true,
"active_since": "2024-01-01T00:00:00Z",
"active_until": "2024-12-31T23:59:59Z",
"max_gas": 200,
"chain_id": "137",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
}Claim funds from a campaign to a specified address
Campaign ID
Address to send funds to
0x1234567890123456789012345678901234567890Funds claimed successfully
trueTransaction details
Bad request
Unauthorized
Not found
Internal server error
POST /api/campaigns/{campaign_id}/claim_funds HTTP/1.1
Host: rewards.decentraland.org
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"address": "0x1234567890123456789012345678901234567890"
}{
"ok": true,
"data": {}
}Last updated