Getting StartedAPI Reference
Getting StartedAPI Reference
Help Center
Login
  1. Campaigns
  • Campaigns
    • Get All Campaigns
      GET
    • Get Campaign By ID
      GET
    • Create campaign
      POST
    • Update campaign
      PUT
    • Delete campaign
      DELETE
  • Affiliates
    • List affiliates
      GET
    • Get Affiliate By ID
      GET
    • Create Affiliate
      POST
    • Update Affiliate
      PUT
    • Delete Affiliate
      DELETE
  • Affiliate Links
    • Get Affiliate Link By Affiliate ID
      GET
    • Create Affiliate Link
      POST
    • Delete Affiliate Link
      DELETE
  • Comissions
    • Get All Commissions
      GET
    • Get Commission By ID
      GET
    • Create Commision
      POST
    • Update Commision
      PUT
    • Delete Commision
      DELETE
  • Referred Users
    • Get All Referred Users
      GET
    • Get Referred User by Email
      GET
    • Create Referred User
      POST
    • Update Referred User
      PUT
    • Delete Referred User
      DELETE
Getting StartedAPI Reference
Getting StartedAPI Reference
Help Center
Login
  1. Campaigns

Get All Campaigns

GET
/campaigns/list
Last modified:2025-12-29 12:26:39
Retrieve a paginated list of all campaigns associated with the authenticated user's account.
This endpoint returns campaign details including commission structures, payout terms, and configuration settings. Results can be filtered by workspace and sorted by various criteria.

Request

Query 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 '/campaigns/list?page=1&limit=50&workspaceId=5bb8cbe6-67dc-4b07-853e-7ca5454f8515&orderType=createdAt&orderValue=ASC or DESC' \
--header 'x-auth-referralstack: rs_live_e6761c15744c9be53be18802278fd3da751d03de'

Responses

🟢200Success
application/json
Body

Example
{
    "message": "Campaigns fetched successfully",
    "data": {
        "items": [
            {
                "id": "f7a3b9e1-4c2d-4a8f-9e3b-1d5c7a8b9f0e",
                "campaignName": "Summer Product Launch 2025",
                "commissionType": "percentage",
                "amount": 15,
                "minimumPayoutAmount": 50,
                "payoutId": "a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6",
                "workspaceId": "w9x8y7z6-v5u4-t3s2-r1q0-p9o8n7m6l5k4",
                "requiresApprovalToJoin": true,
                "collectAdditionalInfo": true,
                "hideCustomerEmail": false,
                "payoutTerm": 45,
                "url": "https://example.com/summer-launch",
                "affiliatePortalWelcomeMessage": "Welcome to our Summer Campaign! Earn 15% on every sale.",
                "affiliateDashboardText": "Track your summer campaign performance here.",
                "stripeCouponId": "SUMMER2025",
                "allowedUrlParameters": [
                    "utm_source",
                    "utm_campaign",
                    "ref"
                ],
                "isDefault": false,
                "createdAt": "2025-05-01T10:00:00.000Z",
                "updatedAt": "2025-06-15T14:30:00.000Z"
            },
            {
                "id": "e8d4c2b1-9a7f-4e6d-8c5b-3a2f1e0d9c8b",
                "campaignName": "Default Referral Program",
                "commissionType": "fixed",
                "amount": 50,
                "minimumPayoutAmount": 100,
                "payoutId": "a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6",
                "workspaceId": "w9x8y7z6-v5u4-t3s2-r1q0-p9o8n7m6l5k4",
                "requiresApprovalToJoin": false,
                "collectAdditionalInfo": false,
                "hideCustomerEmail": false,
                "payoutTerm": 30,
                "url": "https://example.com",
                "affiliatePortalWelcomeMessage": "Thank you for joining our affiliate program!",
                "affiliateDashboardText": "Your default campaign dashboard.",
                "stripeCouponId": null,
                "allowedUrlParameters": null,
                "isDefault": true,
                "createdAt": "2025-01-01T00:00:00.000Z",
                "updatedAt": "2025-01-01T00:00:00.000Z"
            }
        ],
        "pagination": {
            "page": 1,
            "limit": 25,
            "total": 2,
            "totalPages": 1
        }
    }
}
🟠401Unauthorized (Missing API Key)
🟠403Forbidden (Incorrect WorkspaceId)
Modified at 2025-12-29 12:26:39
Next
Get Campaign By ID
Built with