GET
/
pique-campaign
Search and filter campaigns
curl --request GET \
  --url https://api.ubpass.co/v1/pique-campaign \
  --header 'api-key: <api-key>'
{
  "items": [
    {
      "id": "1f089d37-5ebe-6778-af59-99631cec7ab5",
      "createdTime": "2025-09-04T21:09:36.027Z",
      "updatedTime": "2025-09-04T21:11:01.734Z",
      "createdBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
      "updatedBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
      "workspaceId": "1f089d29-6f9c-66c2-af59-99631cec7ab5",
      "accountId": "1f089d29-6fa8-6a13-af59-99631cec7ab5",
      "name": "Regression Campaign",
      "type": "Enterprise",
      "status": "Paused",
      "startDate": "2025-09-10",
      "isPublished": true,
      "campaignData": {
        "id": "1f089d37-6145-6709-af59-99631cec7ab5",
        "createdTime": "2025-09-04T21:09:36.063Z",
        "updatedTime": "2025-09-04T21:09:36.063Z",
        "createdBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
        "updatedBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
        "campaignId": "1f089d37-5ebe-6778-af59-99631cec7ab5",
        "totalViews": 1250000,
        "totalClicks": 89000,
        "totalLikes": 12500,
        "totalCreators": 8750,
        "totalComments": 15600,
        "totalShares": 4200,
        "totalVideos": 12.5,
        "instagramViews": 750000,
        "instagramLikes": 500000,
        "instagramShares": 750000,
        "instagramComments": 500000,
        "tiktokViews": 750000,
        "tiktokLikes": 500000,
        "tiktokShares": 750000,
        "tiktokComments": 500000,
        "assetFolderLink": "https://drive.google.com/folder/campaign-assets",
        "rec1": "Campaign performed well with high engagement rates.\nHealth-focused creators are driving 34% higher engagement rates.",
        "rec2": "Consider partnering with more wellness influencers for upcoming campaigns.\nTikTok content featuring 'morning routine' themes shows 28% better performance than Instagram.",
        "rec3": "Optimize posting strategy around wellness routines."
      }
    }
  ],
  "cursor": "1f089d37-5ebe-6778-af59-99631cec7ab5",
  "hasMore": false
}

Authorizations

api-key
string
header
required

API Key authentication

Headers

x-workspace-id
string

Workspace ID to perform the operation in. If not provided, system will use the first one assigned to the user

Query Parameters

query
string

Search keyword to filter campaigns by name (case-insensitive)

Maximum length: 255
cursor
string

Pagination cursor for fetching the next set of results. Use the 'cursor' value from the previous response.

limit
integer

Number of campaigns to return per page (1-20, max 20)

Required range: 1 <= x <= 20
statusList
enum<string>[]

Filter campaigns by status. Multiple values allowed.

typeList
enum<string>[]

Filter campaigns by type. Multiple values allowed.

id
string

Filter by specific campaign ID

Response

Successfully retrieved campaigns

items
object[]
cursor
string
hasMore
boolean