openapi: 3.0.3 x-reviewed-on: 2026-10-09 info: title: Pareto API - Campaigns version: 2026-10-09 description: Authenticated campaign catalog, wallet points, and rankings. servers: - url: https://api.pareto.credit/v1 security: - bearerAuth: [] paths: /campaigns: get: operationId: listCampaigns summary: List campaigns tags: - Campaigns parameters: - name: _id in: query style: form explode: false schema: description: List of item IDs. type: array minItems: 1 maxItems: 200 items: type: string pattern: ^[a-f0-9]{24}$ - name: code in: query style: form explode: false schema: type: array maxItems: 200 items: type: string - name: limit in: query schema: description: Number of requested items. type: integer minimum: 1 maximum: 200 default: 50 - name: offset in: query schema: description: Number of skipped items. type: integer minimum: 0 - name: order in: query schema: description: Sort order of the items. type: string enum: - asc - desc - name: fields in: query style: form explode: false schema: description: Fields to include in the response. type: array items: type: string enum: - _id - tokenId - code - rules - boosts - startDate - endDate - createdAt - updatedAt - name: sort in: query schema: description: The field to use to sort the items. type: string enum: - _id responses: "200": description: Paginated campaigns. Items may be field projections. content: application/json: schema: $ref: "#/components/schemas/CampaignPage" example: data: - _id: 66f1a2b3c4d5e6f789012340 code: loyalty-2026 name: en: Loyalty 2026 totalCount: 1 "400": description: Invalid request parameters. Correct the request before retrying. "401": description: An issued, valid API key is required. "403": description: The requested business data is outside the integration key access. "429": description: Request volume has been limited. Reduce frequency and honor Retry-After when supplied. 5XX: description: Service or upstream failure. Retry transient read failures with bounded backoff. /campaigns/{campaignId}: get: operationId: getCampaign summary: Get a campaign tags: - Campaigns parameters: - name: campaignId in: path required: true schema: type: string pattern: ^[a-f0-9]{24}$ responses: "200": description: Campaign record. content: application/json: schema: $ref: "#/components/schemas/Campaign" "400": description: Invalid request parameters. Correct the request before retrying. "401": description: An issued, valid API key is required. "403": description: The requested business data is outside the integration key access. "404": description: The requested resource was not found. "429": description: Request volume has been limited. Reduce frequency and honor Retry-After when supplied. 5XX: description: Service or upstream failure. Retry transient read failures with bounded backoff. /campaigns/{campaignId}/points: get: operationId: getCampaignPoints summary: Get a wallet's campaign points tags: - Campaigns description: Supply the blockchain walletAddress to retrieve its points. parameters: - name: campaignId in: path required: true schema: type: string pattern: ^[a-f0-9]{24}$ - name: walletAddress in: query schema: type: string required: true responses: "200": description: Campaign point totals and breakdowns. content: application/json: schema: $ref: "#/components/schemas/CampaignPoints" "400": description: Invalid request parameters. Correct the request before retrying. "401": description: An issued, valid API key is required. "403": description: The requested business data is outside the integration key access. "404": description: The requested resource was not found. "429": description: Request volume has been limited. Reduce frequency and honor Retry-After when supplied. 5XX: description: Service or upstream failure. Retry transient read failures with bounded backoff. /campaigns/{campaignId}/ranking: get: operationId: getCampaignRanking summary: Get campaign rankings tags: - Campaigns parameters: - name: campaignId in: path required: true schema: type: string pattern: ^[a-f0-9]{24}$ - name: walletAddress in: query style: form explode: false schema: type: array maxItems: 200 items: type: string - name: rank in: query style: form explode: false schema: type: array maxItems: 200 items: type: number responses: "200": description: Campaign ranking. content: application/json: schema: $ref: "#/components/schemas/CampaignRanking" "400": description: Invalid request parameters. Correct the request before retrying. "401": description: An issued, valid API key is required. "403": description: The requested business data is outside the integration key access. "404": description: The requested resource was not found. "429": description: Request volume has been limited. Reduce frequency and honor Retry-After when supplied. 5XX: description: Service or upstream failure. Retry transient read failures with bounded backoff. components: securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: API access token description: Pareto API access token supplied as a Bearer token. schemas: Locales: type: object additionalProperties: type: string Campaign: type: object additionalProperties: true properties: _id: type: string code: type: string name: $ref: "#/components/schemas/Locales" description: $ref: "#/components/schemas/Locales" rules: type: array items: type: object additionalProperties: true properties: code: type: string name: $ref: "#/components/schemas/Locales" trigger: type: string enum: - DEPOSIT - DEPOSIT_REQUEST deposit: type: object properties: type: type: string enum: - BALANCE - BALANCE_USP - BALANCE_SUSP - POOL_BALANCE - AGE value: type: number tokenId: type: string required: - type - value reward: type: object properties: type: type: string enum: - AMOUNT - MULTIPLIER - PERCENTAGE value: type: number required: - type - value required: - code - name - trigger - deposit - reward startDate: type: string format: date-time endDate: type: string format: date-time link: type: string galxeId: type: number isSyncable: type: boolean createdAt: type: string format: date-time updatedAt: type: string format: date-time required: - code - name - _id - createdAt - updatedAt CampaignPage: type: object required: - data - totalCount properties: data: type: array items: $ref: "#/components/schemas/CampaignProjection" totalCount: type: integer minimum: 0 CampaignMetric: type: object required: - points - perDay - multiplier additionalProperties: true properties: points: type: string perDay: type: string multiplier: type: string multiplierScaled: type: string rewards: type: array items: type: object required: - USD properties: USD: type: string description: Integer USD amount in the endpoint's stored precision. tokenId: type: string amount: type: string code: type: string rules: type: array items: type: string CampaignPoints: allOf: - $ref: "#/components/schemas/CampaignMetric" - type: object properties: vaults: type: array items: $ref: "#/components/schemas/CampaignPointsVault" boosts: type: array items: $ref: "#/components/schemas/CampaignPointsBoost" metrics: type: object additionalProperties: true CampaignPointsVault: allOf: - $ref: "#/components/schemas/CampaignMetric" - type: object required: - _id properties: _id: type: string CampaignPointsBoost: allOf: - $ref: "#/components/schemas/CampaignMetric" - type: object required: - code properties: code: type: string CampaignRanking: type: object required: - totalPoints - totalWallets - totalWalletsWithPoints - rankings properties: totalPoints: type: number totalWallets: type: number totalWalletsWithPoints: type: number updatedAt: type: string rankings: type: array items: type: object required: - walletAddress - points - perDay - rank properties: walletAddress: type: string points: type: number perDay: type: number rank: type: number additionalProperties: true CampaignProjection: type: object additionalProperties: true properties: _id: type: string code: type: string name: $ref: "#/components/schemas/Locales" description: $ref: "#/components/schemas/Locales" rules: type: array items: type: object additionalProperties: true properties: code: type: string name: $ref: "#/components/schemas/Locales" trigger: type: string enum: - DEPOSIT - DEPOSIT_REQUEST deposit: type: object properties: type: type: string enum: - BALANCE - BALANCE_USP - BALANCE_SUSP - POOL_BALANCE - AGE value: type: number tokenId: type: string required: - type - value reward: type: object properties: type: type: string enum: - AMOUNT - MULTIPLIER - PERCENTAGE value: type: number required: - type - value required: - code - name - trigger - deposit - reward startDate: type: string format: date-time endDate: type: string format: date-time link: type: string galxeId: type: number isSyncable: type: boolean createdAt: type: string format: date-time updatedAt: type: string format: date-time