AdMakeAI Agent API

tRPC API Documentation OpenAPI 3.1 spec

60
Total Endpoints
2
Public Endpoints
0 Queries • 2 Mutations
58
Protected Endpoints
39 Queries • 19 Mutations
Showing 60 of 60 endpoints

Upload

mutation
upload.uploadImageBase64
Auth
Authentication Required
Input Schema
TypeScript
{
  filename?: string
  contentType?: string
  base64Data: string
  imageHash?: string
  turnstileToken?: string
}
Test Endpoint
Optional fields (click to add):
filename contentType imageHash turnstileToken
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
upload.getUserImages
Auth
Authentication Required
Input Schema
TypeScript
{
  limit: number
  cursor?: string
}
Test Endpoint
Optional fields (click to add):
cursor
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

User

query
user.me
Auth
Authentication Required
Test Endpoint
query
user.getCredits
Auth
Authentication Required
Test Endpoint

AdGeneration

mutation
adGeneration.create
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId: string
  prompt: string
  adType: "product_showcase" | "promotional" | "testimonial" | "lifestyle" | "comparison" | "announcement"
  aspectRatio: "1:1" | "4:5" | "9:16" | "16:9"
  quality: "low" | "high" | "ultra"
  referenceImageUrls?: string[]
  inputImageId?: string
  referenceAdId?: string
  referenceInspirationId?: string
  adSetId?: string
}
Test Endpoint
Optional fields (click to add):
referenceImageUrls inputImageId referenceAdId referenceInspirationId adSetId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adGeneration.generateImage
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId: string
  prompt: string
  aspectRatio: "1:1" | "4:5" | "9:16" | "16:9"
  quality: "low" | "high" | "ultra"
  referenceImageUrls?: string[]
  inputImageId?: string
}
Test Endpoint
Optional fields (click to add):
referenceImageUrls inputImageId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adGeneration.edit
Auth
Authentication Required
Input Schema
TypeScript
{
  sourceAdId?: string
  sourceImageUrl?: string
  editInstructions: string
  aspectRatio?: "1:1" | "4:5" | "9:16" | "16:9"
  quality: "low" | "high" | "ultra"
  projectId?: string
}
Test Endpoint
Optional fields (click to add):
sourceAdId sourceImageUrl aspectRatio projectId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adGeneration.getById
Auth
Authentication Required
Input Schema
TypeScript
{
  id: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adGeneration.list
Auth
Authentication Required
Input Schema
TypeScript
{
  limit: number
  cursor?: string
}
Test Endpoint
Optional fields (click to add):
cursor
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adGeneration.searchAll
Auth
Authentication Required
Input Schema
TypeScript
{
  query: string
  limit: number
  cursor: number
  filter: "all" | "liked" | "downloaded" | "not_downloaded"
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adGeneration.toggleFavorite
Auth
Authentication Required
Input Schema
TypeScript
{
  id: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adGeneration.getRecent
Auth
Authentication Required
Input Schema
TypeScript
{
  limit: number
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adGeneration.listPending
Auth
Authentication Required
Input Schema
TypeScript
{
  adSetId?: string
}
Test Endpoint
Optional fields (click to add):
adSetId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

AdResearch

query
adResearch.getProject
Auth
Authentication Required
Input Schema
TypeScript
{
  id: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adResearch.listProjects
Auth
Authentication Required
Input Schema
TypeScript
{
  limit: number
  cursor?: string
}
Test Endpoint
Optional fields (click to add):
cursor
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adResearch.pollStatus
Auth
Authentication Required
Input Schema
TypeScript
{
  id: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adResearch.getScrapedAds
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId: string
  competitorId?: string
  mediaType?: "IMAGE" | "VIDEO" | "CAROUSEL" | "ALL"
  searchTerm?: string
  search?: string
  showIrrelevant: boolean
  sortBy: "relevance" | "newest" | "oldest" | "longest_running" | "popularity" | "recently_added"
  limit: number
  offset: number
}
Test Endpoint
Optional fields (click to add):
competitorId mediaType searchTerm search
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adResearch.getAdDetails
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId: string
  scrapedAdId: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adResearch.addCompetitors
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId: string
  competitors: Array<{
    name: string
    websiteUrl?: string
    type: "DIRECT" | "INDIRECT" | "ASPIRATIONAL"
  }>
  scrapeAds: boolean
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adResearch.scrapeCompetitor
Auth
Authentication Required
Input Schema
TypeScript
{
  competitorId: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adResearch.getCompetitorPreview
Auth
Authentication Required
Input Schema
TypeScript
{
  competitorId: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adResearch.saveInspiration
Auth
Authentication Required
Input Schema
TypeScript
{
  scrapedAdId: string
  projectId: string
  action: "COPY_DESIGN" | "TAKE_INSPIRATION" | "AI_GENERATE"
  userNotes?: string
}
Test Endpoint
Optional fields (click to add):
userNotes
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adResearch.getSavedInspirations
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId?: string
  limit: number
  offset: number
}
Test Endpoint
Optional fields (click to add):
projectId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adResearch.searchCompanies
Input Schema
TypeScript
{
  query: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adResearch.getCompanyAds
Input Schema
TypeScript
{
  pageId: string
  country: string
  cursor?: string
}
Test Endpoint
Optional fields (click to add):
cursor
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

VideoGeneration

mutation
videoGeneration.start
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId: string
  userInstructions?: string
  videoCount: number
  quality: "low" | "medium" | "high"
  engine?: "hosted" | "minimax"
  startingFrameUrl?: string
  generateStartingFrame: boolean
  referenceImageUrl?: string
}
Test Endpoint
Optional fields (click to add):
userInstructions engine startingFrameUrl referenceImageUrl
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
videoGeneration.getStatus
Auth
Authentication Required
Input Schema
TypeScript
{
  id: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
videoGeneration.list
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId?: string
  videoSetId?: string
  page: number
  perPage: number
  filter: "all" | "liked" | "downloaded"
}
Test Endpoint
Optional fields (click to add):
projectId videoSetId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
videoGeneration.listPending
Auth
Authentication Required
Input Schema
TypeScript
{
  videoSetId?: string
}
Test Endpoint
Optional fields (click to add):
videoSetId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

AdCopyGeneration

query
adCopyGeneration.getMessagingStyles
Auth
Authentication Required
Test Endpoint
mutation
adCopyGeneration.generate
Auth
Authentication Required
Input Schema
TypeScript
{
  imageUrl: string
  projectId?: string
  messagingStyle: "auto" | "clickbait" | "professional" | "controversial" | "oneliners" | "ugc" | "directResponse" | "storytelling"
  variationCount: number
  additionalInstructions?: string
}
Test Endpoint
Optional fields (click to add):
projectId additionalInstructions
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

AdSet

mutation
adSet.create
Auth
Authentication Required
Input Schema
TypeScript
{
  name?: string
  generalInstructions: string
  projectId: string
  adType: "product_showcase" | "promotional" | "testimonial" | "lifestyle" | "comparison" | "announcement"
  quality: "low" | "high" | "ultra"
  aspectRatio: "1:1" | "4:5" | "9:16" | "16:9"
  additionalImageUrls: string[]
  adCopyInstructions?: string
  adCopyMessagingStyle: "auto" | "clickbait" | "professional" | "controversial" | "oneliners" | "ugc" | "directResponse" | "storytelling"
}
Test Endpoint
Optional fields (click to add):
name adCopyInstructions
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adSet.get
Auth
Authentication Required
Input Schema
TypeScript
{
  id: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adSet.list
Auth
Authentication Required
Input Schema
TypeScript
{
  page: number
  perPage: number
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adSet.update
Auth
Authentication Required
Input Schema
TypeScript
{
  id: string
  name?: string
  generalInstructions?: string
  adType?: "product_showcase" | "promotional" | "testimonial" | "lifestyle" | "comparison" | "announcement"
  quality?: "low" | "high" | "ultra"
  aspectRatio?: "1:1" | "4:5" | "9:16" | "16:9"
  additionalImageUrls?: string[]
  adCopyInstructions?: string | null
  adCopyMessagingStyle?: "auto" | "clickbait" | "professional" | "controversial" | "oneliners" | "ugc" | "directResponse" | "storytelling"
}
Test Endpoint
Optional fields (click to add):
name generalInstructions adType quality aspectRatio additionalImageUrls adCopyInstructions adCopyMessagingStyle
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adSet.generateBatch
Auth
Authentication Required
Input Schema
TypeScript
{
  adSetId: string
  specificInstructions?: string
  count: "1" | "2" | "4" | "6" | "8" | "15"
  quality?: "low" | "high" | "ultra"
}
Test Endpoint
Optional fields (click to add):
specificInstructions quality
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
adSet.suggestDirections
Auth
Authentication Required
Input Schema
TypeScript
{
  adSetId: string
  exclude?: string[]
}
Test Endpoint
Optional fields (click to add):
exclude
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
adSet.getGenerations
Auth
Authentication Required
Input Schema
TypeScript
{
  adSetId: string
  page: number
  perPage: number
  filter: "all" | "liked" | "downloaded" | "not_downloaded"
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

Project

query
project.getAssets
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
project.createFirst
Auth
Authentication Required
Input Schema
TypeScript
{
  websiteUrl: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
project.updateBrief
Auth
Authentication Required
Input Schema
TypeScript
{
  projectId: string
  productSummary?: string
  targetAudience?: string
  valueProposition?: string
  industry?: string
  keywords?: string[]
}
Test Endpoint
Optional fields (click to add):
productSummary targetAudience valueProposition industry keywords
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

FacebookConnection

query
facebookConnection.list
Auth
Authentication Required
Test Endpoint

FacebookUpload

query
facebookUpload.getCampaigns
Auth
Authentication Required
Input Schema
TypeScript
{
  adAccountId: string
  refresh?: boolean
}
Test Endpoint
Optional fields (click to add):
refresh
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
facebookUpload.getAdSets
Auth
Authentication Required
Input Schema
TypeScript
{
  adAccountId: string
  fbCampaignId: string
  refresh?: boolean
}
Test Endpoint
Optional fields (click to add):
refresh
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
facebookUpload.runPreflight
Auth
Authentication Required
Input Schema
TypeScript
{
  adGenerationId: string
  copy: {
    primaryText: string
    headline?: string
    description?: string
    callToAction?: string
  }
  destinationUrl: string
  targetAdSetId: string
  declareAsAiGenerated?: boolean
}
Test Endpoint
Optional fields (click to add):
declareAsAiGenerated
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
facebookUpload.request
Auth
Authentication Required
Input Schema
TypeScript
{
  adGenerationId: string
  targetAdSetId: string
  targetPageId: string
  targetInstagramActorId?: string
  copy: {
    primaryText: string
    headline?: string
    description?: string
    callToAction: string
  }
  destinationUrl: string
  templateOverrides?: {
    campaign?: {
      objective?: "OUTCOME_AWARENESS" | "OUTCOME_TRAFFIC" | "OUTCOME_ENGAGEMENT" | "OUTCOME_LEADS" | "OUTCOME_APP_PROMOTION" | "OUTCOME_SALES"
      specialAdCategories?: string[]
      specialAdCategoryCountry?: string[]
      buyingType?: "AUCTION" | "RESERVED"
      bidStrategy?: "LOWEST_COST_WITHOUT_CAP" | "LOWEST_COST_WITH_BID_CAP" | "COST_CAP" | "LOWEST_COST_WITH_MIN_ROAS"
      dailyBudgetCents?: number
      lifetimeBudgetCents?: number
      spendCapCents?: number
      campaignOptimizationType?: "NONE" | "ICO_ONLY"
    }
    adSet?: {
      destinationType?: string
      optimizationGoal?: string
      billingEvent?: string
      bidAmountCents?: number
      bidConstraints?: {
        roasAverageFloor?: number
      }
      promotedObject?: {
        pixelId?: string
        customEventType?: string
        applicationId?: string
        pageId?: string
      }
      attributionSpec?: Array<{
        eventType: "CLICK_THROUGH" | "VIEW_THROUGH"
        windowDays: 1 | 7
      }>
      schedule?: {
        startTime?: string
        endTime?: string
        daypartingHours?: Array<{
          days: number[]
          startMinute: number
          endMinute: number
        }>
      }
      frequencyControl?: {
        event: "IMPRESSIONS"
        intervalDays: number
        maxFrequency: number
      }
      targeting?: {
        geoLocations?: {
          countries?: string[]
          cities?: any[]
          regions?: any[]
          zips?: any[]
        }
        excludedGeoLocations?: any
        ageMin?: number
        ageMax?: number
        genders?: number[]
        locales?: number[]
        flexibleSpec?: any[]
        exclusions?: any
        customAudiences?: Array<{
          id: string
        }>
        excludedCustomAudiences?: Array<{
          id: string
        }>
        publisherPlatforms?: string[]
        facebookPositions?: string[]
        instagramPositions?: string[]
        messengerPositions?: string[]
        audienceNetworkPositions?: string[]
        devicePlatforms?: string[]
      }
    }
    ad?: {
      pageId?: string
      instagramActorId?: string
      callToAction?: {
        type: string
        value: {
          link: string
        }
      }
      urlTagsTemplate?: string
    }
    account?: {
      defaultCurrency?: string
      defaultTimezoneId?: number
    }
    advantageDisables?: {
      audience?: boolean
      detailedTargeting?: boolean
      lookalikeExpansion?: boolean
      campaignBudget?: boolean
      placements?: boolean
      creativeStandardEnhancements?: boolean
      creativeTextGeneration?: boolean
      creativeMusic?: boolean
      creativeImageUncrop?: boolean
      multiAdvertiser?: boolean
    }
    preflightOverrides?: {
      skipPersonalAttributesCheck?: boolean
      declareAsAiGenerated?: boolean
    }
  }
  confirmedReadinessDismissals?: string[]
}
Test Endpoint
Optional fields (click to add):
targetInstagramActorId templateOverrides confirmedReadinessDismissals
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
facebookUpload.list
Auth
Authentication Required
Input Schema
TypeScript
{
  adAccountId?: string
  adGenerationId?: string
  uploadState?: "QUEUED" | "PREFLIGHT_FAILED" | "READINESS_FAILED" | "IMAGE_UPLOADING" | "IMAGE_UPLOAD_FAILED" | "CREATIVE_CREATING" | "CREATIVE_FAILED" | "AD_CREATING" | "AD_CREATE_FAILED" | "UPLOADED_PAUSED" | "META_REJECTED" | "USER_DELETED"
  search?: string
  limit: number
  cursor?: string
}
Test Endpoint
Optional fields (click to add):
adAccountId adGenerationId uploadState search cursor
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
facebookUpload.get
Auth
Authentication Required
Input Schema
TypeScript
{
  uploadedAdId: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

FacebookCampaignDraft

query
facebookCampaignDraft.getAgentDraft
Auth
Authentication Required
Input Schema
TypeScript
{
  draftId: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
facebookCampaignDraft.pushAgentDraft
Auth
Authentication Required
Input Schema
TypeScript
{
  draftId: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
facebookCampaignDraft.sourceAssets
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adAccountId: string
  platformAdIds?: string[]
  zernioAdIds?: string[]
}
Test Endpoint
Optional fields (click to add):
platformAdIds zernioAdIds
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
facebookCampaignDraft.pushDraftCampaign
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adAccountId: string
  pageId?: string
  campaign: {
    countries?: string[]
    ageMin?: number
    ageMax?: number
    gender?: "all" | "male" | "female"
    interests?: Array<{
      id: string
      name: string
    }>
    cities?: Record<string, any>[]
    regions?: Record<string, any>[]
    audienceId?: string
    attributionSpec?: Array<{
      eventType: string
      windowDays: number
    }>
    advantageAudience?: 0 | 1
    name: string
    goal: "engagement" | "traffic" | "awareness" | "video_views" | "lead_generation" | "conversions" | "app_promotion"
    budgetAmount?: number
    budgetType?: "daily" | "lifetime"
    currency?: string
    endDate?: string
    bidStrategy?: string
    bidAmount?: number
    roasAverageFloor?: number
    dsaBeneficiary?: string
    dsaPayor?: string
    promotedObject?: {
      pixelId?: string
      customEventType?: string
      pageId?: string
      applicationId?: string
      objectStoreUrl?: string
      customConversionId?: string
      productCatalogId?: string
      productSetId?: string
    }
  }
  adSets: Array<{
    countries?: string[]
    ageMin?: number
    ageMax?: number
    gender?: "all" | "male" | "female"
    interests?: Array<{
      id: string
      name: string
    }>
    cities?: Record<string, any>[]
    regions?: Record<string, any>[]
    audienceId?: string
    attributionSpec?: Array<{
      eventType: string
      windowDays: number
    }>
    advantageAudience?: 0 | 1
    id: string
    name: string
    goal?: "engagement" | "traffic" | "awareness" | "video_views" | "lead_generation" | "conversions" | "app_promotion"
    budgetAmount?: number
    budgetType?: "daily" | "lifetime"
    endDate?: string
    bidStrategy?: string
    bidAmount?: number
    roasAverageFloor?: number
    dsaBeneficiary?: string
    dsaPayor?: string
    promotedObject?: {
      pixelId?: string
      customEventType?: string
      pageId?: string
      applicationId?: string
      objectStoreUrl?: string
      customConversionId?: string
      productCatalogId?: string
      productSetId?: string
    }
    ads: Array<{
      id: string
      name?: string
      headlines: string[]
      primaryTexts: string[]
      descriptions?: string[]
      linkUrl: string
      callToAction: "LEARN_MORE" | "SHOP_NOW" | "SIGN_UP" | "BOOK_TRAVEL" | "CONTACT_US" | "DOWNLOAD" | "GET_OFFER" | "GET_QUOTE" | "SUBSCRIBE" | "WATCH_MORE" | "REGISTER" | "JOIN" | "ATTEND" | "REQUEST_DEMO" | "VIEW_QUOTE" | "APPLY" | "SEE_MORE" | "BUY_NOW"
      imageUrls: string[]
      video?: {
        url: string
        thumbnailUrl?: string
      }
    }>
  }>
}
Test Endpoint
Optional fields (click to add):
pageId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

ZernioAnalytics

query
zernioAnalytics.tree
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adAccountId?: string
  fromDate?: string
  toDate?: string
  status?: "active" | "paused" | "pending_review" | "rejected" | "completed" | "cancelled" | "error"
  sort?: "newest" | "oldest" | "spend_desc" | "spend_asc"
  page?: number
  limit?: number
}
Test Endpoint
Optional fields (click to add):
adAccountId fromDate toDate status sort page limit
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
zernioAnalytics.timeline
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adAccountId?: string
  fromDate?: string
  toDate?: string
}
Test Endpoint
Optional fields (click to add):
adAccountId fromDate toDate
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
zernioAnalytics.accountOverview
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adAccountId?: string
  datePreset?: "last_7_days" | "last_14_days" | "last_30_days" | "last_90_days" | "this_month" | "last_month"
  fromDate?: string
  toDate?: string
  compareToPrevious?: boolean
}
Test Endpoint
Optional fields (click to add):
adAccountId datePreset fromDate toDate compareToPrevious
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
zernioAnalytics.listCampaigns
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adAccountId?: string
  status?: "active" | "paused" | "pending_review" | "rejected" | "completed" | "cancelled" | "error"
  fromDate?: string
  toDate?: string
  page?: number
  limit?: number
  sort?: "newest" | "oldest" | "spend_desc" | "spend_asc"
}
Test Endpoint
Optional fields (click to add):
adAccountId status fromDate toDate page limit sort
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
zernioAnalytics.listAds
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adAccountId?: string
  campaignId?: string
  status?: "active" | "paused" | "pending_review" | "rejected" | "completed" | "cancelled" | "error"
  page?: number
  limit?: number
  sort?: "newest" | "oldest" | "spend_desc" | "spend_asc"
}
Test Endpoint
Optional fields (click to add):
adAccountId campaignId status page limit sort
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
zernioAnalytics.getAd
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adId: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
zernioAnalytics.getAdAnalytics
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adId: string
  fromDate?: string
  toDate?: string
  breakdowns?: string[]
}
Test Endpoint
Optional fields (click to add):
fromDate toDate breakdowns
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
zernioAnalytics.getAdComments
Auth
Authentication Required
Input Schema
TypeScript
{
  connectionId: string
  adId: string
  placement?: "facebook" | "instagram"
  limit?: number
  cursor?: string
}
Test Endpoint
Optional fields (click to add):
placement limit cursor
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.