Get Campaigns
Retrieves all campaigns created on Infinity Watch
Endpoint
POST /all-campaignsResponse
{
"type": "object",
"properties": {
"result": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the campaign"
},
"banner_url": {
"type": "string",
"format": "uri",
"description": "URL of the banner image shown to users"
},
"poster_url": {
"type": "string",
"format": "uri",
"description": "URL of the poster image shown to users"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the campaign was created"
},
"created_by": {
"type": "string",
"description": "Username of the campaign creator"
},
"created_by_publicKey": {
"type": "string",
"description": "Public key of the campaign creator"
},
"description": {
"type": "string",
"description": "Detailed description of the campaign"
},
"starts_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the campaign starts"
},
"ends_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the campaign ends"
},
"fuel_required": {
"type": "number",
"description": "Amount of fuel required for participation"
},
"is_active": {
"type": "boolean",
"description": "Whether the campaign is currently active"
},
"latitude": {
"type": "number",
"description": "Geographical latitude of the campaign center"
},
"longitude": {
"type": "number",
"description": "Geographical longitude of the campaign center"
},
"radius": {
"type": "number",
"description": "Radius in kilometers within which the campaign is valid"
},
"location_limit_in_meters": {
"type": "number",
"description": "Limit in meters for location verification"
},
"max_submissions": {
"type": "integer",
"description": "Maximum total submissions allowed for the campaign"
},
"max_submissions_per_witness": {
"type": "integer",
"description": "Maximum submissions allowed per individual witness"
},
"submissions": {
"type": "integer",
"description": "Current number of submissions received"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of tags associated with the campaign"
},
"type": {
"type": "string",
"enum": ["individual", "group", "task"],
"description": "Type of campaign"
},
"currency": {
"type": "string",
"description": "Currency type for rewards"
},
"reward_per_task": {
"type": "number",
"description": "Amount of reward given per completed task"
},
"total_rewards": {
"type": "number",
"description": "Total rewards available for the campaign"
},
"tasks": {
"type": "object",
"description": "For task-type campaigns, contains task definitions",
"additionalProperties": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "Description of the task"
},
"fuel_required": {
"type": "number",
"description": "Amount of fuel required for this specific task"
}
}
}
},
"whitelist": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of public keys allowed to participate in this campaign"
}
}
}
}
}
}Example Response
Example Task-Type Campaign Response
Error Codes
Status Code
Error Code
Description
Response Fields
Common Campaign Fields
Field
Type
Description
Location Fields
Field
Type
Description
Reward Fields
Field
Type
Description
Task-Type Campaign Fields
Field
Type
Description
Last updated