Jepto API Documentation v54.5.6

Queries

analysisQuery

Returns an analysisQueryOutput

Name Description
accountId - String!
pipelineId - [String!]
query - AWSJSON!

Example

Query
query analysisQuery($accountId: String!, $pipelineId: [String!], $query: AWSJSON!) {
  analysisQuery(accountId: $accountId, pipelineId: $pipelineId, query: $query) {
    queryResult
  }
}
Variables
{
  "accountId": "abc123",
  "pipelineId": ["xyz789"],
  "query": AWSJSON
}
Response
{"data": {"analysisQuery": {"queryResult": AWSJSON}}}

countInsights

Returns an InsightsCount

Name Description
accountId - String!
clientId - String
isResolved - Boolean
nextToken - String
type - String

Example

Query
query countInsights($accountId: String!, $clientId: String, $isResolved: Boolean, $nextToken: String, $type: String) {
  countInsights(accountId: $accountId, clientId: $clientId, isResolved: $isResolved, nextToken: $nextToken, type: $type) {
    count
    text
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "isResolved": true,
  "nextToken": "abc123",
  "type": "xyz789"
}
Response
{"data": {"countInsights": {"count": 123, "text": "abc123"}}}

dropDownClients

Returns a ClientList

Name Description
accountId - ID!
count - Int
isArchived - Boolean
nextToken - String

Example

Query
query dropDownClients($accountId: ID!, $count: Int, $isArchived: Boolean, $nextToken: String) {
  dropDownClients(accountId: $accountId, count: $count, isArchived: $isArchived, nextToken: $nextToken) {
    items {
      ...ClientFragment
    }
    nextToken
  }
}
Variables
{
  "accountId": ID,
  "count": 123,
  "isArchived": true,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "dropDownClients": {
      "items": [Client],
      "nextToken": "xyz789"
    }
  }
}

dsGetBudgetDetails

Returns [Budget]

Name Description
accountId - String!
budgetId - String!
clientIds - [String]!
endDate - String
getHistorical - Boolean
lastEvaluatedKey - String
startDate - String

Example

Query
query dsGetBudgetDetails($accountId: String!, $budgetId: String!, $clientIds: [String]!, $endDate: String, $getHistorical: Boolean, $lastEvaluatedKey: String, $startDate: String) {
  dsGetBudgetDetails(accountId: $accountId, budgetId: $budgetId, clientIds: $clientIds, endDate: $endDate, getHistorical: $getHistorical, lastEvaluatedKey: $lastEvaluatedKey, startDate: $startDate) {
    accountId
    authEmail
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...BudgetConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    plannerData {
      ...plannerMapDetailsFragment
    }
    report {
      ...BudgetReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{
  "accountId": "abc123",
  "budgetId": "xyz789",
  "clientIds": ["xyz789"],
  "endDate": "xyz789",
  "getHistorical": false,
  "lastEvaluatedKey": "xyz789",
  "startDate": "xyz789"
}
Response
{
  "data": {
    "dsGetBudgetDetails": [
      {
        "accountId": "xyz789",
        "authEmail": "xyz789",
        "changeHistory": "xyz789",
        "client": Client,
        "clientId": "xyz789",
        "clientName": "abc123",
        "commentCount": 123,
        "comments": [Comment],
        "configuration": BudgetConfiguration,
        "connectionStatus": "abc123",
        "dateCreated": "abc123",
        "dateUpdated": "abc123",
        "history": AWSJSON,
        "isArchived": true,
        "isDeleted": false,
        "jobStatus": REPORT_STATUS,
        "jobType": "xyz789",
        "notifyConfig": NotifyConfig,
        "notifySchedEmail": "abc123",
        "notifySchedSlack": "abc123",
        "notifySchedWebhook": "xyz789",
        "plannerData": [plannerMapDetails],
        "report": BudgetReport,
        "revisions": 987,
        "schedEmail": "xyz789",
        "schedSlack": "abc123",
        "schedWebhook": "xyz789",
        "service": SERVICE,
        "sortKey": "xyz789",
        "title": "abc123",
        "user": User,
        "userId": "abc123",
        "watchList": ["abc123"],
        "webhookEvents": [WEBHOOK_ENUM],
        "webhookURL": "abc123"
      }
    ]
  }
}

dsGetKPIDetails

Returns [KPI]

Name Description
accountId - String!
clientIds - [String]!
endDate - String
getHistorical - Boolean
kpiId - String!
lastEvaluatedKey - String
startDate - String

Example

Query
query dsGetKPIDetails($accountId: String!, $clientIds: [String]!, $endDate: String, $getHistorical: Boolean, $kpiId: String!, $lastEvaluatedKey: String, $startDate: String) {
  dsGetKPIDetails(accountId: $accountId, clientIds: $clientIds, endDate: $endDate, getHistorical: $getHistorical, kpiId: $kpiId, lastEvaluatedKey: $lastEvaluatedKey, startDate: $startDate) {
    accountId
    advancedSettings
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...KPIConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    id
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    report {
      ...KPIReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{
  "accountId": "xyz789",
  "clientIds": ["abc123"],
  "endDate": "xyz789",
  "getHistorical": false,
  "kpiId": "abc123",
  "lastEvaluatedKey": "abc123",
  "startDate": "abc123"
}
Response
{
  "data": {
    "dsGetKPIDetails": [
      {
        "accountId": "abc123",
        "advancedSettings": AWSJSON,
        "changeHistory": "xyz789",
        "client": Client,
        "clientId": "xyz789",
        "clientName": "abc123",
        "commentCount": 987,
        "comments": [Comment],
        "configuration": KPIConfiguration,
        "connectionStatus": "xyz789",
        "dateCreated": "xyz789",
        "dateUpdated": "abc123",
        "history": AWSJSON,
        "id": "abc123",
        "isArchived": true,
        "isDeleted": true,
        "jobStatus": REPORT_STATUS,
        "jobType": "xyz789",
        "notifyConfig": NotifyConfig,
        "notifySchedEmail": "abc123",
        "notifySchedSlack": "abc123",
        "notifySchedWebhook": "xyz789",
        "report": KPIReport,
        "revisions": 123,
        "schedEmail": "xyz789",
        "schedSlack": "abc123",
        "schedWebhook": "abc123",
        "service": SERVICE,
        "sortKey": "abc123",
        "title": "xyz789",
        "user": User,
        "userId": "abc123",
        "watchList": ["xyz789"],
        "webhookEvents": [WEBHOOK_ENUM],
        "webhookURL": "abc123"
      }
    ]
  }
}

dsListCommentsUnderItem

Returns [Comment]

Name Description
accountId - String!
clientIds - [String]
endDate - String
itemKeys - [String]
startDate - String

Example

Query
query dsListCommentsUnderItem($accountId: String!, $clientIds: [String], $endDate: String, $itemKeys: [String], $startDate: String) {
  dsListCommentsUnderItem(accountId: $accountId, clientIds: $clientIds, endDate: $endDate, itemKeys: $itemKeys, startDate: $startDate) {
    accountId
    commentMethod
    commentTimestamp
    commentTo
    dateCreated
    dateUpdated
    deletedBy
    isDeleted
    mentionedUsers
    message
    revisions
    sortKey
    type
    updatedBy
    user {
      ...UserFragment
    }
    userId
  }
}
Variables
{
  "accountId": "xyz789",
  "clientIds": ["abc123"],
  "endDate": "xyz789",
  "itemKeys": ["abc123"],
  "startDate": "abc123"
}
Response
{
  "data": {
    "dsListCommentsUnderItem": [
      {
        "accountId": "xyz789",
        "commentMethod": CommentMethod,
        "commentTimestamp": "xyz789",
        "commentTo": "abc123",
        "dateCreated": "xyz789",
        "dateUpdated": "abc123",
        "deletedBy": "abc123",
        "isDeleted": false,
        "mentionedUsers": ["abc123"],
        "message": "xyz789",
        "revisions": 123,
        "sortKey": "abc123",
        "type": CommentType,
        "updatedBy": "xyz789",
        "user": User,
        "userId": "xyz789"
      }
    ]
  }
}

dsListInsightsUnderAccount

Returns an InsightsConnection

Name Description
accountId - String!
clientIds - [String]
endDate - String!
filters - [labelInput]
startDate - String!

Example

Query
query dsListInsightsUnderAccount($accountId: String!, $clientIds: [String], $endDate: String!, $filters: [labelInput], $startDate: String!) {
  dsListInsightsUnderAccount(accountId: $accountId, clientIds: $clientIds, endDate: $endDate, filters: $filters, startDate: $startDate) {
    count
    id
    items {
      ...InsightsFragment
    }
    nextToken
    scannedCount
  }
}
Variables
{
  "accountId": "xyz789",
  "clientIds": ["xyz789"],
  "endDate": "xyz789",
  "filters": [labelInput],
  "startDate": "xyz789"
}
Response
{
  "data": {
    "dsListInsightsUnderAccount": {
      "count": 987,
      "id": "xyz789",
      "items": [Insights],
      "nextToken": "abc123",
      "scannedCount": 123
    }
  }
}

getAccount

Returns an Account

Name Description
accountId - String!
sortKey - String!

Example

Query
query getAccount($accountId: String!, $sortKey: String!) {
  getAccount(accountId: $accountId, sortKey: $sortKey) {
    accountId
    accountType
    betaAccess
    clientId
    clientList
    cubeToken
    dateCreated
    dateUpdated
    domain
    hasCard
    inProgress
    logo
    name
    revisions
    sortKey
    status
    timezone
    totalAnomalies
    totalBudgets
    totalClients
    totalKpis
    transactionStatus
    weekStart
    zapierWebHook
  }
}
Variables
{"accountId": "abc123", "sortKey": "abc123"}
Response
{
  "data": {
    "getAccount": {
      "accountId": "abc123",
      "accountType": "abc123",
      "betaAccess": false,
      "clientId": "xyz789",
      "clientList": ["xyz789"],
      "cubeToken": "abc123",
      "dateCreated": "abc123",
      "dateUpdated": "xyz789",
      "domain": "abc123",
      "hasCard": false,
      "inProgress": false,
      "logo": "xyz789",
      "name": "xyz789",
      "revisions": 123,
      "sortKey": "xyz789",
      "status": "xyz789",
      "timezone": "xyz789",
      "totalAnomalies": 123,
      "totalBudgets": 123,
      "totalClients": 123,
      "totalKpis": 123,
      "transactionStatus": "abc123",
      "weekStart": "abc123",
      "zapierWebHook": AWSJSON
    }
  }
}

getAccountAddOns

Returns an AccountAddOns

Name Description
accountId - String!
addOnId - String!

Example

Query
query getAccountAddOns($accountId: String!, $addOnId: String!) {
  getAccountAddOns(accountId: $accountId, addOnId: $addOnId) {
    accountId
    addOnId
    details {
      ...AddOnPackFragment
    }
  }
}
Variables
{"accountId": "abc123", "addOnId": "xyz789"}
Response
{
  "data": {
    "getAccountAddOns": {
      "accountId": "abc123",
      "addOnId": "abc123",
      "details": [AddOnPack]
    }
  }
}

getAccountConnection

Returns an AccountConnection

Name Description
accountId - String!
sortKey - String!

Example

Query
query getAccountConnection($accountId: String!, $sortKey: String!) {
  getAccountConnection(accountId: $accountId, sortKey: $sortKey) {
    accountId
    authStatus
    clientList
    domain
    email
    isClientConnected
    isCompleted
    oauthType
    scopes
    sortKey
    teamId
    teamName
    url
    userId
    username
  }
}
Variables
{"accountId": "abc123", "sortKey": "abc123"}
Response
{
  "data": {
    "getAccountConnection": {
      "accountId": "xyz789",
      "authStatus": CONNECTION_STATUS,
      "clientList": ["xyz789"],
      "domain": "abc123",
      "email": "xyz789",
      "isClientConnected": true,
      "isCompleted": true,
      "oauthType": "xyz789",
      "scopes": ["abc123"],
      "sortKey": "xyz789",
      "teamId": "abc123",
      "teamName": "xyz789",
      "url": "abc123",
      "userId": "abc123",
      "username": "abc123"
    }
  }
}

getAccountInvoices

Returns an AccountInvoices

Name Description
accountId - String!

Example

Query
query getAccountInvoices($accountId: String!) {
  getAccountInvoices(accountId: $accountId) {
    accountId
    invoices {
      ...AccountInvoiceFragment
    }
  }
}
Variables
{"accountId": "abc123"}
Response
{
  "data": {
    "getAccountInvoices": {
      "accountId": "xyz789",
      "invoices": [AccountInvoice]
    }
  }
}

getAccountPreference

Returns an AccountPreference

Name Description
accountId - String

Example

Query
query getAccountPreference($accountId: String) {
  getAccountPreference(accountId: $accountId) {
    budgets {
      ...BudgetPreferenceFragment
    }
    dataWarehouse {
      ...DataWarehouseFragment
    }
    insights {
      ...InsightPreferenceFragment
    }
    kpis {
      ...KpiPreferenceFragment
    }
    revision
  }
}
Variables
{"accountId": "abc123"}
Response
{
  "data": {
    "getAccountPreference": {
      "budgets": BudgetPreference,
      "dataWarehouse": DataWarehouse,
      "insights": InsightPreference,
      "kpis": KpiPreference,
      "revision": 987
    }
  }
}

getAdsCampaignFilter

Returns [AdsCampaignFilter]

Name Description
input - AdsCampaignFilterInput

Example

Query
query getAdsCampaignFilter($input: AdsCampaignFilterInput) {
  getAdsCampaignFilter(input: $input) {
    id
    labels
    name
  }
}
Variables
{"input": AdsCampaignFilterInput}
Response
{
  "data": {
    "getAdsCampaignFilter": [
      {"id": "xyz789", "labels": ["abc123"], "name": "abc123"}
    ]
  }
}

getAdsLabelLists

Returns [AdsLabelList]

Name Description
accountId - String!
clientId - String!
refresh - Boolean!
source - AdsCampaignSource

Example

Query
query getAdsLabelLists($accountId: String!, $clientId: String!, $refresh: Boolean!, $source: AdsCampaignSource) {
  getAdsLabelLists(accountId: $accountId, clientId: $clientId, refresh: $refresh, source: $source) {
    backgroundColor
    description
    id
    name
    resourceName
  }
}
Variables
{
  "accountId": "abc123",
  "clientId": "xyz789",
  "refresh": true,
  "source": AdsCampaignSource
}
Response
{
  "data": {
    "getAdsLabelLists": [
      {
        "backgroundColor": "xyz789",
        "description": "xyz789",
        "id": "abc123",
        "name": "xyz789",
        "resourceName": "xyz789"
      }
    ]
  }
}

getAnomalyDetails

Returns an Anomaly

Name Description
accountId - String!
sortKey - String!

Example

Query
query getAnomalyDetails($accountId: String!, $sortKey: String!) {
  getAnomalyDetails(accountId: $accountId, sortKey: $sortKey) {
    accountId
    authId
    changeHistory
    clientId
    clientName
    commentCount
    configuration {
      ...AnomalyConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateLastInsightCreated
    dateLastRun
    dateUpdated
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    report {
      ...AnomalyReportFragment
    }
    revisions
    schedWebhook
    service
    sortKey
    title
    userId
    watchList
    webhookURL
  }
}
Variables
{"accountId": "xyz789", "sortKey": "abc123"}
Response
{
  "data": {
    "getAnomalyDetails": {
      "accountId": "xyz789",
      "authId": "abc123",
      "changeHistory": "abc123",
      "clientId": "abc123",
      "clientName": "abc123",
      "commentCount": 987,
      "configuration": AnomalyConfiguration,
      "connectionStatus": "xyz789",
      "dateCreated": "abc123",
      "dateLastInsightCreated": "xyz789",
      "dateLastRun": "xyz789",
      "dateUpdated": "abc123",
      "errorDetails": PipelineErrorDetails,
      "isArchived": false,
      "isDeleted": true,
      "jobStatus": ANOMALY_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": false,
      "notifyWebhook": true,
      "report": AnomalyReport,
      "revisions": 987,
      "schedWebhook": "abc123",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "xyz789",
      "userId": "xyz789",
      "watchList": ["abc123"],
      "webhookURL": "abc123"
    }
  }
}

getAnomalyPreviewReport

Returns an AnomalyPreviewResponse

Name Description
input - AnomalyPreviewConfigurationInput

Example

Query
query getAnomalyPreviewReport($input: AnomalyPreviewConfigurationInput) {
  getAnomalyPreviewReport(input: $input) {
    errorMessage
    executionArn
    id
    message
    report {
      ...AnomalyReportFragment
    }
    stage
    status
  }
}
Variables
{"input": AnomalyPreviewConfigurationInput}
Response
{
  "data": {
    "getAnomalyPreviewReport": {
      "errorMessage": AWSJSON,
      "executionArn": "xyz789",
      "id": ID,
      "message": "abc123",
      "report": AnomalyReport,
      "stage": AnomalyPreviewStage,
      "status": AnomalyPreviewStatus
    }
  }
}

getAutomationDetails

Returns an Automation

Name Description
accountId - String!
clientId - String
sortKey - String!

Example

Query
query getAutomationDetails($accountId: String!, $clientId: String, $sortKey: String!) {
  getAutomationDetails(accountId: $accountId, clientId: $clientId, sortKey: $sortKey) {
    accountId
    clientId
    clientName
    cognitoUserId
    configuration
    connectionStatus
    dateLastInsightCreated
    dateLastRun
    executionArn
    gmbLocationId
    isArchived
    isDeleted
    jobId
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    revisions
    service
    sortKey
    title
    webhookURL
  }
}
Variables
{"accountId": "abc123", "clientId": "abc123", "sortKey": "abc123"}
Response
{
  "data": {
    "getAutomationDetails": {
      "accountId": "abc123",
      "clientId": "xyz789",
      "clientName": "abc123",
      "cognitoUserId": "xyz789",
      "configuration": AWSJSON,
      "connectionStatus": "abc123",
      "dateLastInsightCreated": "xyz789",
      "dateLastRun": "abc123",
      "executionArn": "xyz789",
      "gmbLocationId": "abc123",
      "isArchived": true,
      "isDeleted": true,
      "jobId": "abc123",
      "jobStatus": ANOMALY_STATUS,
      "jobType": "xyz789",
      "notifyConfig": NotifyConfig,
      "notifyEmail": true,
      "notifySlack": true,
      "notifyWebhook": false,
      "revisions": 987,
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "xyz789",
      "webhookURL": "abc123"
    }
  }
}

getAutomationJobs

Returns [AutomationJob]

Example

Query
query getAutomationJobs {
  getAutomationJobs {
    id
    title
  }
}
Response
{"data": {"getAutomationJobs": [{"id": "xyz789", "title": "xyz789"}]}}

getBudgetDetails

Returns a Budget

Name Description
accountId - String!
sortKey - String!

Example

Query
query getBudgetDetails($accountId: String!, $sortKey: String!) {
  getBudgetDetails(accountId: $accountId, sortKey: $sortKey) {
    accountId
    authEmail
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...BudgetConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    plannerData {
      ...plannerMapDetailsFragment
    }
    report {
      ...BudgetReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"accountId": "abc123", "sortKey": "abc123"}
Response
{
  "data": {
    "getBudgetDetails": {
      "accountId": "xyz789",
      "authEmail": "xyz789",
      "changeHistory": "xyz789",
      "client": Client,
      "clientId": "abc123",
      "clientName": "xyz789",
      "commentCount": 123,
      "comments": [Comment],
      "configuration": BudgetConfiguration,
      "connectionStatus": "xyz789",
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "history": AWSJSON,
      "isArchived": false,
      "isDeleted": true,
      "jobStatus": REPORT_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "xyz789",
      "notifySchedSlack": "xyz789",
      "notifySchedWebhook": "xyz789",
      "plannerData": [plannerMapDetails],
      "report": BudgetReport,
      "revisions": 123,
      "schedEmail": "xyz789",
      "schedSlack": "abc123",
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "abc123",
      "user": User,
      "userId": "xyz789",
      "watchList": ["abc123"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "abc123"
    }
  }
}

getBudgetPreview

Returns a BudgetPreviewResponse

Name Description
input - BudgetPreviewInput

Example

Query
query getBudgetPreview($input: BudgetPreviewInput) {
  getBudgetPreview(input: $input) {
    errorMessage
    executionArn
    id
    message
    report {
      ...BudgetReportFragment
    }
    stage
    status
  }
}
Variables
{"input": BudgetPreviewInput}
Response
{
  "data": {
    "getBudgetPreview": {
      "errorMessage": AWSJSON,
      "executionArn": "xyz789",
      "id": ID,
      "message": "xyz789",
      "report": BudgetReport,
      "stage": PREVIEW_STAGE,
      "status": BudgetPreviewStatus
    }
  }
}

getBudgetPreviewReport

Returns a BudgetPreviewResponse

Name Description
input - BudgetPreviewConfigurationInput

Example

Query
query getBudgetPreviewReport($input: BudgetPreviewConfigurationInput) {
  getBudgetPreviewReport(input: $input) {
    errorMessage
    executionArn
    id
    message
    report {
      ...BudgetReportFragment
    }
    stage
    status
  }
}
Variables
{"input": BudgetPreviewConfigurationInput}
Response
{
  "data": {
    "getBudgetPreviewReport": {
      "errorMessage": AWSJSON,
      "executionArn": "xyz789",
      "id": ID,
      "message": "xyz789",
      "report": BudgetReport,
      "stage": PREVIEW_STAGE,
      "status": BudgetPreviewStatus
    }
  }
}

getBudgetSpreadsheetPreviewReport

Example

Query
query getBudgetSpreadsheetPreviewReport($input: BudgetSpreadsheetPreviewConfigurationInput) {
  getBudgetSpreadsheetPreviewReport(input: $input) {
    executionArn
    id
    jobStatus
    message
    report {
      ...BudgetReportFragment
    }
    stage
    status
  }
}
Variables
{"input": BudgetSpreadsheetPreviewConfigurationInput}
Response
{
  "data": {
    "getBudgetSpreadsheetPreviewReport": {
      "executionArn": "abc123",
      "id": ID,
      "jobStatus": REPORT_STATUS,
      "message": "xyz789",
      "report": BudgetReport,
      "stage": PREVIEW_STAGE,
      "status": BUDGET_PREVIEW_STATUS
    }
  }
}

getChangeHistory

Returns [ChangeHistory]

Name Description
accountId - String!
sortKey - String!

Example

Query
query getChangeHistory($accountId: String!, $sortKey: String!) {
  getChangeHistory(accountId: $accountId, sortKey: $sortKey) {
    changes
    timestamp
    userId
  }
}
Variables
{"accountId": "abc123", "sortKey": "abc123"}
Response
{
  "data": {
    "getChangeHistory": [
      {
        "changes": [AWSJSON],
        "timestamp": "xyz789",
        "userId": "abc123"
      }
    ]
  }
}

getClient

Returns a Client

Name Description
accountId - String!
clientId - String!
excludeInsight - [String]
isArchived - Boolean

Example

Query
query getClient($accountId: String!, $clientId: String!, $excludeInsight: [String], $isArchived: Boolean) {
  getClient(accountId: $accountId, clientId: $clientId, excludeInsight: $excludeInsight, isArchived: $isArchived) {
    Anomaly(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AnomalyConnectionFragment
    }
    Automation(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AutomationFragment
    }
    Budget(filters: $filters, isArchived: $isArchived) {
      ...BudgetConnectionFragment
    }
    Insight(exclude: $exclude, filters: $filters, isResolved: $isResolved, nextToken: $nextToken, type: $type) {
      ...InsightsConnectionFragment
    }
    KPI(filters: $filters, isArchived: $isArchived) {
      ...KPIConnectionFragment
    }
    accountConnectionStatus(authStatus: $authStatus, oauthType: $oauthType) {
      ...AccountConnectionFragment
    }
    accountId
    anomalyTotal
    automationTotal
    budgetTotal
    budgets {
      ...TotalBudgetStatusFragment
    }
    connectionStatus {
      ...ClientConnectionServicesStatusFragment
    }
    dateCreated
    dateUpdated
    domain
    facebookAds {
      ...FacebookAdsConnectionFragment
    }
    globalConnectionStatus
    googleAds {
      ...GoogleAdsFragment
    }
    googleAnalytics {
      ...GoogleAnalyticsFragment
    }
    googleAnalytics4 {
      ...googleAnalytics4Fragment
    }
    googleMyBusiness {
      ...GoogleMyBusinessFragment
    }
    googleSearchConsole {
      ...GoogleSearchConsoleFragment
    }
    id
    insightTotal
    instagramAds {
      ...InstagramAdsFragment
    }
    isArchived
    isDeleted
    kpiTotal
    kpis {
      ...TotalKPIStatusFragment
    }
    labels {
      ...LabelFragment
    }
    linkedInAds {
      ...linkedInAdsFragment
    }
    logo
    microsoftAds {
      ...microsoftAdsFragment
    }
    name
    revisions
    sortKey
    tiktokAds {
      ...tiktokAdsFragment
    }
    twitterAds {
      ...twitterAdsFragment
    }
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "excludeInsight": ["abc123"],
  "isArchived": false
}
Response
{
  "data": {
    "getClient": {
      "Anomaly": AnomalyConnection,
      "Automation": [Automation],
      "Budget": BudgetConnection,
      "Insight": InsightsConnection,
      "KPI": KPIConnection,
      "accountConnectionStatus": [AccountConnection],
      "accountId": "abc123",
      "anomalyTotal": 987,
      "automationTotal": 123,
      "budgetTotal": 123,
      "budgets": TotalBudgetStatus,
      "connectionStatus": ClientConnectionServicesStatus,
      "dateCreated": "abc123",
      "dateUpdated": "xyz789",
      "domain": "abc123",
      "facebookAds": FacebookAdsConnection,
      "globalConnectionStatus": GlobalConnectionStatusENUM,
      "googleAds": GoogleAds,
      "googleAnalytics": GoogleAnalytics,
      "googleAnalytics4": googleAnalytics4,
      "googleMyBusiness": GoogleMyBusiness,
      "googleSearchConsole": GoogleSearchConsole,
      "id": ID,
      "insightTotal": 987,
      "instagramAds": InstagramAds,
      "isArchived": true,
      "isDeleted": false,
      "kpiTotal": 123,
      "kpis": TotalKPIStatus,
      "labels": [Label],
      "linkedInAds": linkedInAds,
      "logo": "abc123",
      "microsoftAds": microsoftAds,
      "name": "abc123",
      "revisions": 987,
      "sortKey": "abc123",
      "tiktokAds": tiktokAds,
      "twitterAds": twitterAds
    }
  }
}

getClientConnection

Returns a ClientConnectionResponse

Name Description
accountId - String!
clientId - String!

Example

Query
query getClientConnection($accountId: String!, $clientId: String!) {
  getClientConnection(accountId: $accountId, clientId: $clientId) {
    accountId
    connectionStatus {
      ...ClientConnectionServicesStatusFragment
    }
    facebookAds {
      ...FacebookAdsConnectionFragment
    }
    googleAds {
      ...GoogleAdsFragment
    }
    googleAnalytics {
      ...GoogleAnalyticsFragment
    }
    googleAnalytics4 {
      ...googleAnalytics4Fragment
    }
    googleMyBusiness {
      ...GoogleMyBusinessFragment
    }
    googleSearchConsole {
      ...GoogleSearchConsoleFragment
    }
    instagramAds {
      ...InstagramAdsFragment
    }
    linkedInAds {
      ...linkedInAdsFragment
    }
    microsoftAds {
      ...microsoftAdsFragment
    }
    sortKey
    tiktokAds {
      ...tiktokAdsFragment
    }
    twitterAds {
      ...twitterAdsFragment
    }
  }
}
Variables
{"accountId": "abc123", "clientId": "xyz789"}
Response
{
  "data": {
    "getClientConnection": {
      "accountId": "xyz789",
      "connectionStatus": ClientConnectionServicesStatus,
      "facebookAds": FacebookAdsConnection,
      "googleAds": GoogleAds,
      "googleAnalytics": GoogleAnalytics,
      "googleAnalytics4": googleAnalytics4,
      "googleMyBusiness": GoogleMyBusiness,
      "googleSearchConsole": GoogleSearchConsole,
      "instagramAds": InstagramAds,
      "linkedInAds": linkedInAds,
      "microsoftAds": microsoftAds,
      "sortKey": "xyz789",
      "tiktokAds": tiktokAds,
      "twitterAds": twitterAds
    }
  }
}

getComment

Returns a Comment

Name Description
accountId - String!
sortKey - String!

Example

Query
query getComment($accountId: String!, $sortKey: String!) {
  getComment(accountId: $accountId, sortKey: $sortKey) {
    accountId
    commentMethod
    commentTimestamp
    commentTo
    dateCreated
    dateUpdated
    deletedBy
    isDeleted
    mentionedUsers
    message
    revisions
    sortKey
    type
    updatedBy
    user {
      ...UserFragment
    }
    userId
  }
}
Variables
{"accountId": "abc123", "sortKey": "abc123"}
Response
{
  "data": {
    "getComment": {
      "accountId": "xyz789",
      "commentMethod": CommentMethod,
      "commentTimestamp": "xyz789",
      "commentTo": "abc123",
      "dateCreated": "abc123",
      "dateUpdated": "abc123",
      "deletedBy": "abc123",
      "isDeleted": false,
      "mentionedUsers": ["xyz789"],
      "message": "abc123",
      "revisions": 123,
      "sortKey": "abc123",
      "type": CommentType,
      "updatedBy": "abc123",
      "user": User,
      "userId": "xyz789"
    }
  }
}

getDataAccessControl

Returns a DataAccessControl

Name Description
accountId - String!
sortKey - String

Example

Query
query getDataAccessControl($accountId: String!, $sortKey: String) {
  getDataAccessControl(accountId: $accountId, sortKey: $sortKey) {
    accessLevel
    accessRole
    accountId
    authEmail
    authId
    dateCreated
    dateUpdated
    invitedUser
    isDeleted
    projectId
    projectName
    provider
    revisions
    service
    sortKey
    status
    userId
  }
}
Variables
{"accountId": "xyz789", "sortKey": "xyz789"}
Response
{
  "data": {
    "getDataAccessControl": {
      "accessLevel": "xyz789",
      "accessRole": ["xyz789"],
      "accountId": "xyz789",
      "authEmail": "abc123",
      "authId": "xyz789",
      "dateCreated": "abc123",
      "dateUpdated": "abc123",
      "invitedUser": "xyz789",
      "isDeleted": false,
      "projectId": "xyz789",
      "projectName": "xyz789",
      "provider": ACCESS_CONTROL_PROVIDER,
      "revisions": 987,
      "service": SERVICE,
      "sortKey": "xyz789",
      "status": "abc123",
      "userId": "abc123"
    }
  }
}

getDataPipeLine

Returns a DataPipeLine

Name Description
accountId - String!
sortKey - String

Example

Query
query getDataPipeLine($accountId: String!, $sortKey: String) {
  getDataPipeLine(accountId: $accountId, sortKey: $sortKey) {
    accountId
    appliedExtensions {
      ...DataPipelineAppliedExtensionFragment
    }
    changeHistory
    configuration {
      ...DataPipeLineConfigurationFragment
    }
    creditUsed
    dateCreated
    dateLastSyncCompleted
    dateUpdated
    destination {
      ...DestinationFragment
    }
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    executionName
    extensionCount
    funnelTerms
    hasInitAnalysis
    isArchived
    isDeleted
    isTitleAutoGenerated
    jobType
    log {
      ...DataPipeLineLogFragment
    }
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyZapier
    report
    revisions
    sortKey
    source {
      ...DataSourceFragment
    }
    status
    title
    totalRowsLoaded
  }
}
Variables
{"accountId": "xyz789", "sortKey": "abc123"}
Response
{
  "data": {
    "getDataPipeLine": {
      "accountId": "xyz789",
      "appliedExtensions": [DataPipelineAppliedExtension],
      "changeHistory": "abc123",
      "configuration": DataPipeLineConfiguration,
      "creditUsed": 987,
      "dateCreated": "xyz789",
      "dateLastSyncCompleted": "abc123",
      "dateUpdated": "xyz789",
      "destination": Destination,
      "errorDetails": PipelineErrorDetails,
      "executionName": "xyz789",
      "extensionCount": 123,
      "funnelTerms": AWSJSON,
      "hasInitAnalysis": true,
      "isArchived": true,
      "isDeleted": true,
      "isTitleAutoGenerated": false,
      "jobType": "xyz789",
      "log": [DataPipeLineLog],
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": false,
      "notifyZapier": false,
      "report": AWSJSON,
      "revisions": 987,
      "sortKey": "xyz789",
      "source": DataSource,
      "status": "abc123",
      "title": "abc123",
      "totalRowsLoaded": 123
    }
  }
}

getExtension

Returns an Extension

Name Description
accountId - String!
id - String!

Example

Query
query getExtension($accountId: String!, $id: String!) {
  getExtension(accountId: $accountId, id: $id) {
    addOnId
    authorImage
    authorLink
    content
    extensionAuthor
    extensionImage
    extensionName
    funnelTerms
    id
    learnMore
    primaryImage
    service
    summary
    termsConditionLink
  }
}
Variables
{"accountId": "abc123", "id": "xyz789"}
Response
{
  "data": {
    "getExtension": {
      "addOnId": "abc123",
      "authorImage": "xyz789",
      "authorLink": "abc123",
      "content": "abc123",
      "extensionAuthor": "abc123",
      "extensionImage": "xyz789",
      "extensionName": "xyz789",
      "funnelTerms": AWSJSON,
      "id": "abc123",
      "learnMore": "xyz789",
      "primaryImage": "xyz789",
      "service": SERVICE,
      "summary": "xyz789",
      "termsConditionLink": "abc123"
    }
  }
}

getExtensionList

Returns [Extension]

Name Description
accountId - String!

Example

Query
query getExtensionList($accountId: String!) {
  getExtensionList(accountId: $accountId) {
    addOnId
    authorImage
    authorLink
    content
    extensionAuthor
    extensionImage
    extensionName
    funnelTerms
    id
    learnMore
    primaryImage
    service
    summary
    termsConditionLink
  }
}
Variables
{"accountId": "xyz789"}
Response
{
  "data": {
    "getExtensionList": [
      {
        "addOnId": "abc123",
        "authorImage": "abc123",
        "authorLink": "abc123",
        "content": "abc123",
        "extensionAuthor": "xyz789",
        "extensionImage": "abc123",
        "extensionName": "abc123",
        "funnelTerms": AWSJSON,
        "id": "abc123",
        "learnMore": "xyz789",
        "primaryImage": "abc123",
        "service": SERVICE,
        "summary": "xyz789",
        "termsConditionLink": "xyz789"
      }
    ]
  }
}

getGA4Properties

Returns [GA4Properties]

Name Description
accountId - String!
authId - String
email - String!
refresh - Boolean

Example

Query
query getGA4Properties($accountId: String!, $authId: String, $email: String!, $refresh: Boolean) {
  getGA4Properties(accountId: $accountId, authId: $authId, email: $email, refresh: $refresh) {
    accountId
    accountName
    properties {
      ...GA4PropertyFragment
    }
  }
}
Variables
{"accountId": "abc123", "authId": "xyz789", "email": "abc123", "refresh": true}
Response
{
  "data": {
    "getGA4Properties": [
      {
        "accountId": "xyz789",
        "accountName": "abc123",
        "properties": [GA4Property]
      }
    ]
  }
}

getGAdsFilter

Returns a GAdsFilter

Example

Query
query getGAdsFilter {
  getGAdsFilter {
    campaign {
      ...GAdsCampaignFragment
    }
    label {
      ...GAdsLabelFragment
    }
  }
}
Response
{
  "data": {
    "getGAdsFilter": {
      "campaign": GAdsCampaign,
      "label": GAdsLabel
    }
  }
}

getGAMetricLists

Returns a GAMetrics

Name Description
accountId - String!
clientId - String!
refresh - Boolean!
type - String!

Example

Query
query getGAMetricLists($accountId: String!, $clientId: String!, $refresh: Boolean!, $type: String!) {
  getGAMetricLists(accountId: $accountId, clientId: $clientId, refresh: $refresh, type: $type) {
    items {
      ...MetricsFragment
    }
  }
}
Variables
{"accountId": "xyz789", "clientId": "xyz789", "refresh": true, "type": "xyz789"}
Response
{"data": {"getGAMetricLists": {"items": [Metrics]}}}

getGASegmentLists

Returns a GASegments

Name Description
accountId - String!
clientId - String!
refresh - Boolean

Example

Query
query getGASegmentLists($accountId: String!, $clientId: String!, $refresh: Boolean) {
  getGASegmentLists(accountId: $accountId, clientId: $clientId, refresh: $refresh) {
    items {
      ...SegmentsFragment
    }
    status
    statusCode
  }
}
Variables
{"accountId": "xyz789", "clientId": "xyz789", "refresh": false}
Response
{
  "data": {
    "getGASegmentLists": {
      "items": [Segments],
      "status": "abc123",
      "statusCode": 123
    }
  }
}

getGmbAccountByEmail

Returns a GmbAccounts

Name Description
accountId - String!
authId - String
email - String

Example

Query
query getGmbAccountByEmail($accountId: String!, $authId: String, $email: String) {
  getGmbAccountByEmail(accountId: $accountId, authId: $authId, email: $email) {
    accountId
    items {
      ...GmbAccountFragment
    }
  }
}
Variables
{"accountId": "xyz789", "authId": "abc123", "email": "abc123"}
Response
{
  "data": {
    "getGmbAccountByEmail": {
      "accountId": "xyz789",
      "items": [GmbAccount]
    }
  }
}

getGmbEmails

Returns a GmbEmails

Name Description
accountId - String!

Example

Query
query getGmbEmails($accountId: String!) {
  getGmbEmails(accountId: $accountId) {
    accountId
    items {
      ...GmbEmailFragment
    }
  }
}
Variables
{"accountId": "xyz789"}
Response
{
  "data": {
    "getGmbEmails": {
      "accountId": "xyz789",
      "items": [GmbEmail]
    }
  }
}

getGmbLocationByAccount

Returns a GmbLocations

Name Description
accountId - String!
authId - String
gmbAccountId - String

Example

Query
query getGmbLocationByAccount($accountId: String!, $authId: String, $gmbAccountId: String) {
  getGmbLocationByAccount(accountId: $accountId, authId: $authId, gmbAccountId: $gmbAccountId) {
    accountId
    gmbAccountId
    items {
      ...GmbLocationFragment
    }
  }
}
Variables
{"accountId": "abc123", "authId": "xyz789", "gmbAccountId": "abc123"}
Response
{
  "data": {
    "getGmbLocationByAccount": {
      "accountId": "abc123",
      "gmbAccountId": "abc123",
      "items": [GmbLocation]
    }
  }
}

getGoogleAnalyticsProperties

Returns [GoogleAnalyticsProperties]

Name Description
accountId - String!
authId - String
email - String!
refresh - Boolean

Example

Query
query getGoogleAnalyticsProperties($accountId: String!, $authId: String, $email: String!, $refresh: Boolean) {
  getGoogleAnalyticsProperties(accountId: $accountId, authId: $authId, email: $email, refresh: $refresh) {
    accountId
    accountName
    properties {
      ...GoogleAnalyticsPropertyFragment
    }
  }
}
Variables
{"accountId": "xyz789", "authId": "abc123", "email": "xyz789", "refresh": true}
Response
{
  "data": {
    "getGoogleAnalyticsProperties": [
      {
        "accountId": "xyz789",
        "accountName": "xyz789",
        "properties": [GoogleAnalyticsProperty]
      }
    ]
  }
}

getGoogleDriveAccounts

Returns [GoogleDriveAccounts]

Name Description
accountId - String!
refresh - Boolean

Example

Query
query getGoogleDriveAccounts($accountId: String!, $refresh: Boolean) {
  getGoogleDriveAccounts(accountId: $accountId, refresh: $refresh) {
    accountId
    authId
    email
  }
}
Variables
{"accountId": "abc123", "refresh": false}
Response
{
  "data": {
    "getGoogleDriveAccounts": [
      {"accountId": "abc123", "authId": "xyz789", "email": "abc123"}
    ]
  }
}

getGoogleSearchConsoleProperties

Returns a GoogleSearchConsoleProperties

Name Description
accountId - String!
email - String!

Example

Query
query getGoogleSearchConsoleProperties($accountId: String!, $email: String!) {
  getGoogleSearchConsoleProperties(accountId: $accountId, email: $email) {
    domain {
      ...GoogleSearchConsolePropertyFragment
    }
    urlPrefix {
      ...GoogleSearchConsolePropertyFragment
    }
  }
}
Variables
{"accountId": "xyz789", "email": "abc123"}
Response
{
  "data": {
    "getGoogleSearchConsoleProperties": {
      "domain": [GoogleSearchConsoleProperty],
      "urlPrefix": [GoogleSearchConsoleProperty]
    }
  }
}

getGroupedLocations

Returns [LocationGroup]

Name Description
accountId - String!
authId - String!
email - String
refresh - Boolean
service - SERVICE

Example

Query
query getGroupedLocations($accountId: String!, $authId: String!, $email: String, $refresh: Boolean, $service: SERVICE) {
  getGroupedLocations(accountId: $accountId, authId: $authId, email: $email, refresh: $refresh, service: $service) {
    accountId
    accountName
    locations {
      ...LocationFragment
    }
  }
}
Variables
{
  "accountId": "abc123",
  "authId": "abc123",
  "email": "xyz789",
  "refresh": false,
  "service": SERVICE
}
Response
{
  "data": {
    "getGroupedLocations": [
      {
        "accountId": "xyz789",
        "accountName": "abc123",
        "locations": [Location]
      }
    ]
  }
}

getGscMetricMovement

Example

Query
query getGscMetricMovement {
  getGscMetricMovement {
    label
    value
  }
}
Response
{"data": {"getGscMetricMovement": [{"label": "xyz789", "value": "xyz789"}]}}

getInsightDetails

Returns an Insights

Name Description
accountId - String!
clientId - String!
feature - String
insightId - String!

Example

Query
query getInsightDetails($accountId: String!, $clientId: String!, $feature: String, $insightId: String!) {
  getInsightDetails(accountId: $accountId, clientId: $clientId, feature: $feature, insightId: $insightId) {
    accountId
    acknowledgeDateTime
    acknowledgedBy
    acknowledgedMethod
    chartImage
    clientId
    commentCount
    comments {
      ...InsightsCommentFragment
    }
    configuration {
      ...insightsConfigurationFragment
    }
    createdBy
    createdByJobType
    dateCreated
    dateUpdated
    description
    externalId
    fullReportUrl
    graphData {
      ...InsightsGraphFragment
    }
    insightRelatedCount
    isAcknowledged
    isArchived
    isDeleted
    isPartialReport
    isResolved
    jobIcon
    jobId
    jobStatus
    jobTitle
    jobType
    reference
    relatedCountOnCreation
    report
    resolveDateTime
    resolvedBy
    resolvedMethod
    revisions
    service
    slackMessage {
      ...SlackMessageFragment
    }
    sortKey
    summary
    title
    trigger
    watchList
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "feature": "xyz789",
  "insightId": "abc123"
}
Response
{
  "data": {
    "getInsightDetails": {
      "accountId": "abc123",
      "acknowledgeDateTime": "xyz789",
      "acknowledgedBy": ID,
      "acknowledgedMethod": INSIGHTS_METHOD,
      "chartImage": "xyz789",
      "clientId": "xyz789",
      "commentCount": 987,
      "comments": InsightsComment,
      "configuration": insightsConfiguration,
      "createdBy": "abc123",
      "createdByJobType": INSIGHTS_JOBTYPE,
      "dateCreated": "abc123",
      "dateUpdated": "abc123",
      "description": "xyz789",
      "externalId": "abc123",
      "fullReportUrl": "xyz789",
      "graphData": InsightsGraph,
      "insightRelatedCount": 123,
      "isAcknowledged": true,
      "isArchived": false,
      "isDeleted": true,
      "isPartialReport": false,
      "isResolved": true,
      "jobIcon": "abc123",
      "jobId": "xyz789",
      "jobStatus": "abc123",
      "jobTitle": "abc123",
      "jobType": "xyz789",
      "reference": 987,
      "relatedCountOnCreation": 123,
      "report": AWSJSON,
      "resolveDateTime": "abc123",
      "resolvedBy": ID,
      "resolvedMethod": INSIGHTS_METHOD,
      "revisions": 123,
      "service": SERVICE,
      "slackMessage": SlackMessage,
      "sortKey": "abc123",
      "summary": AWSJSON,
      "title": "xyz789",
      "trigger": "abc123",
      "watchList": ["abc123"]
    }
  }
}

getKPIAdsMetricLists

Returns a KPIAdsMetrics

Name Description
accountId - String
clientId - String
refresh - Boolean
source - AdsCampaignSource

Example

Query
query getKPIAdsMetricLists($accountId: String, $clientId: String, $refresh: Boolean, $source: AdsCampaignSource) {
  getKPIAdsMetricLists(accountId: $accountId, clientId: $clientId, refresh: $refresh, source: $source) {
    items {
      ...KPIMetricsFragment
    }
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "refresh": true,
  "source": AdsCampaignSource
}
Response
{
  "data": {
    "getKPIAdsMetricLists": {"items": [KPIMetrics]}
  }
}

getKPIAdsPreviewReport

Returns a KPIGAdsPreviewResponse

Name Description
input - KPIGAdsPreviewConfigurationInput

Example

Query
query getKPIAdsPreviewReport($input: KPIGAdsPreviewConfigurationInput) {
  getKPIAdsPreviewReport(input: $input) {
    executionArn
    id
    jobStatus
    message
    report {
      ...KPIGAdsReportFragment
    }
    stage
    status
  }
}
Variables
{"input": KPIGAdsPreviewConfigurationInput}
Response
{
  "data": {
    "getKPIAdsPreviewReport": {
      "executionArn": "abc123",
      "id": ID,
      "jobStatus": REPORT_STATUS,
      "message": "abc123",
      "report": KPIGAdsReport,
      "stage": PREVIEW_STAGE,
      "status": KPIPreviewStatus
    }
  }
}

getKPIDetails

Returns a KPI

Name Description
accountId - String!
sortKey - String!

Example

Query
query getKPIDetails($accountId: String!, $sortKey: String!) {
  getKPIDetails(accountId: $accountId, sortKey: $sortKey) {
    accountId
    advancedSettings
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...KPIConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    id
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    report {
      ...KPIReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"accountId": "xyz789", "sortKey": "xyz789"}
Response
{
  "data": {
    "getKPIDetails": {
      "accountId": "abc123",
      "advancedSettings": AWSJSON,
      "changeHistory": "xyz789",
      "client": Client,
      "clientId": "abc123",
      "clientName": "abc123",
      "commentCount": 987,
      "comments": [Comment],
      "configuration": KPIConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "history": AWSJSON,
      "id": "abc123",
      "isArchived": true,
      "isDeleted": false,
      "jobStatus": REPORT_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "xyz789",
      "notifySchedSlack": "xyz789",
      "notifySchedWebhook": "xyz789",
      "report": KPIReport,
      "revisions": 987,
      "schedEmail": "xyz789",
      "schedSlack": "xyz789",
      "schedWebhook": "abc123",
      "service": SERVICE,
      "sortKey": "xyz789",
      "title": "abc123",
      "user": User,
      "userId": "abc123",
      "watchList": ["abc123"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "xyz789"
    }
  }
}

getKPIPreviewReport

Returns a KPIPreviewResponse

Name Description
input - KPIPreviewConfigurationInput

Example

Query
query getKPIPreviewReport($input: KPIPreviewConfigurationInput) {
  getKPIPreviewReport(input: $input) {
    errorMessage
    executionArn
    id
    jobStatus
    message
    report {
      ...KPIReportFragment
    }
    stage
    status
  }
}
Variables
{"input": KPIPreviewConfigurationInput}
Response
{
  "data": {
    "getKPIPreviewReport": {
      "errorMessage": AWSJSON,
      "executionArn": "xyz789",
      "id": ID,
      "jobStatus": REPORT_STATUS,
      "message": "abc123",
      "report": KPIReport,
      "stage": PREVIEW_STAGE,
      "status": KPIPreviewStatus
    }
  }
}

getKPISpreadsheetPreviewReport

Example

Query
query getKPISpreadsheetPreviewReport($input: KPISpreadsheetPreviewConfigurationInput) {
  getKPISpreadsheetPreviewReport(input: $input) {
    executionArn
    id
    jobStatus
    message
    report {
      ...KPIGAdsReportFragment
    }
    stage
    status
  }
}
Variables
{"input": KPISpreadsheetPreviewConfigurationInput}
Response
{
  "data": {
    "getKPISpreadsheetPreviewReport": {
      "executionArn": "xyz789",
      "id": ID,
      "jobStatus": REPORT_STATUS,
      "message": "abc123",
      "report": KPIGAdsReport,
      "stage": PREVIEW_STAGE,
      "status": KPIPreviewStatus
    }
  }
}

getLabel

Returns an OutputLabel

Name Description
accountId - String!
sortKey - String!

Example

Query
query getLabel($accountId: String!, $sortKey: String!) {
  getLabel(accountId: $accountId, sortKey: $sortKey) {
    accountId
    clientList
    label
    revisions
    selected
    sortKey
  }
}
Variables
{"accountId": "xyz789", "sortKey": "xyz789"}
Response
{
  "data": {
    "getLabel": {
      "accountId": "abc123",
      "clientList": ["abc123"],
      "label": "abc123",
      "revisions": 987,
      "selected": false,
      "sortKey": "abc123"
    }
  }
}

getLabels

Returns [OutputLabel]

Name Description
accountId - String!

Example

Query
query getLabels($accountId: String!) {
  getLabels(accountId: $accountId) {
    accountId
    clientList
    label
    revisions
    selected
    sortKey
  }
}
Variables
{"accountId": "abc123"}
Response
{
  "data": {
    "getLabels": [
      {
        "accountId": "abc123",
        "clientList": ["xyz789"],
        "label": "xyz789",
        "revisions": 987,
        "selected": true,
        "sortKey": "abc123"
      }
    ]
  }
}

getLabelsForUser

Returns [OutputLabel]

Name Description
accountId - String!
cognitoUserId - String!

Example

Query
query getLabelsForUser($accountId: String!, $cognitoUserId: String!) {
  getLabelsForUser(accountId: $accountId, cognitoUserId: $cognitoUserId) {
    accountId
    clientList
    label
    revisions
    selected
    sortKey
  }
}
Variables
{"accountId": "abc123", "cognitoUserId": "xyz789"}
Response
{
  "data": {
    "getLabelsForUser": [
      {
        "accountId": "abc123",
        "clientList": ["xyz789"],
        "label": "xyz789",
        "revisions": 987,
        "selected": false,
        "sortKey": "xyz789"
      }
    ]
  }
}

getMetrics

Returns a KPIAdsMetrics

Name Description
accountId - String
clientId - String
refresh - Boolean
source - AdsCampaignSource

Example

Query
query getMetrics($accountId: String, $clientId: String, $refresh: Boolean, $source: AdsCampaignSource) {
  getMetrics(accountId: $accountId, clientId: $clientId, refresh: $refresh, source: $source) {
    items {
      ...KPIMetricsFragment
    }
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "refresh": false,
  "source": AdsCampaignSource
}
Response
{"data": {"getMetrics": {"items": [KPIMetrics]}}}

getPipelineExtension

Returns a PipelineExtension

Name Description
accountId - String!
extensionId - String!
pipelineId - String!

Example

Query
query getPipelineExtension($accountId: String!, $extensionId: String!, $pipelineId: String!) {
  getPipelineExtension(accountId: $accountId, extensionId: $extensionId, pipelineId: $pipelineId) {
    accountId
    extensionId
    pipelineId
    properties {
      ...PipelineExtensionPropertiesFragment
    }
  }
}
Variables
{"accountId": "abc123", "extensionId": "xyz789", "pipelineId": "xyz789"}
Response
{
  "data": {
    "getPipelineExtension": {
      "accountId": "xyz789",
      "extensionId": "abc123",
      "pipelineId": "xyz789",
      "properties": [PipelineExtensionProperties]
    }
  }
}

getRelatedInsights

Returns a SearchInsights

Name Description
accountId - String!
clientId - String!
createdBy - String!
feature - String!
isResolved - Boolean
nextToken - String
sortKey - String

Example

Query
query getRelatedInsights($accountId: String!, $clientId: String!, $createdBy: String!, $feature: String!, $isResolved: Boolean, $nextToken: String, $sortKey: String) {
  getRelatedInsights(accountId: $accountId, clientId: $clientId, createdBy: $createdBy, feature: $feature, isResolved: $isResolved, nextToken: $nextToken, sortKey: $sortKey) {
    active
    items {
      ...InsightsFragment
    }
    nextToken
    resolved
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "createdBy": "xyz789",
  "feature": "xyz789",
  "isResolved": true,
  "nextToken": "xyz789",
  "sortKey": "xyz789"
}
Response
{
  "data": {
    "getRelatedInsights": {
      "active": 987,
      "items": [Insights],
      "nextToken": "abc123",
      "resolved": 123
    }
  }
}

getSavedFilters

Returns [Label]

Name Description
accountId - String!
cognitoUserId - String!

Example

Query
query getSavedFilters($accountId: String!, $cognitoUserId: String!) {
  getSavedFilters(accountId: $accountId, cognitoUserId: $cognitoUserId) {
    id
    label
  }
}
Variables
{"accountId": "abc123", "cognitoUserId": "abc123"}
Response
{"data": {"getSavedFilters": [{"id": "abc123", "label": "abc123"}]}}

getSlackChannelList

Returns [SlackChannelList]

Name Description
accountId - String!
authId - String!
refresh - Boolean

Example

Query
query getSlackChannelList($accountId: String!, $authId: String!, $refresh: Boolean) {
  getSlackChannelList(accountId: $accountId, authId: $authId, refresh: $refresh) {
    id
    name
  }
}
Variables
{"accountId": "abc123", "authId": "abc123", "refresh": true}
Response
{"data": {"getSlackChannelList": [{"id": "xyz789", "name": "xyz789"}]}}

getSubscriptionInvoiceEstimate

Returns a SubscriptionInvoiceEstimate

Name Description
accountId - String!

Example

Query
query getSubscriptionInvoiceEstimate($accountId: String!) {
  getSubscriptionInvoiceEstimate(accountId: $accountId) {
    currency
    description
    inclusion {
      ...OutputInclusionFragment
    }
    lineItems {
      ...SubscriptionInvoiceEstimateItemFragment
    }
    total
  }
}
Variables
{"accountId": "abc123"}
Response
{
  "data": {
    "getSubscriptionInvoiceEstimate": {
      "currency": "abc123",
      "description": "abc123",
      "inclusion": [OutputInclusion],
      "lineItems": [SubscriptionInvoiceEstimateItem],
      "total": "xyz789"
    }
  }
}

getTimeZones

Returns a TimeZoneList

Name Description
partitionKey - String!

Example

Query
query getTimeZones($partitionKey: String!) {
  getTimeZones(partitionKey: $partitionKey) {
    enum
  }
}
Variables
{"partitionKey": "xyz789"}
Response
{"data": {"getTimeZones": {"enum": ["abc123"]}}}

getUpvotyJWT

Returns an UpvotyToken

Name Description
accountId - String!
email - String!
userId - String!

Example

Query
query getUpvotyJWT($accountId: String!, $email: String!, $userId: String!) {
  getUpvotyJWT(accountId: $accountId, email: $email, userId: $userId) {
    token
  }
}
Variables
{"accountId": "abc123", "email": "abc123", "userId": "xyz789"}
Response
{"data": {"getUpvotyJWT": {"token": "xyz789"}}}

getUserPreferences

Returns a UserPreferences

Name Description
accountId - String!
cognitoUserId - String!

Example

Query
query getUserPreferences($accountId: String!, $cognitoUserId: String!) {
  getUserPreferences(accountId: $accountId, cognitoUserId: $cognitoUserId) {
    accountId
    preferences {
      ...UserPreferencesOutputFragment
    }
    sortKey
  }
}
Variables
{"accountId": "abc123", "cognitoUserId": "xyz789"}
Response
{
  "data": {
    "getUserPreferences": {
      "accountId": "abc123",
      "preferences": UserPreferencesOutput,
      "sortKey": "xyz789"
    }
  }
}

getUsers

Returns a UserConnection

Name Description
accountId - String!
cognitoUserId - String!
nextToken - String

Example

Query
query getUsers($accountId: String!, $cognitoUserId: String!, $nextToken: String) {
  getUsers(accountId: $accountId, cognitoUserId: $cognitoUserId, nextToken: $nextToken) {
    items {
      ...UserFragment
    }
    nextToken
    scannedCount
  }
}
Variables
{"accountId": "abc123", "cognitoUserId": "abc123", "nextToken": "xyz789"}
Response
{
  "data": {
    "getUsers": {
      "items": [User],
      "nextToken": "xyz789",
      "scannedCount": 987
    }
  }
}

latestInsightsUnderAccount

Returns an InsightsConnection

Name Description
accountId - String!
clientId - String
filters - [labelInput]
isResolved - Boolean
type - String

Example

Query
query latestInsightsUnderAccount($accountId: String!, $clientId: String, $filters: [labelInput], $isResolved: Boolean, $type: String) {
  latestInsightsUnderAccount(accountId: $accountId, clientId: $clientId, filters: $filters, isResolved: $isResolved, type: $type) {
    count
    id
    items {
      ...InsightsFragment
    }
    nextToken
    scannedCount
  }
}
Variables
{
  "accountId": "abc123",
  "clientId": "abc123",
  "filters": [labelInput],
  "isResolved": true,
  "type": "xyz789"
}
Response
{
  "data": {
    "latestInsightsUnderAccount": {
      "count": 123,
      "id": "abc123",
      "items": [Insights],
      "nextToken": "xyz789",
      "scannedCount": 987
    }
  }
}

latestInsightsUnderClient

Returns an InsightsConnection

Name Description
accountId - String!
clientId - String!
isResolved - Boolean
jobId - String
type - String

Example

Query
query latestInsightsUnderClient($accountId: String!, $clientId: String!, $isResolved: Boolean, $jobId: String, $type: String) {
  latestInsightsUnderClient(accountId: $accountId, clientId: $clientId, isResolved: $isResolved, jobId: $jobId, type: $type) {
    count
    id
    items {
      ...InsightsFragment
    }
    nextToken
    scannedCount
  }
}
Variables
{
  "accountId": "abc123",
  "clientId": "xyz789",
  "isResolved": true,
  "jobId": "xyz789",
  "type": "xyz789"
}
Response
{
  "data": {
    "latestInsightsUnderClient": {
      "count": 123,
      "id": "xyz789",
      "items": [Insights],
      "nextToken": "abc123",
      "scannedCount": 123
    }
  }
}

listAccountConnections

Returns an AccountConnectionItems

Name Description
accountId - String!

Example

Query
query listAccountConnections($accountId: String!) {
  listAccountConnections(accountId: $accountId) {
    items {
      ...AccountConnectionFragment
    }
    nextToken
    scannedCount
  }
}
Variables
{"accountId": "xyz789"}
Response
{
  "data": {
    "listAccountConnections": {
      "items": [AccountConnection],
      "nextToken": "xyz789",
      "scannedCount": 123
    }
  }
}

listAdsCampaigns

Returns [AdsCampaigns]

Name Description
accountId - String!
clientId - String!
refresh - Boolean!
source - AdsCampaignSource

Example

Query
query listAdsCampaigns($accountId: String!, $clientId: String!, $refresh: Boolean!, $source: AdsCampaignSource) {
  listAdsCampaigns(accountId: $accountId, clientId: $clientId, refresh: $refresh, source: $source) {
    advertisingChannelType
    baseCampaign
    campaignBudget
    endDate
    id
    name
    servingStatus
    startDate
    status
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "refresh": false,
  "source": AdsCampaignSource
}
Response
{
  "data": {
    "listAdsCampaigns": [
      {
        "advertisingChannelType": "abc123",
        "baseCampaign": "abc123",
        "campaignBudget": "abc123",
        "endDate": "xyz789",
        "id": "xyz789",
        "name": "xyz789",
        "servingStatus": "xyz789",
        "startDate": "xyz789",
        "status": "abc123"
      }
    ]
  }
}

listAllClients

Returns a Clients

Name Description
accountId - ID!
count - Int
isArchived - Boolean
nextToken - String

Example

Query
query listAllClients($accountId: ID!, $count: Int, $isArchived: Boolean, $nextToken: String) {
  listAllClients(accountId: $accountId, count: $count, isArchived: $isArchived, nextToken: $nextToken) {
    count
    isClientSubscriptionValid
    isNearSubscriptionLimit
    items {
      ...ClientFragment
    }
    nextToken
    totalAnomaliesUnderAccount
    totalBudgetsUnderAccount
    totalKPISUnderAccount
  }
}
Variables
{
  "accountId": ID,
  "count": 987,
  "isArchived": false,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listAllClients": {
      "count": 123,
      "isClientSubscriptionValid": false,
      "isNearSubscriptionLimit": false,
      "items": [Client],
      "nextToken": "abc123",
      "totalAnomaliesUnderAccount": 987,
      "totalBudgetsUnderAccount": 123,
      "totalKPISUnderAccount": 987
    }
  }
}

listAnomalyUnderAccount

Returns an AnomalyConnection

Name Description
accountId - String!
count - Int
filters - [labelInput]
isArchived - Boolean!
nextToken - String

Example

Query
query listAnomalyUnderAccount($accountId: String!, $count: Int, $filters: [labelInput], $isArchived: Boolean!, $nextToken: String) {
  listAnomalyUnderAccount(accountId: $accountId, count: $count, filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
    count
    currentAccountSubscriptionValue
    isNearSubscriptionLimit
    items {
      ...AnomalyFragment
    }
    nextToken
    scannedCount
    totalSubscription
  }
}
Variables
{
  "accountId": "xyz789",
  "count": 987,
  "filters": [labelInput],
  "isArchived": true,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "listAnomalyUnderAccount": {
      "count": 987,
      "currentAccountSubscriptionValue": 123,
      "isNearSubscriptionLimit": true,
      "items": [Anomaly],
      "nextToken": "xyz789",
      "scannedCount": 987,
      "totalSubscription": 987
    }
  }
}

listAnomalyUnderClient

Returns an AnomalyConnection

Name Description
accountId - String!
clientId - String!
count - Int
isArchived - Boolean!
nextToken - String

Example

Query
query listAnomalyUnderClient($accountId: String!, $clientId: String!, $count: Int, $isArchived: Boolean!, $nextToken: String) {
  listAnomalyUnderClient(accountId: $accountId, clientId: $clientId, count: $count, isArchived: $isArchived, nextToken: $nextToken) {
    count
    currentAccountSubscriptionValue
    isNearSubscriptionLimit
    items {
      ...AnomalyFragment
    }
    nextToken
    scannedCount
    totalSubscription
  }
}
Variables
{
  "accountId": "abc123",
  "clientId": "xyz789",
  "count": 987,
  "isArchived": false,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listAnomalyUnderClient": {
      "count": 123,
      "currentAccountSubscriptionValue": 987,
      "isNearSubscriptionLimit": true,
      "items": [Anomaly],
      "nextToken": "abc123",
      "scannedCount": 123,
      "totalSubscription": 123
    }
  }
}

listAutomationUnderAccount

Returns [Automation]

Name Description
accountId - String!
count - Int
filters - [labelInput]
isArchived - Boolean!
nextToken - String

Example

Query
query listAutomationUnderAccount($accountId: String!, $count: Int, $filters: [labelInput], $isArchived: Boolean!, $nextToken: String) {
  listAutomationUnderAccount(accountId: $accountId, count: $count, filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
    accountId
    clientId
    clientName
    cognitoUserId
    configuration
    connectionStatus
    dateLastInsightCreated
    dateLastRun
    executionArn
    gmbLocationId
    isArchived
    isDeleted
    jobId
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    revisions
    service
    sortKey
    title
    webhookURL
  }
}
Variables
{
  "accountId": "abc123",
  "count": 123,
  "filters": [labelInput],
  "isArchived": false,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listAutomationUnderAccount": [
      {
        "accountId": "xyz789",
        "clientId": "abc123",
        "clientName": "abc123",
        "cognitoUserId": "xyz789",
        "configuration": AWSJSON,
        "connectionStatus": "xyz789",
        "dateLastInsightCreated": "xyz789",
        "dateLastRun": "abc123",
        "executionArn": "abc123",
        "gmbLocationId": "xyz789",
        "isArchived": true,
        "isDeleted": true,
        "jobId": "abc123",
        "jobStatus": ANOMALY_STATUS,
        "jobType": "xyz789",
        "notifyConfig": NotifyConfig,
        "notifyEmail": true,
        "notifySlack": true,
        "notifyWebhook": false,
        "revisions": 123,
        "service": SERVICE,
        "sortKey": "xyz789",
        "title": "xyz789",
        "webhookURL": "xyz789"
      }
    ]
  }
}

listAutomationUnderClient

Returns [Automation]

Name Description
accountId - String!
clientId - String!
count - Int
isArchived - Boolean!
nextToken - String

Example

Query
query listAutomationUnderClient($accountId: String!, $clientId: String!, $count: Int, $isArchived: Boolean!, $nextToken: String) {
  listAutomationUnderClient(accountId: $accountId, clientId: $clientId, count: $count, isArchived: $isArchived, nextToken: $nextToken) {
    accountId
    clientId
    clientName
    cognitoUserId
    configuration
    connectionStatus
    dateLastInsightCreated
    dateLastRun
    executionArn
    gmbLocationId
    isArchived
    isDeleted
    jobId
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    revisions
    service
    sortKey
    title
    webhookURL
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "abc123",
  "count": 123,
  "isArchived": false,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "listAutomationUnderClient": [
      {
        "accountId": "abc123",
        "clientId": "xyz789",
        "clientName": "abc123",
        "cognitoUserId": "abc123",
        "configuration": AWSJSON,
        "connectionStatus": "xyz789",
        "dateLastInsightCreated": "xyz789",
        "dateLastRun": "abc123",
        "executionArn": "xyz789",
        "gmbLocationId": "abc123",
        "isArchived": false,
        "isDeleted": true,
        "jobId": "abc123",
        "jobStatus": ANOMALY_STATUS,
        "jobType": "xyz789",
        "notifyConfig": NotifyConfig,
        "notifyEmail": true,
        "notifySlack": true,
        "notifyWebhook": false,
        "revisions": 987,
        "service": SERVICE,
        "sortKey": "abc123",
        "title": "abc123",
        "webhookURL": "xyz789"
      }
    ]
  }
}

listBudgetUnderAccount

Returns a BudgetConnection

Name Description
accountId - String!
clientId - String
count - Int
filters - [labelInput]
isArchived - Boolean!
jobStatus - String
nextToken - String
service - String

Example

Query
query listBudgetUnderAccount($accountId: String!, $clientId: String, $count: Int, $filters: [labelInput], $isArchived: Boolean!, $jobStatus: String, $nextToken: String, $service: String) {
  listBudgetUnderAccount(accountId: $accountId, clientId: $clientId, count: $count, filters: $filters, isArchived: $isArchived, jobStatus: $jobStatus, nextToken: $nextToken, service: $service) {
    count
    currentAccountSubscriptionValue
    isNearSubscriptionLimit
    items {
      ...BudgetFragment
    }
    nextToken
    scannedCount
    totalSubscription
  }
}
Variables
{
  "accountId": "abc123",
  "clientId": "xyz789",
  "count": 987,
  "filters": [labelInput],
  "isArchived": true,
  "jobStatus": "xyz789",
  "nextToken": "abc123",
  "service": "xyz789"
}
Response
{
  "data": {
    "listBudgetUnderAccount": {
      "count": 123,
      "currentAccountSubscriptionValue": 123,
      "isNearSubscriptionLimit": true,
      "items": [Budget],
      "nextToken": "xyz789",
      "scannedCount": 123,
      "totalSubscription": 123
    }
  }
}

listBudgetUnderClient

Returns a BudgetConnection

Name Description
accountId - String!
clientId - String!
count - Int
isArchived - Boolean!
jobStatus - String
nextToken - String
service - String

Example

Query
query listBudgetUnderClient($accountId: String!, $clientId: String!, $count: Int, $isArchived: Boolean!, $jobStatus: String, $nextToken: String, $service: String) {
  listBudgetUnderClient(accountId: $accountId, clientId: $clientId, count: $count, isArchived: $isArchived, jobStatus: $jobStatus, nextToken: $nextToken, service: $service) {
    count
    currentAccountSubscriptionValue
    isNearSubscriptionLimit
    items {
      ...BudgetFragment
    }
    nextToken
    scannedCount
    totalSubscription
  }
}
Variables
{
  "accountId": "abc123",
  "clientId": "abc123",
  "count": 987,
  "isArchived": false,
  "jobStatus": "xyz789",
  "nextToken": "abc123",
  "service": "xyz789"
}
Response
{
  "data": {
    "listBudgetUnderClient": {
      "count": 987,
      "currentAccountSubscriptionValue": 123,
      "isNearSubscriptionLimit": true,
      "items": [Budget],
      "nextToken": "xyz789",
      "scannedCount": 987,
      "totalSubscription": 987
    }
  }
}

listClients

Returns a Clients

Name Description
accountId - ID!
count - Int
filters - [labelInput]
isArchived - Boolean
nextToken - String

Example

Query
query listClients($accountId: ID!, $count: Int, $filters: [labelInput], $isArchived: Boolean, $nextToken: String) {
  listClients(accountId: $accountId, count: $count, filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
    count
    isClientSubscriptionValid
    isNearSubscriptionLimit
    items {
      ...ClientFragment
    }
    nextToken
    totalAnomaliesUnderAccount
    totalBudgetsUnderAccount
    totalKPISUnderAccount
  }
}
Variables
{
  "accountId": ID,
  "count": 987,
  "filters": [labelInput],
  "isArchived": false,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listClients": {
      "count": 123,
      "isClientSubscriptionValid": true,
      "isNearSubscriptionLimit": true,
      "items": [Client],
      "nextToken": "abc123",
      "totalAnomaliesUnderAccount": 123,
      "totalBudgetsUnderAccount": 123,
      "totalKPISUnderAccount": 123
    }
  }
}

listClientsForLabel

Returns [ClientsForLabel]

Name Description
accountId - String!
labelId - String!

Example

Query
query listClientsForLabel($accountId: String!, $labelId: String!) {
  listClientsForLabel(accountId: $accountId, labelId: $labelId) {
    accountId
    hasLabel
    name
    sortKey
  }
}
Variables
{"accountId": "xyz789", "labelId": "xyz789"}
Response
{
  "data": {
    "listClientsForLabel": [
      {
        "accountId": "abc123",
        "hasLabel": true,
        "name": "xyz789",
        "sortKey": "xyz789"
      }
    ]
  }
}

listComments

Returns [Comment]

Name Description
input - ListCommentInput

Example

Query
query listComments($input: ListCommentInput) {
  listComments(input: $input) {
    accountId
    commentMethod
    commentTimestamp
    commentTo
    dateCreated
    dateUpdated
    deletedBy
    isDeleted
    mentionedUsers
    message
    revisions
    sortKey
    type
    updatedBy
    user {
      ...UserFragment
    }
    userId
  }
}
Variables
{"input": ListCommentInput}
Response
{
  "data": {
    "listComments": [
      {
        "accountId": "xyz789",
        "commentMethod": CommentMethod,
        "commentTimestamp": "xyz789",
        "commentTo": "xyz789",
        "dateCreated": "xyz789",
        "dateUpdated": "abc123",
        "deletedBy": "xyz789",
        "isDeleted": true,
        "mentionedUsers": ["abc123"],
        "message": "xyz789",
        "revisions": 987,
        "sortKey": "xyz789",
        "type": CommentType,
        "updatedBy": "xyz789",
        "user": User,
        "userId": "xyz789"
      }
    ]
  }
}

listDataAccessControls

Returns a DataAccessControls

Name Description
accountId - String!
cognitoUserId - String
nextToken - String

Example

Query
query listDataAccessControls($accountId: String!, $cognitoUserId: String, $nextToken: String) {
  listDataAccessControls(accountId: $accountId, cognitoUserId: $cognitoUserId, nextToken: $nextToken) {
    items {
      ...DataAccessControlFragment
    }
    nextToken
  }
}
Variables
{"accountId": "xyz789", "cognitoUserId": "abc123", "nextToken": "xyz789"}
Response
{
  "data": {
    "listDataAccessControls": {
      "items": [DataAccessControl],
      "nextToken": "xyz789"
    }
  }
}

listDataPipelineProjects

Returns a DataPipelineProjects

Name Description
accountId - String!
cognitoUserId - String
destination - DESTINATION!
email - String
nextToken - String

Example

Query
query listDataPipelineProjects($accountId: String!, $cognitoUserId: String, $destination: DESTINATION!, $email: String, $nextToken: String) {
  listDataPipelineProjects(accountId: $accountId, cognitoUserId: $cognitoUserId, destination: $destination, email: $email, nextToken: $nextToken) {
    items {
      ...DataPipelineProjectFragment
    }
    nextToken
  }
}
Variables
{
  "accountId": "abc123",
  "cognitoUserId": "abc123",
  "destination": DESTINATION,
  "email": "xyz789",
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listDataPipelineProjects": {
      "items": [DataPipelineProject],
      "nextToken": "xyz789"
    }
  }
}

listDataPipeLines

Returns a DataPipeLines

Name Description
accountId - String!
cognitoUserId - String
isArchived - Boolean
nextToken - String
sourceType - SOURCE_TYPE

Example

Query
query listDataPipeLines($accountId: String!, $cognitoUserId: String, $isArchived: Boolean, $nextToken: String, $sourceType: SOURCE_TYPE) {
  listDataPipeLines(accountId: $accountId, cognitoUserId: $cognitoUserId, isArchived: $isArchived, nextToken: $nextToken, sourceType: $sourceType) {
    items {
      ...DataPipeLineFragment
    }
    nextToken
  }
}
Variables
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "isArchived": true,
  "nextToken": "xyz789",
  "sourceType": SOURCE_TYPE
}
Response
{
  "data": {
    "listDataPipeLines": {
      "items": [DataPipeLine],
      "nextToken": "xyz789"
    }
  }
}

listDrivesByAccount

Returns a DrivesByAccount

Name Description
accountId - String!
authId - String!
refresh - Boolean

Example

Query
query listDrivesByAccount($accountId: String!, $authId: String!, $refresh: Boolean) {
  listDrivesByAccount(accountId: $accountId, authId: $authId, refresh: $refresh) {
    accountId
    authId
    email
    items {
      ...ItemDrivesByAccountFragment
    }
  }
}
Variables
{"accountId": "abc123", "authId": "xyz789", "refresh": true}
Response
{
  "data": {
    "listDrivesByAccount": {
      "accountId": "xyz789",
      "authId": "abc123",
      "email": "abc123",
      "items": [ItemDrivesByAccount]
    }
  }
}

listFacebookAdsAccounts

Returns a FacebookAdsAccounts

Name Description
accountId - String!
authId - String
refresh - Boolean

Example

Query
query listFacebookAdsAccounts($accountId: String!, $authId: String, $refresh: Boolean) {
  listFacebookAdsAccounts(accountId: $accountId, authId: $authId, refresh: $refresh) {
    items {
      ...FacebookAdsFragment
    }
  }
}
Variables
{"accountId": "xyz789", "authId": "xyz789", "refresh": false}
Response
{
  "data": {
    "listFacebookAdsAccounts": {"items": [FacebookAds]}
  }
}

listFacebookAdsCampaigns

Returns [FacebookCampaigns]

Name Description
accountId - String!
clientId - String!
refresh - Boolean!

Example

Query
query listFacebookAdsCampaigns($accountId: String!, $clientId: String!, $refresh: Boolean!) {
  listFacebookAdsCampaigns(accountId: $accountId, clientId: $clientId, refresh: $refresh) {
    id
    name
    status
  }
}
Variables
{"accountId": "xyz789", "clientId": "xyz789", "refresh": false}
Response
{
  "data": {
    "listFacebookAdsCampaigns": [
      {"id": "xyz789", "name": "xyz789", "status": "xyz789"}
    ]
  }
}

listGcpProjects

Returns [GcpProject]

Name Description
accountId - String!
authId - String!
refresh - Boolean

Example

Query
query listGcpProjects($accountId: String!, $authId: String!, $refresh: Boolean) {
  listGcpProjects(accountId: $accountId, authId: $authId, refresh: $refresh) {
    id
    name
  }
}
Variables
{"accountId": "abc123", "authId": "xyz789", "refresh": true}
Response
{"data": {"listGcpProjects": [{"id": "abc123", "name": "xyz789"}]}}

listGoogleAdsAccounts

Returns a GoogleAdsAccounts

Name Description
accountId - String!
authId - String
email - String!
refresh - Boolean

Example

Query
query listGoogleAdsAccounts($accountId: String!, $authId: String, $email: String!, $refresh: Boolean) {
  listGoogleAdsAccounts(accountId: $accountId, authId: $authId, email: $email, refresh: $refresh) {
    items {
      ...GoogleAdsMccAccountFragment
    }
  }
}
Variables
{"accountId": "xyz789", "authId": "xyz789", "email": "abc123", "refresh": true}
Response
{
  "data": {
    "listGoogleAdsAccounts": {
      "items": [GoogleAdsMccAccount]
    }
  }
}

listInsightsUnderAccount

Returns an InsightsConnection

Name Description
accountId - String!
clientId - String
count - Int
exclude - [String]
filters - [labelInput]
isResolved - Boolean
nextToken - String
type - String

Example

Query
query listInsightsUnderAccount($accountId: String!, $clientId: String, $count: Int, $exclude: [String], $filters: [labelInput], $isResolved: Boolean, $nextToken: String, $type: String) {
  listInsightsUnderAccount(accountId: $accountId, clientId: $clientId, count: $count, exclude: $exclude, filters: $filters, isResolved: $isResolved, nextToken: $nextToken, type: $type) {
    count
    id
    items {
      ...InsightsFragment
    }
    nextToken
    scannedCount
  }
}
Variables
{
  "accountId": "abc123",
  "clientId": "xyz789",
  "count": 123,
  "exclude": ["abc123"],
  "filters": [labelInput],
  "isResolved": false,
  "nextToken": "abc123",
  "type": "xyz789"
}
Response
{
  "data": {
    "listInsightsUnderAccount": {
      "count": 123,
      "id": "abc123",
      "items": [Insights],
      "nextToken": "xyz789",
      "scannedCount": 987
    }
  }
}

listInsightsUnderClient

Returns an InsightsConnection

Name Description
accountId - String!
clientId - String!
count - Int
exclude - [String]
isResolved - Boolean
jobId - String
nextToken - String
type - String!

Example

Query
query listInsightsUnderClient($accountId: String!, $clientId: String!, $count: Int, $exclude: [String], $isResolved: Boolean, $jobId: String, $nextToken: String, $type: String!) {
  listInsightsUnderClient(accountId: $accountId, clientId: $clientId, count: $count, exclude: $exclude, isResolved: $isResolved, jobId: $jobId, nextToken: $nextToken, type: $type) {
    count
    id
    items {
      ...InsightsFragment
    }
    nextToken
    scannedCount
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "count": 987,
  "exclude": ["xyz789"],
  "isResolved": false,
  "jobId": "xyz789",
  "nextToken": "abc123",
  "type": "abc123"
}
Response
{
  "data": {
    "listInsightsUnderClient": {
      "count": 987,
      "id": "abc123",
      "items": [Insights],
      "nextToken": "xyz789",
      "scannedCount": 123
    }
  }
}

listKPIUnderAccount

Returns a KPIConnection

Name Description
accountId - String!
clientId - String
count - Int
filters - [labelInput]
isArchived - Boolean!
jobStatus - String
nextToken - String
service - String

Example

Query
query listKPIUnderAccount($accountId: String!, $clientId: String, $count: Int, $filters: [labelInput], $isArchived: Boolean!, $jobStatus: String, $nextToken: String, $service: String) {
  listKPIUnderAccount(accountId: $accountId, clientId: $clientId, count: $count, filters: $filters, isArchived: $isArchived, jobStatus: $jobStatus, nextToken: $nextToken, service: $service) {
    items {
      ...KPIFragment
    }
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "abc123",
  "count": 123,
  "filters": [labelInput],
  "isArchived": false,
  "jobStatus": "xyz789",
  "nextToken": "xyz789",
  "service": "abc123"
}
Response
{"data": {"listKPIUnderAccount": {"items": [KPI]}}}

listKPIUnderClient

Returns a KPIConnection

Name Description
accountId - String!
clientId - String!
count - Int
isArchived - Boolean!
jobStatus - String
nextToken - String
service - String

Example

Query
query listKPIUnderClient($accountId: String!, $clientId: String!, $count: Int, $isArchived: Boolean!, $jobStatus: String, $nextToken: String, $service: String) {
  listKPIUnderClient(accountId: $accountId, clientId: $clientId, count: $count, isArchived: $isArchived, jobStatus: $jobStatus, nextToken: $nextToken, service: $service) {
    items {
      ...KPIFragment
    }
  }
}
Variables
{
  "accountId": "abc123",
  "clientId": "xyz789",
  "count": 987,
  "isArchived": true,
  "jobStatus": "xyz789",
  "nextToken": "xyz789",
  "service": "abc123"
}
Response
{"data": {"listKPIUnderClient": {"items": [KPI]}}}

listLabelsForclient

Returns [OutputLabel]

Name Description
accountId - String!
clientId - String!

Example

Query
query listLabelsForclient($accountId: String!, $clientId: String!) {
  listLabelsForclient(accountId: $accountId, clientId: $clientId) {
    accountId
    clientList
    label
    revisions
    selected
    sortKey
  }
}
Variables
{"accountId": "xyz789", "clientId": "abc123"}
Response
{
  "data": {
    "listLabelsForclient": [
      {
        "accountId": "xyz789",
        "clientList": ["xyz789"],
        "label": "abc123",
        "revisions": 123,
        "selected": true,
        "sortKey": "abc123"
      }
    ]
  }
}

listLinkedInAdsAccounts

Returns a LinkedInAdsAccounts

Name Description
accountId - String!
authId - String
email - String!
refresh - Boolean

Example

Query
query listLinkedInAdsAccounts($accountId: String!, $authId: String, $email: String!, $refresh: Boolean) {
  listLinkedInAdsAccounts(accountId: $accountId, authId: $authId, email: $email, refresh: $refresh) {
    items {
      ...GenericAdsAccountFragment
    }
  }
}
Variables
{"accountId": "abc123", "authId": "abc123", "email": "abc123", "refresh": false}
Response
{
  "data": {
    "listLinkedInAdsAccounts": {
      "items": [GenericAdsAccount]
    }
  }
}

listMicrosoftAdsAccounts

Returns a MicrosoftAdsAccounts

Name Description
accountId - String!
authId - String!
refresh - Boolean

Example

Query
query listMicrosoftAdsAccounts($accountId: String!, $authId: String!, $refresh: Boolean) {
  listMicrosoftAdsAccounts(accountId: $accountId, authId: $authId, refresh: $refresh) {
    items {
      ...MicrosoftAdsAccountFragment
    }
  }
}
Variables
{"accountId": "xyz789", "authId": "xyz789", "refresh": true}
Response
{
  "data": {
    "listMicrosoftAdsAccounts": {
      "items": [MicrosoftAdsAccount]
    }
  }
}

listSpreadsheetsByDrive

Returns a SpreadsheetByDriveId

Name Description
accountId - String!
authId - String!
driveId - String!
refresh - Boolean

Example

Query
query listSpreadsheetsByDrive($accountId: String!, $authId: String!, $driveId: String!, $refresh: Boolean) {
  listSpreadsheetsByDrive(accountId: $accountId, authId: $authId, driveId: $driveId, refresh: $refresh) {
    accountId
    driveId
    items {
      ...SpreadsheetsFragment
    }
  }
}
Variables
{
  "accountId": "xyz789",
  "authId": "abc123",
  "driveId": "xyz789",
  "refresh": true
}
Response
{
  "data": {
    "listSpreadsheetsByDrive": {
      "accountId": "abc123",
      "driveId": "xyz789",
      "items": [Spreadsheets]
    }
  }
}

listTiktokAdsAccounts

Returns a TiktokAdsAccounts

Name Description
accountId - String!
authId - String
email - String!
refresh - Boolean

Example

Query
query listTiktokAdsAccounts($accountId: String!, $authId: String, $email: String!, $refresh: Boolean) {
  listTiktokAdsAccounts(accountId: $accountId, authId: $authId, email: $email, refresh: $refresh) {
    items {
      ...GenericAdsAccountFragment
    }
  }
}
Variables
{"accountId": "abc123", "authId": "abc123", "email": "xyz789", "refresh": false}
Response
{
  "data": {
    "listTiktokAdsAccounts": {
      "items": [GenericAdsAccount]
    }
  }
}

listTwitterAdsAccounts

Returns a TwitterAdsAccounts

Name Description
accountId - String!
authId - String
email - String!
refresh - Boolean

Example

Query
query listTwitterAdsAccounts($accountId: String!, $authId: String, $email: String!, $refresh: Boolean) {
  listTwitterAdsAccounts(accountId: $accountId, authId: $authId, email: $email, refresh: $refresh) {
    items {
      ...TwitterAccountsFragment
    }
  }
}
Variables
{"accountId": "abc123", "authId": "abc123", "email": "abc123", "refresh": false}
Response
{
  "data": {
    "listTwitterAdsAccounts": {"items": [TwitterAccounts]}
  }
}

listWorksheetBySpreadsheetId

Returns a WorksheetsBySpreadsheetId

Name Description
accountId - String!
authId - String!
refresh - Boolean
spreadsheetId - String!

Example

Query
query listWorksheetBySpreadsheetId($accountId: String!, $authId: String!, $refresh: Boolean, $spreadsheetId: String!) {
  listWorksheetBySpreadsheetId(accountId: $accountId, authId: $authId, refresh: $refresh, spreadsheetId: $spreadsheetId) {
    accountId
    items {
      ...WorksheetsFragment
    }
    spreadsheetId
  }
}
Variables
{
  "accountId": "xyz789",
  "authId": "abc123",
  "refresh": false,
  "spreadsheetId": "abc123"
}
Response
{
  "data": {
    "listWorksheetBySpreadsheetId": {
      "accountId": "xyz789",
      "items": [Worksheets],
      "spreadsheetId": "abc123"
    }
  }
}

searchClient

Returns a Clients

Name Description
accountId - String
search - String!

Example

Query
query searchClient($accountId: String, $search: String!) {
  searchClient(accountId: $accountId, search: $search) {
    count
    isClientSubscriptionValid
    isNearSubscriptionLimit
    items {
      ...ClientFragment
    }
    nextToken
    totalAnomaliesUnderAccount
    totalBudgetsUnderAccount
    totalKPISUnderAccount
  }
}
Variables
{"accountId": "xyz789", "search": "abc123"}
Response
{
  "data": {
    "searchClient": {
      "count": 987,
      "isClientSubscriptionValid": true,
      "isNearSubscriptionLimit": false,
      "items": [Client],
      "nextToken": "abc123",
      "totalAnomaliesUnderAccount": 123,
      "totalBudgetsUnderAccount": 987,
      "totalKPISUnderAccount": 987
    }
  }
}

searchInsightByExternalId

Returns a SearchInsights

Name Description
accountId - String!
externalId - String!

Example

Query
query searchInsightByExternalId($accountId: String!, $externalId: String!) {
  searchInsightByExternalId(accountId: $accountId, externalId: $externalId) {
    active
    items {
      ...InsightsFragment
    }
    nextToken
    resolved
  }
}
Variables
{"accountId": "abc123", "externalId": "abc123"}
Response
{
  "data": {
    "searchInsightByExternalId": {
      "active": 123,
      "items": [Insights],
      "nextToken": "abc123",
      "resolved": 123
    }
  }
}

searchInsightByInsightId

Returns an Insights

Name Description
accountId - String!
clientId - String!
insightId - String!
jobType - INSIGHTS_JOBTYPE!

Example

Query
query searchInsightByInsightId($accountId: String!, $clientId: String!, $insightId: String!, $jobType: INSIGHTS_JOBTYPE!) {
  searchInsightByInsightId(accountId: $accountId, clientId: $clientId, insightId: $insightId, jobType: $jobType) {
    accountId
    acknowledgeDateTime
    acknowledgedBy
    acknowledgedMethod
    chartImage
    clientId
    commentCount
    comments {
      ...InsightsCommentFragment
    }
    configuration {
      ...insightsConfigurationFragment
    }
    createdBy
    createdByJobType
    dateCreated
    dateUpdated
    description
    externalId
    fullReportUrl
    graphData {
      ...InsightsGraphFragment
    }
    insightRelatedCount
    isAcknowledged
    isArchived
    isDeleted
    isPartialReport
    isResolved
    jobIcon
    jobId
    jobStatus
    jobTitle
    jobType
    reference
    relatedCountOnCreation
    report
    resolveDateTime
    resolvedBy
    resolvedMethod
    revisions
    service
    slackMessage {
      ...SlackMessageFragment
    }
    sortKey
    summary
    title
    trigger
    watchList
  }
}
Variables
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "insightId": "xyz789",
  "jobType": INSIGHTS_JOBTYPE
}
Response
{
  "data": {
    "searchInsightByInsightId": {
      "accountId": "abc123",
      "acknowledgeDateTime": "abc123",
      "acknowledgedBy": ID,
      "acknowledgedMethod": INSIGHTS_METHOD,
      "chartImage": "xyz789",
      "clientId": "abc123",
      "commentCount": 123,
      "comments": InsightsComment,
      "configuration": insightsConfiguration,
      "createdBy": "abc123",
      "createdByJobType": INSIGHTS_JOBTYPE,
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "description": "abc123",
      "externalId": "xyz789",
      "fullReportUrl": "xyz789",
      "graphData": InsightsGraph,
      "insightRelatedCount": 987,
      "isAcknowledged": true,
      "isArchived": true,
      "isDeleted": true,
      "isPartialReport": false,
      "isResolved": true,
      "jobIcon": "abc123",
      "jobId": "xyz789",
      "jobStatus": "abc123",
      "jobTitle": "xyz789",
      "jobType": "xyz789",
      "reference": 123,
      "relatedCountOnCreation": 987,
      "report": AWSJSON,
      "resolveDateTime": "xyz789",
      "resolvedBy": ID,
      "resolvedMethod": INSIGHTS_METHOD,
      "revisions": 123,
      "service": SERVICE,
      "slackMessage": SlackMessage,
      "sortKey": "xyz789",
      "summary": AWSJSON,
      "title": "xyz789",
      "trigger": "xyz789",
      "watchList": ["xyz789"]
    }
  }
}

Mutations

accountConnectionCreate

Returns an AccountConnection

Name Description
input - AccountConnectionCreateInput

Example

Query
mutation accountConnectionCreate($input: AccountConnectionCreateInput) {
  accountConnectionCreate(input: $input) {
    accountId
    authStatus
    clientList
    domain
    email
    isClientConnected
    isCompleted
    oauthType
    scopes
    sortKey
    teamId
    teamName
    url
    userId
    username
  }
}
Variables
{"input": AccountConnectionCreateInput}
Response
{
  "data": {
    "accountConnectionCreate": {
      "accountId": "abc123",
      "authStatus": CONNECTION_STATUS,
      "clientList": ["abc123"],
      "domain": "abc123",
      "email": "xyz789",
      "isClientConnected": true,
      "isCompleted": false,
      "oauthType": "abc123",
      "scopes": ["xyz789"],
      "sortKey": "xyz789",
      "teamId": "abc123",
      "teamName": "abc123",
      "url": "abc123",
      "userId": "abc123",
      "username": "xyz789"
    }
  }
}

accountConnectionDelete

Returns an AccountConnectionDeleteResponse

Name Description
accountId - String!
cognitoUserId - String
sortKey - String!

Example

Query
mutation accountConnectionDelete($accountId: String!, $cognitoUserId: String, $sortKey: String!) {
  accountConnectionDelete(accountId: $accountId, cognitoUserId: $cognitoUserId, sortKey: $sortKey) {
    accountId
    sortKey
  }
}
Variables
{"accountId": "xyz789", "cognitoUserId": "abc123", "sortKey": "xyz789"}
Response
{
  "data": {
    "accountConnectionDelete": {"accountId": "xyz789", "sortKey": "abc123"}
  }
}

accountSignUp

Returns an Account

Name Description
input - AccountSignUpInput

Example

Query
mutation accountSignUp($input: AccountSignUpInput) {
  accountSignUp(input: $input) {
    accountId
    accountType
    betaAccess
    clientId
    clientList
    cubeToken
    dateCreated
    dateUpdated
    domain
    hasCard
    inProgress
    logo
    name
    revisions
    sortKey
    status
    timezone
    totalAnomalies
    totalBudgets
    totalClients
    totalKpis
    transactionStatus
    weekStart
    zapierWebHook
  }
}
Variables
{"input": AccountSignUpInput}
Response
{
  "data": {
    "accountSignUp": {
      "accountId": "xyz789",
      "accountType": "xyz789",
      "betaAccess": false,
      "clientId": "abc123",
      "clientList": ["abc123"],
      "cubeToken": "abc123",
      "dateCreated": "abc123",
      "dateUpdated": "abc123",
      "domain": "abc123",
      "hasCard": false,
      "inProgress": false,
      "logo": "abc123",
      "name": "xyz789",
      "revisions": 987,
      "sortKey": "xyz789",
      "status": "abc123",
      "timezone": "xyz789",
      "totalAnomalies": 987,
      "totalBudgets": 123,
      "totalClients": 123,
      "totalKpis": 123,
      "transactionStatus": "xyz789",
      "weekStart": "xyz789",
      "zapierWebHook": AWSJSON
    }
  }
}

accountUpload

Returns an AccountUploadResponse

Name Description
input - AccountUploadInput

Example

Query
mutation accountUpload($input: AccountUploadInput) {
  accountUpload(input: $input) {
    accountId
    url
  }
}
Variables
{"input": AccountUploadInput}
Response
{"data": {"accountUpload": {"accountId": "xyz789", "url": "xyz789"}}}

acknowledgeInsight

Returns an Insights

Name Description
input - inputAcknowledgeInsight

Example

Query
mutation acknowledgeInsight($input: inputAcknowledgeInsight) {
  acknowledgeInsight(input: $input) {
    accountId
    acknowledgeDateTime
    acknowledgedBy
    acknowledgedMethod
    chartImage
    clientId
    commentCount
    comments {
      ...InsightsCommentFragment
    }
    configuration {
      ...insightsConfigurationFragment
    }
    createdBy
    createdByJobType
    dateCreated
    dateUpdated
    description
    externalId
    fullReportUrl
    graphData {
      ...InsightsGraphFragment
    }
    insightRelatedCount
    isAcknowledged
    isArchived
    isDeleted
    isPartialReport
    isResolved
    jobIcon
    jobId
    jobStatus
    jobTitle
    jobType
    reference
    relatedCountOnCreation
    report
    resolveDateTime
    resolvedBy
    resolvedMethod
    revisions
    service
    slackMessage {
      ...SlackMessageFragment
    }
    sortKey
    summary
    title
    trigger
    watchList
  }
}
Variables
{"input": inputAcknowledgeInsight}
Response
{
  "data": {
    "acknowledgeInsight": {
      "accountId": "xyz789",
      "acknowledgeDateTime": "xyz789",
      "acknowledgedBy": ID,
      "acknowledgedMethod": INSIGHTS_METHOD,
      "chartImage": "abc123",
      "clientId": "xyz789",
      "commentCount": 123,
      "comments": InsightsComment,
      "configuration": insightsConfiguration,
      "createdBy": "xyz789",
      "createdByJobType": INSIGHTS_JOBTYPE,
      "dateCreated": "abc123",
      "dateUpdated": "xyz789",
      "description": "xyz789",
      "externalId": "abc123",
      "fullReportUrl": "xyz789",
      "graphData": InsightsGraph,
      "insightRelatedCount": 987,
      "isAcknowledged": true,
      "isArchived": true,
      "isDeleted": true,
      "isPartialReport": true,
      "isResolved": true,
      "jobIcon": "xyz789",
      "jobId": "abc123",
      "jobStatus": "xyz789",
      "jobTitle": "abc123",
      "jobType": "xyz789",
      "reference": 123,
      "relatedCountOnCreation": 987,
      "report": AWSJSON,
      "resolveDateTime": "xyz789",
      "resolvedBy": ID,
      "resolvedMethod": INSIGHTS_METHOD,
      "revisions": 123,
      "service": SERVICE,
      "slackMessage": SlackMessage,
      "sortKey": "xyz789",
      "summary": AWSJSON,
      "title": "abc123",
      "trigger": "abc123",
      "watchList": ["abc123"]
    }
  }
}

addComment

Returns a Comment

Name Description
input - CommentInput

Example

Query
mutation addComment($input: CommentInput) {
  addComment(input: $input) {
    accountId
    commentMethod
    commentTimestamp
    commentTo
    dateCreated
    dateUpdated
    deletedBy
    isDeleted
    mentionedUsers
    message
    revisions
    sortKey
    type
    updatedBy
    user {
      ...UserFragment
    }
    userId
  }
}
Variables
{"input": CommentInput}
Response
{
  "data": {
    "addComment": {
      "accountId": "abc123",
      "commentMethod": CommentMethod,
      "commentTimestamp": "abc123",
      "commentTo": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "deletedBy": "xyz789",
      "isDeleted": true,
      "mentionedUsers": ["xyz789"],
      "message": "abc123",
      "revisions": 987,
      "sortKey": "xyz789",
      "type": CommentType,
      "updatedBy": "xyz789",
      "user": User,
      "userId": "xyz789"
    }
  }
}

addInsightExternalId

Returns an outputAddInsightExternalId

Name Description
input - inputAddInsightExternalId

Example

Query
mutation addInsightExternalId($input: inputAddInsightExternalId) {
  addInsightExternalId(input: $input) {
    sortKey
    title
  }
}
Variables
{"input": inputAddInsightExternalId}
Response
{"data": {"addInsightExternalId": {"sortKey": "xyz789", "title": "xyz789"}}}

addPage

Returns an OutputPage

Name Description
input - InputPage

Example

Query
mutation addPage($input: InputPage) {
  addPage(input: $input) {
    pages
  }
}
Variables
{"input": InputPage}
Response
{"data": {"addPage": {"pages": AWSJSON}}}

archiveAnomaly

Returns an Anomaly

Name Description
input - AnomalyTransactionInput

Example

Query
mutation archiveAnomaly($input: AnomalyTransactionInput) {
  archiveAnomaly(input: $input) {
    accountId
    authId
    changeHistory
    clientId
    clientName
    commentCount
    configuration {
      ...AnomalyConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateLastInsightCreated
    dateLastRun
    dateUpdated
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    report {
      ...AnomalyReportFragment
    }
    revisions
    schedWebhook
    service
    sortKey
    title
    userId
    watchList
    webhookURL
  }
}
Variables
{"input": AnomalyTransactionInput}
Response
{
  "data": {
    "archiveAnomaly": {
      "accountId": "abc123",
      "authId": "abc123",
      "changeHistory": "xyz789",
      "clientId": "xyz789",
      "clientName": "xyz789",
      "commentCount": 123,
      "configuration": AnomalyConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "abc123",
      "dateLastInsightCreated": "abc123",
      "dateLastRun": "xyz789",
      "dateUpdated": "abc123",
      "errorDetails": PipelineErrorDetails,
      "isArchived": true,
      "isDeleted": true,
      "jobStatus": ANOMALY_STATUS,
      "jobType": "xyz789",
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": true,
      "notifyWebhook": true,
      "report": AnomalyReport,
      "revisions": 123,
      "schedWebhook": "abc123",
      "service": SERVICE,
      "sortKey": "xyz789",
      "title": "abc123",
      "userId": "xyz789",
      "watchList": ["xyz789"],
      "webhookURL": "xyz789"
    }
  }
}

archiveAutomation

Returns a GenericKeys

Name Description
input - AutomationTransactionInput

Example

Query
mutation archiveAutomation($input: AutomationTransactionInput) {
  archiveAutomation(input: $input) {
    accountId
    sortKey
  }
}
Variables
{"input": AutomationTransactionInput}
Response
{"data": {"archiveAutomation": {"accountId": "xyz789", "sortKey": "xyz789"}}}

archiveBudget

Returns a Budget

Name Description
input - BudgetTransactionInput

Example

Query
mutation archiveBudget($input: BudgetTransactionInput) {
  archiveBudget(input: $input) {
    accountId
    authEmail
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...BudgetConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    plannerData {
      ...plannerMapDetailsFragment
    }
    report {
      ...BudgetReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": BudgetTransactionInput}
Response
{
  "data": {
    "archiveBudget": {
      "accountId": "xyz789",
      "authEmail": "abc123",
      "changeHistory": "abc123",
      "client": Client,
      "clientId": "abc123",
      "clientName": "xyz789",
      "commentCount": 123,
      "comments": [Comment],
      "configuration": BudgetConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "abc123",
      "dateUpdated": "xyz789",
      "history": AWSJSON,
      "isArchived": true,
      "isDeleted": true,
      "jobStatus": REPORT_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "abc123",
      "notifySchedSlack": "xyz789",
      "notifySchedWebhook": "xyz789",
      "plannerData": [plannerMapDetails],
      "report": BudgetReport,
      "revisions": 987,
      "schedEmail": "xyz789",
      "schedSlack": "abc123",
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "xyz789",
      "title": "abc123",
      "user": User,
      "userId": "xyz789",
      "watchList": ["abc123"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "xyz789"
    }
  }
}

archiveClient

Returns a Client

Name Description
input - ClientTransactionInput

Example

Query
mutation archiveClient($input: ClientTransactionInput) {
  archiveClient(input: $input) {
    Anomaly(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AnomalyConnectionFragment
    }
    Automation(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AutomationFragment
    }
    Budget(filters: $filters, isArchived: $isArchived) {
      ...BudgetConnectionFragment
    }
    Insight(exclude: $exclude, filters: $filters, isResolved: $isResolved, nextToken: $nextToken, type: $type) {
      ...InsightsConnectionFragment
    }
    KPI(filters: $filters, isArchived: $isArchived) {
      ...KPIConnectionFragment
    }
    accountConnectionStatus(authStatus: $authStatus, oauthType: $oauthType) {
      ...AccountConnectionFragment
    }
    accountId
    anomalyTotal
    automationTotal
    budgetTotal
    budgets {
      ...TotalBudgetStatusFragment
    }
    connectionStatus {
      ...ClientConnectionServicesStatusFragment
    }
    dateCreated
    dateUpdated
    domain
    facebookAds {
      ...FacebookAdsConnectionFragment
    }
    globalConnectionStatus
    googleAds {
      ...GoogleAdsFragment
    }
    googleAnalytics {
      ...GoogleAnalyticsFragment
    }
    googleAnalytics4 {
      ...googleAnalytics4Fragment
    }
    googleMyBusiness {
      ...GoogleMyBusinessFragment
    }
    googleSearchConsole {
      ...GoogleSearchConsoleFragment
    }
    id
    insightTotal
    instagramAds {
      ...InstagramAdsFragment
    }
    isArchived
    isDeleted
    kpiTotal
    kpis {
      ...TotalKPIStatusFragment
    }
    labels {
      ...LabelFragment
    }
    linkedInAds {
      ...linkedInAdsFragment
    }
    logo
    microsoftAds {
      ...microsoftAdsFragment
    }
    name
    revisions
    sortKey
    tiktokAds {
      ...tiktokAdsFragment
    }
    twitterAds {
      ...twitterAdsFragment
    }
  }
}
Variables
{"input": ClientTransactionInput}
Response
{
  "data": {
    "archiveClient": {
      "Anomaly": AnomalyConnection,
      "Automation": [Automation],
      "Budget": BudgetConnection,
      "Insight": InsightsConnection,
      "KPI": KPIConnection,
      "accountConnectionStatus": [AccountConnection],
      "accountId": "xyz789",
      "anomalyTotal": 123,
      "automationTotal": 123,
      "budgetTotal": 987,
      "budgets": TotalBudgetStatus,
      "connectionStatus": ClientConnectionServicesStatus,
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "domain": "abc123",
      "facebookAds": FacebookAdsConnection,
      "globalConnectionStatus": GlobalConnectionStatusENUM,
      "googleAds": GoogleAds,
      "googleAnalytics": GoogleAnalytics,
      "googleAnalytics4": googleAnalytics4,
      "googleMyBusiness": GoogleMyBusiness,
      "googleSearchConsole": GoogleSearchConsole,
      "id": ID,
      "insightTotal": 987,
      "instagramAds": InstagramAds,
      "isArchived": true,
      "isDeleted": true,
      "kpiTotal": 987,
      "kpis": TotalKPIStatus,
      "labels": [Label],
      "linkedInAds": linkedInAds,
      "logo": "abc123",
      "microsoftAds": microsoftAds,
      "name": "abc123",
      "revisions": 987,
      "sortKey": "xyz789",
      "tiktokAds": tiktokAds,
      "twitterAds": twitterAds
    }
  }
}

archiveDataPipeline

Returns a DataPipeLine

Name Description
input - DataPipeLineInput

Example

Query
mutation archiveDataPipeline($input: DataPipeLineInput) {
  archiveDataPipeline(input: $input) {
    accountId
    appliedExtensions {
      ...DataPipelineAppliedExtensionFragment
    }
    changeHistory
    configuration {
      ...DataPipeLineConfigurationFragment
    }
    creditUsed
    dateCreated
    dateLastSyncCompleted
    dateUpdated
    destination {
      ...DestinationFragment
    }
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    executionName
    extensionCount
    funnelTerms
    hasInitAnalysis
    isArchived
    isDeleted
    isTitleAutoGenerated
    jobType
    log {
      ...DataPipeLineLogFragment
    }
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyZapier
    report
    revisions
    sortKey
    source {
      ...DataSourceFragment
    }
    status
    title
    totalRowsLoaded
  }
}
Variables
{"input": DataPipeLineInput}
Response
{
  "data": {
    "archiveDataPipeline": {
      "accountId": "xyz789",
      "appliedExtensions": [DataPipelineAppliedExtension],
      "changeHistory": "abc123",
      "configuration": DataPipeLineConfiguration,
      "creditUsed": 987,
      "dateCreated": "abc123",
      "dateLastSyncCompleted": "abc123",
      "dateUpdated": "xyz789",
      "destination": Destination,
      "errorDetails": PipelineErrorDetails,
      "executionName": "xyz789",
      "extensionCount": 123,
      "funnelTerms": AWSJSON,
      "hasInitAnalysis": false,
      "isArchived": true,
      "isDeleted": false,
      "isTitleAutoGenerated": false,
      "jobType": "abc123",
      "log": [DataPipeLineLog],
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": false,
      "notifyZapier": true,
      "report": AWSJSON,
      "revisions": 123,
      "sortKey": "abc123",
      "source": DataSource,
      "status": "xyz789",
      "title": "abc123",
      "totalRowsLoaded": 123
    }
  }
}

archiveKPI

Returns a KPI

Name Description
input - KPITransactionInput

Example

Query
mutation archiveKPI($input: KPITransactionInput) {
  archiveKPI(input: $input) {
    accountId
    advancedSettings
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...KPIConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    id
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    report {
      ...KPIReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": KPITransactionInput}
Response
{
  "data": {
    "archiveKPI": {
      "accountId": "xyz789",
      "advancedSettings": AWSJSON,
      "changeHistory": "abc123",
      "client": Client,
      "clientId": "abc123",
      "clientName": "abc123",
      "commentCount": 123,
      "comments": [Comment],
      "configuration": KPIConfiguration,
      "connectionStatus": "xyz789",
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "history": AWSJSON,
      "id": "xyz789",
      "isArchived": false,
      "isDeleted": false,
      "jobStatus": REPORT_STATUS,
      "jobType": "xyz789",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "abc123",
      "notifySchedSlack": "abc123",
      "notifySchedWebhook": "abc123",
      "report": KPIReport,
      "revisions": 987,
      "schedEmail": "abc123",
      "schedSlack": "abc123",
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "xyz789",
      "title": "xyz789",
      "user": User,
      "userId": "abc123",
      "watchList": ["abc123"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "abc123"
    }
  }
}

bulkEditNotifications

Returns a BulkEditNotificationOutput

Name Description
input - BulkEditNotificationInput

Example

Query
mutation bulkEditNotifications($input: BulkEditNotificationInput) {
  bulkEditNotifications(input: $input) {
    accountId
  }
}
Variables
{"input": BulkEditNotificationInput}
Response
{"data": {"bulkEditNotifications": {"accountId": "abc123"}}}

clientConnectionCreate

Returns a ClientConnectionCreateResponse

Name Description
input - ClientConnectionCreateInput

Example

Query
mutation clientConnectionCreate($input: ClientConnectionCreateInput) {
  clientConnectionCreate(input: $input) {
    accountId
    clientList
    facebookAds {
      ...FacebookAdsConnectionFragment
    }
    googleAds {
      ...GoogleAdsFragment
    }
    googleAnalytics {
      ...GoogleAnalyticsFragment
    }
    googleAnalytics4 {
      ...googleAnalytics4Fragment
    }
    googleMyBusiness {
      ...GoogleMyBusinessFragment
    }
    googleSearchConsole {
      ...GoogleSearchConsoleFragment
    }
    instagramAds {
      ...InstagramAdsFragment
    }
    linkedInAds {
      ...linkedInAdsFragment
    }
    microsoftAds {
      ...microsoftAdsFragment
    }
    sortKeyAuth
    tiktokAds {
      ...tiktokAdsFragment
    }
    twitterAds {
      ...twitterAdsFragment
    }
  }
}
Variables
{"input": ClientConnectionCreateInput}
Response
{
  "data": {
    "clientConnectionCreate": {
      "accountId": "abc123",
      "clientList": ["xyz789"],
      "facebookAds": FacebookAdsConnection,
      "googleAds": GoogleAds,
      "googleAnalytics": GoogleAnalytics,
      "googleAnalytics4": googleAnalytics4,
      "googleMyBusiness": GoogleMyBusiness,
      "googleSearchConsole": GoogleSearchConsole,
      "instagramAds": InstagramAds,
      "linkedInAds": linkedInAds,
      "microsoftAds": microsoftAds,
      "sortKeyAuth": "xyz789",
      "tiktokAds": tiktokAds,
      "twitterAds": twitterAds
    }
  }
}

clientConnectionDelete

Returns a ClientConnectionDeleteResponse

Name Description
accountId - String!
cognitoUserId - String
service - String!
sortKey - String!

Example

Query
mutation clientConnectionDelete($accountId: String!, $cognitoUserId: String, $service: String!, $sortKey: String!) {
  clientConnectionDelete(accountId: $accountId, cognitoUserId: $cognitoUserId, service: $service, sortKey: $sortKey) {
    accountId
  }
}
Variables
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "service": "abc123",
  "sortKey": "abc123"
}
Response
{"data": {"clientConnectionDelete": {"accountId": "xyz789"}}}

clientConnectionUpdate

Returns a ClientConnectionCreateResponse

Name Description
input - ClientConnectionCreateInput

Example

Query
mutation clientConnectionUpdate($input: ClientConnectionCreateInput) {
  clientConnectionUpdate(input: $input) {
    accountId
    clientList
    facebookAds {
      ...FacebookAdsConnectionFragment
    }
    googleAds {
      ...GoogleAdsFragment
    }
    googleAnalytics {
      ...GoogleAnalyticsFragment
    }
    googleAnalytics4 {
      ...googleAnalytics4Fragment
    }
    googleMyBusiness {
      ...GoogleMyBusinessFragment
    }
    googleSearchConsole {
      ...GoogleSearchConsoleFragment
    }
    instagramAds {
      ...InstagramAdsFragment
    }
    linkedInAds {
      ...linkedInAdsFragment
    }
    microsoftAds {
      ...microsoftAdsFragment
    }
    sortKeyAuth
    tiktokAds {
      ...tiktokAdsFragment
    }
    twitterAds {
      ...twitterAdsFragment
    }
  }
}
Variables
{"input": ClientConnectionCreateInput}
Response
{
  "data": {
    "clientConnectionUpdate": {
      "accountId": "abc123",
      "clientList": ["xyz789"],
      "facebookAds": FacebookAdsConnection,
      "googleAds": GoogleAds,
      "googleAnalytics": GoogleAnalytics,
      "googleAnalytics4": googleAnalytics4,
      "googleMyBusiness": GoogleMyBusiness,
      "googleSearchConsole": GoogleSearchConsole,
      "instagramAds": InstagramAds,
      "linkedInAds": linkedInAds,
      "microsoftAds": microsoftAds,
      "sortKeyAuth": "xyz789",
      "tiktokAds": tiktokAds,
      "twitterAds": twitterAds
    }
  }
}

clientUpload

Returns a ClientUploadResponse

Name Description
input - ClientUploadInput

Example

Query
mutation clientUpload($input: ClientUploadInput) {
  clientUpload(input: $input) {
    id
    url
  }
}
Variables
{"input": ClientUploadInput}
Response
{"data": {"clientUpload": {"id": "abc123", "url": "xyz789"}}}

createAnomaly

Returns an Anomaly

Name Description
input - AnomalyInput

Example

Query
mutation createAnomaly($input: AnomalyInput) {
  createAnomaly(input: $input) {
    accountId
    authId
    changeHistory
    clientId
    clientName
    commentCount
    configuration {
      ...AnomalyConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateLastInsightCreated
    dateLastRun
    dateUpdated
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    report {
      ...AnomalyReportFragment
    }
    revisions
    schedWebhook
    service
    sortKey
    title
    userId
    watchList
    webhookURL
  }
}
Variables
{"input": AnomalyInput}
Response
{
  "data": {
    "createAnomaly": {
      "accountId": "abc123",
      "authId": "xyz789",
      "changeHistory": "abc123",
      "clientId": "xyz789",
      "clientName": "abc123",
      "commentCount": 123,
      "configuration": AnomalyConfiguration,
      "connectionStatus": "xyz789",
      "dateCreated": "abc123",
      "dateLastInsightCreated": "abc123",
      "dateLastRun": "abc123",
      "dateUpdated": "abc123",
      "errorDetails": PipelineErrorDetails,
      "isArchived": true,
      "isDeleted": true,
      "jobStatus": ANOMALY_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": false,
      "notifyWebhook": false,
      "report": AnomalyReport,
      "revisions": 123,
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "abc123",
      "userId": "abc123",
      "watchList": ["abc123"],
      "webhookURL": "xyz789"
    }
  }
}

createAutomation

Returns an Automation

Name Description
input - AutomationInput

Example

Query
mutation createAutomation($input: AutomationInput) {
  createAutomation(input: $input) {
    accountId
    clientId
    clientName
    cognitoUserId
    configuration
    connectionStatus
    dateLastInsightCreated
    dateLastRun
    executionArn
    gmbLocationId
    isArchived
    isDeleted
    jobId
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    revisions
    service
    sortKey
    title
    webhookURL
  }
}
Variables
{"input": AutomationInput}
Response
{
  "data": {
    "createAutomation": {
      "accountId": "xyz789",
      "clientId": "abc123",
      "clientName": "xyz789",
      "cognitoUserId": "xyz789",
      "configuration": AWSJSON,
      "connectionStatus": "xyz789",
      "dateLastInsightCreated": "abc123",
      "dateLastRun": "xyz789",
      "executionArn": "xyz789",
      "gmbLocationId": "abc123",
      "isArchived": true,
      "isDeleted": false,
      "jobId": "abc123",
      "jobStatus": ANOMALY_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifyEmail": true,
      "notifySlack": false,
      "notifyWebhook": true,
      "revisions": 123,
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "xyz789",
      "webhookURL": "abc123"
    }
  }
}

createAutomationConnection

Returns an AutomationConnection

Name Description
input - inputAutomationConnection

Example

Query
mutation createAutomationConnection($input: inputAutomationConnection) {
  createAutomationConnection(input: $input) {
    accountId
  }
}
Variables
{"input": inputAutomationConnection}
Response
{"data": {"createAutomationConnection": {"accountId": "abc123"}}}

createBudget

Returns a Budget

Name Description
input - BudgetInput

Example

Query
mutation createBudget($input: BudgetInput) {
  createBudget(input: $input) {
    accountId
    authEmail
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...BudgetConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    plannerData {
      ...plannerMapDetailsFragment
    }
    report {
      ...BudgetReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": BudgetInput}
Response
{
  "data": {
    "createBudget": {
      "accountId": "abc123",
      "authEmail": "abc123",
      "changeHistory": "xyz789",
      "client": Client,
      "clientId": "abc123",
      "clientName": "abc123",
      "commentCount": 123,
      "comments": [Comment],
      "configuration": BudgetConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "history": AWSJSON,
      "isArchived": false,
      "isDeleted": true,
      "jobStatus": REPORT_STATUS,
      "jobType": "xyz789",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "abc123",
      "notifySchedSlack": "abc123",
      "notifySchedWebhook": "abc123",
      "plannerData": [plannerMapDetails],
      "report": BudgetReport,
      "revisions": 987,
      "schedEmail": "xyz789",
      "schedSlack": "abc123",
      "schedWebhook": "abc123",
      "service": SERVICE,
      "sortKey": "xyz789",
      "title": "xyz789",
      "user": User,
      "userId": "abc123",
      "watchList": ["xyz789"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "abc123"
    }
  }
}

createClient

Returns a Client

Name Description
input - ClientInput

Example

Query
mutation createClient($input: ClientInput) {
  createClient(input: $input) {
    Anomaly(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AnomalyConnectionFragment
    }
    Automation(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AutomationFragment
    }
    Budget(filters: $filters, isArchived: $isArchived) {
      ...BudgetConnectionFragment
    }
    Insight(exclude: $exclude, filters: $filters, isResolved: $isResolved, nextToken: $nextToken, type: $type) {
      ...InsightsConnectionFragment
    }
    KPI(filters: $filters, isArchived: $isArchived) {
      ...KPIConnectionFragment
    }
    accountConnectionStatus(authStatus: $authStatus, oauthType: $oauthType) {
      ...AccountConnectionFragment
    }
    accountId
    anomalyTotal
    automationTotal
    budgetTotal
    budgets {
      ...TotalBudgetStatusFragment
    }
    connectionStatus {
      ...ClientConnectionServicesStatusFragment
    }
    dateCreated
    dateUpdated
    domain
    facebookAds {
      ...FacebookAdsConnectionFragment
    }
    globalConnectionStatus
    googleAds {
      ...GoogleAdsFragment
    }
    googleAnalytics {
      ...GoogleAnalyticsFragment
    }
    googleAnalytics4 {
      ...googleAnalytics4Fragment
    }
    googleMyBusiness {
      ...GoogleMyBusinessFragment
    }
    googleSearchConsole {
      ...GoogleSearchConsoleFragment
    }
    id
    insightTotal
    instagramAds {
      ...InstagramAdsFragment
    }
    isArchived
    isDeleted
    kpiTotal
    kpis {
      ...TotalKPIStatusFragment
    }
    labels {
      ...LabelFragment
    }
    linkedInAds {
      ...linkedInAdsFragment
    }
    logo
    microsoftAds {
      ...microsoftAdsFragment
    }
    name
    revisions
    sortKey
    tiktokAds {
      ...tiktokAdsFragment
    }
    twitterAds {
      ...twitterAdsFragment
    }
  }
}
Variables
{"input": ClientInput}
Response
{
  "data": {
    "createClient": {
      "Anomaly": AnomalyConnection,
      "Automation": [Automation],
      "Budget": BudgetConnection,
      "Insight": InsightsConnection,
      "KPI": KPIConnection,
      "accountConnectionStatus": [AccountConnection],
      "accountId": "abc123",
      "anomalyTotal": 123,
      "automationTotal": 123,
      "budgetTotal": 987,
      "budgets": TotalBudgetStatus,
      "connectionStatus": ClientConnectionServicesStatus,
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "domain": "abc123",
      "facebookAds": FacebookAdsConnection,
      "globalConnectionStatus": GlobalConnectionStatusENUM,
      "googleAds": GoogleAds,
      "googleAnalytics": GoogleAnalytics,
      "googleAnalytics4": googleAnalytics4,
      "googleMyBusiness": GoogleMyBusiness,
      "googleSearchConsole": GoogleSearchConsole,
      "id": ID,
      "insightTotal": 987,
      "instagramAds": InstagramAds,
      "isArchived": false,
      "isDeleted": false,
      "kpiTotal": 123,
      "kpis": TotalKPIStatus,
      "labels": [Label],
      "linkedInAds": linkedInAds,
      "logo": "abc123",
      "microsoftAds": microsoftAds,
      "name": "xyz789",
      "revisions": 123,
      "sortKey": "abc123",
      "tiktokAds": tiktokAds,
      "twitterAds": twitterAds
    }
  }
}

createDataAccessControl

Returns a DataAccessControl

Name Description
input - DataAccessControlInput

Example

Query
mutation createDataAccessControl($input: DataAccessControlInput) {
  createDataAccessControl(input: $input) {
    accessLevel
    accessRole
    accountId
    authEmail
    authId
    dateCreated
    dateUpdated
    invitedUser
    isDeleted
    projectId
    projectName
    provider
    revisions
    service
    sortKey
    status
    userId
  }
}
Variables
{"input": DataAccessControlInput}
Response
{
  "data": {
    "createDataAccessControl": {
      "accessLevel": "abc123",
      "accessRole": ["abc123"],
      "accountId": "abc123",
      "authEmail": "abc123",
      "authId": "xyz789",
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "invitedUser": "xyz789",
      "isDeleted": true,
      "projectId": "xyz789",
      "projectName": "abc123",
      "provider": ACCESS_CONTROL_PROVIDER,
      "revisions": 123,
      "service": SERVICE,
      "sortKey": "abc123",
      "status": "xyz789",
      "userId": "xyz789"
    }
  }
}

createDataPipeLine

Returns a DataPipeLine

Name Description
input - DataPipeLineInput

Example

Query
mutation createDataPipeLine($input: DataPipeLineInput) {
  createDataPipeLine(input: $input) {
    accountId
    appliedExtensions {
      ...DataPipelineAppliedExtensionFragment
    }
    changeHistory
    configuration {
      ...DataPipeLineConfigurationFragment
    }
    creditUsed
    dateCreated
    dateLastSyncCompleted
    dateUpdated
    destination {
      ...DestinationFragment
    }
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    executionName
    extensionCount
    funnelTerms
    hasInitAnalysis
    isArchived
    isDeleted
    isTitleAutoGenerated
    jobType
    log {
      ...DataPipeLineLogFragment
    }
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyZapier
    report
    revisions
    sortKey
    source {
      ...DataSourceFragment
    }
    status
    title
    totalRowsLoaded
  }
}
Variables
{"input": DataPipeLineInput}
Response
{
  "data": {
    "createDataPipeLine": {
      "accountId": "xyz789",
      "appliedExtensions": [DataPipelineAppliedExtension],
      "changeHistory": "xyz789",
      "configuration": DataPipeLineConfiguration,
      "creditUsed": 987,
      "dateCreated": "abc123",
      "dateLastSyncCompleted": "abc123",
      "dateUpdated": "xyz789",
      "destination": Destination,
      "errorDetails": PipelineErrorDetails,
      "executionName": "abc123",
      "extensionCount": 987,
      "funnelTerms": AWSJSON,
      "hasInitAnalysis": false,
      "isArchived": false,
      "isDeleted": true,
      "isTitleAutoGenerated": true,
      "jobType": "abc123",
      "log": [DataPipeLineLog],
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": true,
      "notifyZapier": true,
      "report": AWSJSON,
      "revisions": 123,
      "sortKey": "xyz789",
      "source": DataSource,
      "status": "xyz789",
      "title": "xyz789",
      "totalRowsLoaded": 123
    }
  }
}

createKPI

Returns a KPI

Name Description
input - KPIInput

Example

Query
mutation createKPI($input: KPIInput) {
  createKPI(input: $input) {
    accountId
    advancedSettings
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...KPIConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    id
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    report {
      ...KPIReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": KPIInput}
Response
{
  "data": {
    "createKPI": {
      "accountId": "xyz789",
      "advancedSettings": AWSJSON,
      "changeHistory": "abc123",
      "client": Client,
      "clientId": "xyz789",
      "clientName": "xyz789",
      "commentCount": 987,
      "comments": [Comment],
      "configuration": KPIConfiguration,
      "connectionStatus": "xyz789",
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "history": AWSJSON,
      "id": "abc123",
      "isArchived": true,
      "isDeleted": true,
      "jobStatus": REPORT_STATUS,
      "jobType": "xyz789",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "xyz789",
      "notifySchedSlack": "abc123",
      "notifySchedWebhook": "abc123",
      "report": KPIReport,
      "revisions": 123,
      "schedEmail": "abc123",
      "schedSlack": "xyz789",
      "schedWebhook": "abc123",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "xyz789",
      "user": User,
      "userId": "abc123",
      "watchList": ["abc123"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "abc123"
    }
  }
}

createLabel

Returns an OutputLabel

Name Description
accountId - String!
cognitoUserId - String
label - String!

Example

Query
mutation createLabel($accountId: String!, $cognitoUserId: String, $label: String!) {
  createLabel(accountId: $accountId, cognitoUserId: $cognitoUserId, label: $label) {
    accountId
    clientList
    label
    revisions
    selected
    sortKey
  }
}
Variables
{"accountId": "abc123", "cognitoUserId": "abc123", "label": "abc123"}
Response
{
  "data": {
    "createLabel": {
      "accountId": "abc123",
      "clientList": ["xyz789"],
      "label": "xyz789",
      "revisions": 987,
      "selected": false,
      "sortKey": "xyz789"
    }
  }
}

createPassword

Returns a User

Name Description
accountId - String!
cognitoUserId - String
input - CreatePasswordInput
userId - String

Example

Query
mutation createPassword($accountId: String!, $cognitoUserId: String, $input: CreatePasswordInput, $userId: String) {
  createPassword(accountId: $accountId, cognitoUserId: $cognitoUserId, input: $input, userId: $userId) {
    acceptedInvite
    accountId
    dateCreated
    dateLastLogin
    dateUpdated
    email
    firstName
    hash
    isDeleted
    isPrimary
    lastName
    logo
    password
    preferences {
      ...UserPreferencesOutputFragment
    }
    savedFilters {
      ...LabelFragment
    }
    sortKey
    status
    userId
  }
}
Variables
{
  "accountId": "xyz789",
  "cognitoUserId": "abc123",
  "input": CreatePasswordInput,
  "userId": "abc123"
}
Response
{
  "data": {
    "createPassword": {
      "acceptedInvite": true,
      "accountId": "abc123",
      "dateCreated": "abc123",
      "dateLastLogin": "abc123",
      "dateUpdated": "xyz789",
      "email": "abc123",
      "firstName": "abc123",
      "hash": "abc123",
      "isDeleted": true,
      "isPrimary": true,
      "lastName": "xyz789",
      "logo": "abc123",
      "password": "xyz789",
      "preferences": UserPreferencesOutput,
      "savedFilters": [Label],
      "sortKey": "xyz789",
      "status": "xyz789",
      "userId": "xyz789"
    }
  }
}

createSpreadsheetConnection

Returns a SpreadsheetConnection

Name Description
input - SpreadsheetConnectionInput

Example

Query
mutation createSpreadsheetConnection($input: SpreadsheetConnectionInput) {
  createSpreadsheetConnection(input: $input) {
    accountId
    clientId
    driveId
    email
    spreadsheetId
    spreadsheetLabel
    timezone
    validDates {
      ...SpreadsheetColumnFragment
    }
    validMetrics {
      ...SpreadsheetColumnFragment
    }
    worksheetId
    worksheetLabel
  }
}
Variables
{"input": SpreadsheetConnectionInput}
Response
{
  "data": {
    "createSpreadsheetConnection": {
      "accountId": "abc123",
      "clientId": "xyz789",
      "driveId": "xyz789",
      "email": "xyz789",
      "spreadsheetId": "abc123",
      "spreadsheetLabel": "abc123",
      "timezone": "abc123",
      "validDates": [SpreadsheetColumn],
      "validMetrics": [SpreadsheetColumn],
      "worksheetId": "xyz789",
      "worksheetLabel": "abc123"
    }
  }
}

createUser

Returns a User

Name Description
input - UserCreateInput

Example

Query
mutation createUser($input: UserCreateInput) {
  createUser(input: $input) {
    acceptedInvite
    accountId
    dateCreated
    dateLastLogin
    dateUpdated
    email
    firstName
    hash
    isDeleted
    isPrimary
    lastName
    logo
    password
    preferences {
      ...UserPreferencesOutputFragment
    }
    savedFilters {
      ...LabelFragment
    }
    sortKey
    status
    userId
  }
}
Variables
{"input": UserCreateInput}
Response
{
  "data": {
    "createUser": {
      "acceptedInvite": true,
      "accountId": "xyz789",
      "dateCreated": "xyz789",
      "dateLastLogin": "xyz789",
      "dateUpdated": "xyz789",
      "email": "xyz789",
      "firstName": "abc123",
      "hash": "xyz789",
      "isDeleted": true,
      "isPrimary": true,
      "lastName": "xyz789",
      "logo": "abc123",
      "password": "abc123",
      "preferences": UserPreferencesOutput,
      "savedFilters": [Label],
      "sortKey": "abc123",
      "status": "xyz789",
      "userId": "xyz789"
    }
  }
}

deleteAnomaly

Returns an Anomaly

Name Description
input - AnomalyTransactionInput

Example

Query
mutation deleteAnomaly($input: AnomalyTransactionInput) {
  deleteAnomaly(input: $input) {
    accountId
    authId
    changeHistory
    clientId
    clientName
    commentCount
    configuration {
      ...AnomalyConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateLastInsightCreated
    dateLastRun
    dateUpdated
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    report {
      ...AnomalyReportFragment
    }
    revisions
    schedWebhook
    service
    sortKey
    title
    userId
    watchList
    webhookURL
  }
}
Variables
{"input": AnomalyTransactionInput}
Response
{
  "data": {
    "deleteAnomaly": {
      "accountId": "abc123",
      "authId": "abc123",
      "changeHistory": "abc123",
      "clientId": "xyz789",
      "clientName": "xyz789",
      "commentCount": 987,
      "configuration": AnomalyConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "xyz789",
      "dateLastInsightCreated": "abc123",
      "dateLastRun": "xyz789",
      "dateUpdated": "abc123",
      "errorDetails": PipelineErrorDetails,
      "isArchived": false,
      "isDeleted": true,
      "jobStatus": ANOMALY_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": false,
      "notifyWebhook": false,
      "report": AnomalyReport,
      "revisions": 987,
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "xyz789",
      "userId": "xyz789",
      "watchList": ["xyz789"],
      "webhookURL": "xyz789"
    }
  }
}

deleteAutomation

Returns a GenericKeys

Name Description
input - AutomationTransactionInput

Example

Query
mutation deleteAutomation($input: AutomationTransactionInput) {
  deleteAutomation(input: $input) {
    accountId
    sortKey
  }
}
Variables
{"input": AutomationTransactionInput}
Response
{"data": {"deleteAutomation": {"accountId": "abc123", "sortKey": "xyz789"}}}

deleteBudget

Returns a Budget

Name Description
input - BudgetTransactionInput

Example

Query
mutation deleteBudget($input: BudgetTransactionInput) {
  deleteBudget(input: $input) {
    accountId
    authEmail
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...BudgetConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    plannerData {
      ...plannerMapDetailsFragment
    }
    report {
      ...BudgetReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": BudgetTransactionInput}
Response
{
  "data": {
    "deleteBudget": {
      "accountId": "xyz789",
      "authEmail": "xyz789",
      "changeHistory": "abc123",
      "client": Client,
      "clientId": "abc123",
      "clientName": "xyz789",
      "commentCount": 123,
      "comments": [Comment],
      "configuration": BudgetConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "history": AWSJSON,
      "isArchived": true,
      "isDeleted": true,
      "jobStatus": REPORT_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "abc123",
      "notifySchedSlack": "abc123",
      "notifySchedWebhook": "abc123",
      "plannerData": [plannerMapDetails],
      "report": BudgetReport,
      "revisions": 987,
      "schedEmail": "abc123",
      "schedSlack": "abc123",
      "schedWebhook": "abc123",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "xyz789",
      "user": User,
      "userId": "abc123",
      "watchList": ["xyz789"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "abc123"
    }
  }
}

deleteClient

Returns a Client

Name Description
input - ClientTransactionInput

Example

Query
mutation deleteClient($input: ClientTransactionInput) {
  deleteClient(input: $input) {
    Anomaly(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AnomalyConnectionFragment
    }
    Automation(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AutomationFragment
    }
    Budget(filters: $filters, isArchived: $isArchived) {
      ...BudgetConnectionFragment
    }
    Insight(exclude: $exclude, filters: $filters, isResolved: $isResolved, nextToken: $nextToken, type: $type) {
      ...InsightsConnectionFragment
    }
    KPI(filters: $filters, isArchived: $isArchived) {
      ...KPIConnectionFragment
    }
    accountConnectionStatus(authStatus: $authStatus, oauthType: $oauthType) {
      ...AccountConnectionFragment
    }
    accountId
    anomalyTotal
    automationTotal
    budgetTotal
    budgets {
      ...TotalBudgetStatusFragment
    }
    connectionStatus {
      ...ClientConnectionServicesStatusFragment
    }
    dateCreated
    dateUpdated
    domain
    facebookAds {
      ...FacebookAdsConnectionFragment
    }
    globalConnectionStatus
    googleAds {
      ...GoogleAdsFragment
    }
    googleAnalytics {
      ...GoogleAnalyticsFragment
    }
    googleAnalytics4 {
      ...googleAnalytics4Fragment
    }
    googleMyBusiness {
      ...GoogleMyBusinessFragment
    }
    googleSearchConsole {
      ...GoogleSearchConsoleFragment
    }
    id
    insightTotal
    instagramAds {
      ...InstagramAdsFragment
    }
    isArchived
    isDeleted
    kpiTotal
    kpis {
      ...TotalKPIStatusFragment
    }
    labels {
      ...LabelFragment
    }
    linkedInAds {
      ...linkedInAdsFragment
    }
    logo
    microsoftAds {
      ...microsoftAdsFragment
    }
    name
    revisions
    sortKey
    tiktokAds {
      ...tiktokAdsFragment
    }
    twitterAds {
      ...twitterAdsFragment
    }
  }
}
Variables
{"input": ClientTransactionInput}
Response
{
  "data": {
    "deleteClient": {
      "Anomaly": AnomalyConnection,
      "Automation": [Automation],
      "Budget": BudgetConnection,
      "Insight": InsightsConnection,
      "KPI": KPIConnection,
      "accountConnectionStatus": [AccountConnection],
      "accountId": "abc123",
      "anomalyTotal": 123,
      "automationTotal": 987,
      "budgetTotal": 987,
      "budgets": TotalBudgetStatus,
      "connectionStatus": ClientConnectionServicesStatus,
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "domain": "xyz789",
      "facebookAds": FacebookAdsConnection,
      "globalConnectionStatus": GlobalConnectionStatusENUM,
      "googleAds": GoogleAds,
      "googleAnalytics": GoogleAnalytics,
      "googleAnalytics4": googleAnalytics4,
      "googleMyBusiness": GoogleMyBusiness,
      "googleSearchConsole": GoogleSearchConsole,
      "id": ID,
      "insightTotal": 987,
      "instagramAds": InstagramAds,
      "isArchived": false,
      "isDeleted": false,
      "kpiTotal": 123,
      "kpis": TotalKPIStatus,
      "labels": [Label],
      "linkedInAds": linkedInAds,
      "logo": "xyz789",
      "microsoftAds": microsoftAds,
      "name": "abc123",
      "revisions": 123,
      "sortKey": "xyz789",
      "tiktokAds": tiktokAds,
      "twitterAds": twitterAds
    }
  }
}

deleteComment

Returns a Comment

Name Description
input - DeleteCommentInput

Example

Query
mutation deleteComment($input: DeleteCommentInput) {
  deleteComment(input: $input) {
    accountId
    commentMethod
    commentTimestamp
    commentTo
    dateCreated
    dateUpdated
    deletedBy
    isDeleted
    mentionedUsers
    message
    revisions
    sortKey
    type
    updatedBy
    user {
      ...UserFragment
    }
    userId
  }
}
Variables
{"input": DeleteCommentInput}
Response
{
  "data": {
    "deleteComment": {
      "accountId": "xyz789",
      "commentMethod": CommentMethod,
      "commentTimestamp": "xyz789",
      "commentTo": "abc123",
      "dateCreated": "abc123",
      "dateUpdated": "abc123",
      "deletedBy": "xyz789",
      "isDeleted": false,
      "mentionedUsers": ["abc123"],
      "message": "xyz789",
      "revisions": 123,
      "sortKey": "xyz789",
      "type": CommentType,
      "updatedBy": "xyz789",
      "user": User,
      "userId": "xyz789"
    }
  }
}

deleteDataAccessControl

Returns a DataAccessControl

Name Description
input - DataDeleteAccessControlInput

Example

Query
mutation deleteDataAccessControl($input: DataDeleteAccessControlInput) {
  deleteDataAccessControl(input: $input) {
    accessLevel
    accessRole
    accountId
    authEmail
    authId
    dateCreated
    dateUpdated
    invitedUser
    isDeleted
    projectId
    projectName
    provider
    revisions
    service
    sortKey
    status
    userId
  }
}
Variables
{"input": DataDeleteAccessControlInput}
Response
{
  "data": {
    "deleteDataAccessControl": {
      "accessLevel": "abc123",
      "accessRole": ["abc123"],
      "accountId": "abc123",
      "authEmail": "abc123",
      "authId": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "invitedUser": "xyz789",
      "isDeleted": false,
      "projectId": "xyz789",
      "projectName": "abc123",
      "provider": ACCESS_CONTROL_PROVIDER,
      "revisions": 987,
      "service": SERVICE,
      "sortKey": "abc123",
      "status": "xyz789",
      "userId": "abc123"
    }
  }
}

deleteDataPipeLine

Returns a DataPipeLine

Name Description
input - DataPipeLineInput

Example

Query
mutation deleteDataPipeLine($input: DataPipeLineInput) {
  deleteDataPipeLine(input: $input) {
    accountId
    appliedExtensions {
      ...DataPipelineAppliedExtensionFragment
    }
    changeHistory
    configuration {
      ...DataPipeLineConfigurationFragment
    }
    creditUsed
    dateCreated
    dateLastSyncCompleted
    dateUpdated
    destination {
      ...DestinationFragment
    }
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    executionName
    extensionCount
    funnelTerms
    hasInitAnalysis
    isArchived
    isDeleted
    isTitleAutoGenerated
    jobType
    log {
      ...DataPipeLineLogFragment
    }
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyZapier
    report
    revisions
    sortKey
    source {
      ...DataSourceFragment
    }
    status
    title
    totalRowsLoaded
  }
}
Variables
{"input": DataPipeLineInput}
Response
{
  "data": {
    "deleteDataPipeLine": {
      "accountId": "xyz789",
      "appliedExtensions": [DataPipelineAppliedExtension],
      "changeHistory": "xyz789",
      "configuration": DataPipeLineConfiguration,
      "creditUsed": 123,
      "dateCreated": "abc123",
      "dateLastSyncCompleted": "abc123",
      "dateUpdated": "xyz789",
      "destination": Destination,
      "errorDetails": PipelineErrorDetails,
      "executionName": "abc123",
      "extensionCount": 987,
      "funnelTerms": AWSJSON,
      "hasInitAnalysis": true,
      "isArchived": true,
      "isDeleted": true,
      "isTitleAutoGenerated": false,
      "jobType": "xyz789",
      "log": [DataPipeLineLog],
      "notifyConfig": NotifyConfig,
      "notifyEmail": true,
      "notifySlack": true,
      "notifyZapier": false,
      "report": AWSJSON,
      "revisions": 987,
      "sortKey": "xyz789",
      "source": DataSource,
      "status": "xyz789",
      "title": "xyz789",
      "totalRowsLoaded": 123
    }
  }
}

deleteInsight

Returns an Insights

Name Description
input - InsightTransactionInput

Example

Query
mutation deleteInsight($input: InsightTransactionInput) {
  deleteInsight(input: $input) {
    accountId
    acknowledgeDateTime
    acknowledgedBy
    acknowledgedMethod
    chartImage
    clientId
    commentCount
    comments {
      ...InsightsCommentFragment
    }
    configuration {
      ...insightsConfigurationFragment
    }
    createdBy
    createdByJobType
    dateCreated
    dateUpdated
    description
    externalId
    fullReportUrl
    graphData {
      ...InsightsGraphFragment
    }
    insightRelatedCount
    isAcknowledged
    isArchived
    isDeleted
    isPartialReport
    isResolved
    jobIcon
    jobId
    jobStatus
    jobTitle
    jobType
    reference
    relatedCountOnCreation
    report
    resolveDateTime
    resolvedBy
    resolvedMethod
    revisions
    service
    slackMessage {
      ...SlackMessageFragment
    }
    sortKey
    summary
    title
    trigger
    watchList
  }
}
Variables
{"input": InsightTransactionInput}
Response
{
  "data": {
    "deleteInsight": {
      "accountId": "xyz789",
      "acknowledgeDateTime": "xyz789",
      "acknowledgedBy": ID,
      "acknowledgedMethod": INSIGHTS_METHOD,
      "chartImage": "xyz789",
      "clientId": "xyz789",
      "commentCount": 987,
      "comments": InsightsComment,
      "configuration": insightsConfiguration,
      "createdBy": "abc123",
      "createdByJobType": INSIGHTS_JOBTYPE,
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "description": "abc123",
      "externalId": "abc123",
      "fullReportUrl": "abc123",
      "graphData": InsightsGraph,
      "insightRelatedCount": 123,
      "isAcknowledged": true,
      "isArchived": true,
      "isDeleted": false,
      "isPartialReport": true,
      "isResolved": false,
      "jobIcon": "xyz789",
      "jobId": "xyz789",
      "jobStatus": "xyz789",
      "jobTitle": "abc123",
      "jobType": "xyz789",
      "reference": 123,
      "relatedCountOnCreation": 123,
      "report": AWSJSON,
      "resolveDateTime": "xyz789",
      "resolvedBy": ID,
      "resolvedMethod": INSIGHTS_METHOD,
      "revisions": 987,
      "service": SERVICE,
      "slackMessage": SlackMessage,
      "sortKey": "xyz789",
      "summary": AWSJSON,
      "title": "abc123",
      "trigger": "abc123",
      "watchList": ["xyz789"]
    }
  }
}

deleteKPI

Returns a KPI

Name Description
input - KPITransactionInput

Example

Query
mutation deleteKPI($input: KPITransactionInput) {
  deleteKPI(input: $input) {
    accountId
    advancedSettings
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...KPIConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    id
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    report {
      ...KPIReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": KPITransactionInput}
Response
{
  "data": {
    "deleteKPI": {
      "accountId": "xyz789",
      "advancedSettings": AWSJSON,
      "changeHistory": "xyz789",
      "client": Client,
      "clientId": "abc123",
      "clientName": "abc123",
      "commentCount": 123,
      "comments": [Comment],
      "configuration": KPIConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "abc123",
      "dateUpdated": "abc123",
      "history": AWSJSON,
      "id": "xyz789",
      "isArchived": true,
      "isDeleted": false,
      "jobStatus": REPORT_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "xyz789",
      "notifySchedSlack": "abc123",
      "notifySchedWebhook": "xyz789",
      "report": KPIReport,
      "revisions": 987,
      "schedEmail": "xyz789",
      "schedSlack": "xyz789",
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "xyz789",
      "title": "xyz789",
      "user": User,
      "userId": "xyz789",
      "watchList": ["xyz789"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "abc123"
    }
  }
}

deleteLabel

Returns an OutputLabel

Name Description
accountId - String!
cognitoUserId - String
revisions - Int!
sortKey - String!

Example

Query
mutation deleteLabel($accountId: String!, $cognitoUserId: String, $revisions: Int!, $sortKey: String!) {
  deleteLabel(accountId: $accountId, cognitoUserId: $cognitoUserId, revisions: $revisions, sortKey: $sortKey) {
    accountId
    clientList
    label
    revisions
    selected
    sortKey
  }
}
Variables
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "revisions": 123,
  "sortKey": "xyz789"
}
Response
{
  "data": {
    "deleteLabel": {
      "accountId": "abc123",
      "clientList": ["abc123"],
      "label": "xyz789",
      "revisions": 123,
      "selected": true,
      "sortKey": "abc123"
    }
  }
}

deletePage

Returns an OutputPage

Name Description
input - InputPage

Example

Query
mutation deletePage($input: InputPage) {
  deletePage(input: $input) {
    pages
  }
}
Variables
{"input": InputPage}
Response
{"data": {"deletePage": {"pages": AWSJSON}}}

deleteUser

Returns a DeleteUserOutput

Name Description
input - DeleteUserInput

Example

Query
mutation deleteUser($input: DeleteUserInput) {
  deleteUser(input: $input) {
    isDeleted
  }
}
Variables
{"input": DeleteUserInput}
Response
{"data": {"deleteUser": {"isDeleted": true}}}

editAccount

Returns an Account

Name Description
input - EditAccountInput

Example

Query
mutation editAccount($input: EditAccountInput) {
  editAccount(input: $input) {
    accountId
    accountType
    betaAccess
    clientId
    clientList
    cubeToken
    dateCreated
    dateUpdated
    domain
    hasCard
    inProgress
    logo
    name
    revisions
    sortKey
    status
    timezone
    totalAnomalies
    totalBudgets
    totalClients
    totalKpis
    transactionStatus
    weekStart
    zapierWebHook
  }
}
Variables
{"input": EditAccountInput}
Response
{
  "data": {
    "editAccount": {
      "accountId": "abc123",
      "accountType": "abc123",
      "betaAccess": true,
      "clientId": "abc123",
      "clientList": ["xyz789"],
      "cubeToken": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "domain": "abc123",
      "hasCard": true,
      "inProgress": false,
      "logo": "xyz789",
      "name": "abc123",
      "revisions": 123,
      "sortKey": "abc123",
      "status": "abc123",
      "timezone": "xyz789",
      "totalAnomalies": 987,
      "totalBudgets": 123,
      "totalClients": 987,
      "totalKpis": 123,
      "transactionStatus": "xyz789",
      "weekStart": "abc123",
      "zapierWebHook": AWSJSON
    }
  }
}

editPage

Returns an OutputPage

Name Description
input - InputPage

Example

Query
mutation editPage($input: InputPage) {
  editPage(input: $input) {
    pages
  }
}
Variables
{"input": InputPage}
Response
{"data": {"editPage": {"pages": AWSJSON}}}

editUser

Returns a User

Name Description
input - UserInput

Example

Query
mutation editUser($input: UserInput) {
  editUser(input: $input) {
    acceptedInvite
    accountId
    dateCreated
    dateLastLogin
    dateUpdated
    email
    firstName
    hash
    isDeleted
    isPrimary
    lastName
    logo
    password
    preferences {
      ...UserPreferencesOutputFragment
    }
    savedFilters {
      ...LabelFragment
    }
    sortKey
    status
    userId
  }
}
Variables
{"input": UserInput}
Response
{
  "data": {
    "editUser": {
      "acceptedInvite": false,
      "accountId": "abc123",
      "dateCreated": "abc123",
      "dateLastLogin": "abc123",
      "dateUpdated": "xyz789",
      "email": "xyz789",
      "firstName": "abc123",
      "hash": "xyz789",
      "isDeleted": true,
      "isPrimary": false,
      "lastName": "xyz789",
      "logo": "xyz789",
      "password": "abc123",
      "preferences": UserPreferencesOutput,
      "savedFilters": [Label],
      "sortKey": "abc123",
      "status": "abc123",
      "userId": "xyz789"
    }
  }
}

errorHandler

Returns an ErrorHandlerOutput

Name Description
input - ErrorHandlerInput

Example

Query
mutation errorHandler($input: ErrorHandlerInput) {
  errorHandler(input: $input) {
    accountId
  }
}
Variables
{"input": ErrorHandlerInput}
Response
{"data": {"errorHandler": {"accountId": "xyz789"}}}

forgotPassword

Returns a StatusCode

Name Description
email - String

Example

Query
mutation forgotPassword($email: String) {
  forgotPassword(email: $email) {
    statusCode
  }
}
Variables
{"email": "xyz789"}
Response
{"data": {"forgotPassword": {"statusCode": 123}}}

getPages

Returns an OutputPage

Name Description
input - InputGetPages

Example

Query
mutation getPages($input: InputGetPages) {
  getPages(input: $input) {
    pages
  }
}
Variables
{"input": InputGetPages}
Response
{"data": {"getPages": {"pages": AWSJSON}}}

insightAction

Returns an insightActionOutput

Name Description
accountId - String!
action - InsightAction!
cognitoUserId - String
email - String!
includeRelatedInsights - Boolean
insightIds - [String!]

Example

Query
mutation insightAction($accountId: String!, $action: InsightAction!, $cognitoUserId: String, $email: String!, $includeRelatedInsights: Boolean, $insightIds: [String!]) {
  insightAction(accountId: $accountId, action: $action, cognitoUserId: $cognitoUserId, email: $email, includeRelatedInsights: $includeRelatedInsights, insightIds: $insightIds) {
    id
  }
}
Variables
{
  "accountId": "xyz789",
  "action": InsightAction,
  "cognitoUserId": "xyz789",
  "email": "xyz789",
  "includeRelatedInsights": true,
  "insightIds": ["xyz789"]
}
Response
{"data": {"insightAction": {"id": "abc123"}}}

publishAction

Returns a PublishActionResponse

Name Description
input - PublishActionInput

Example

Query
mutation publishAction($input: PublishActionInput) {
  publishAction(input: $input) {
    action
    id
    item {
      ...InsightsFragment
    }
    itemType
  }
}
Variables
{"input": PublishActionInput}
Response
{
  "data": {
    "publishAction": {
      "action": "abc123",
      "id": "abc123",
      "item": Insights,
      "itemType": ActionItemType
    }
  }
}

publishAnomalyPreviewReport

Returns an AnomalyPreviewResponse

Name Description
input - AnomalyPreviewReportResultInput

Example

Query
mutation publishAnomalyPreviewReport($input: AnomalyPreviewReportResultInput) {
  publishAnomalyPreviewReport(input: $input) {
    errorMessage
    executionArn
    id
    message
    report {
      ...AnomalyReportFragment
    }
    stage
    status
  }
}
Variables
{"input": AnomalyPreviewReportResultInput}
Response
{
  "data": {
    "publishAnomalyPreviewReport": {
      "errorMessage": AWSJSON,
      "executionArn": "abc123",
      "id": ID,
      "message": "abc123",
      "report": AnomalyReport,
      "stage": AnomalyPreviewStage,
      "status": AnomalyPreviewStatus
    }
  }
}

publishBudgetGSpreadsheetPreviewResult

Example

Query
mutation publishBudgetGSpreadsheetPreviewResult($input: BudgetGSpreadsheetPreviewReportResultInput) {
  publishBudgetGSpreadsheetPreviewResult(input: $input) {
    executionArn
    id
    jobStatus
    message
    report {
      ...KPIGSpreadsheetReportFragment
    }
    stage
    status
  }
}
Variables
{"input": BudgetGSpreadsheetPreviewReportResultInput}
Response
{
  "data": {
    "publishBudgetGSpreadsheetPreviewResult": {
      "executionArn": "xyz789",
      "id": ID,
      "jobStatus": REPORT_STATUS,
      "message": "abc123",
      "report": KPIGSpreadsheetReport,
      "stage": PREVIEW_STAGE,
      "status": BUDGET_PREVIEW_STATUS
    }
  }
}

publishBudgetPreviewResult

Returns a BudgetPreviewResponse

Name Description
input - BudgetPreviewReportResultInput

Example

Query
mutation publishBudgetPreviewResult($input: BudgetPreviewReportResultInput) {
  publishBudgetPreviewResult(input: $input) {
    errorMessage
    executionArn
    id
    message
    report {
      ...BudgetReportFragment
    }
    stage
    status
  }
}
Variables
{"input": BudgetPreviewReportResultInput}
Response
{
  "data": {
    "publishBudgetPreviewResult": {
      "errorMessage": AWSJSON,
      "executionArn": "xyz789",
      "id": ID,
      "message": "abc123",
      "report": BudgetReport,
      "stage": PREVIEW_STAGE,
      "status": BudgetPreviewStatus
    }
  }
}

publishComment

Returns a PublishCommentResponse

Name Description
input - PublishCommentInput

Example

Query
mutation publishComment($input: PublishCommentInput) {
  publishComment(input: $input) {
    action
    id
    item {
      ...CommentFragment
    }
    itemType
  }
}
Variables
{"input": PublishCommentInput}
Response
{
  "data": {
    "publishComment": {
      "action": "abc123",
      "id": "abc123",
      "item": Comment,
      "itemType": ActionItemType
    }
  }
}

publishItemUpdate

Returns a publishItemUpdateOutput

Name Description
input - PublishItemUpdateInput

Example

Query
mutation publishItemUpdate($input: PublishItemUpdateInput) {
  publishItemUpdate(input: $input) {
    action
    id
    item
    itemType
  }
}
Variables
{"input": PublishItemUpdateInput}
Response
{
  "data": {
    "publishItemUpdate": {
      "action": ItemAction,
      "id": "xyz789",
      "item": AWSJSON,
      "itemType": ActionItemType
    }
  }
}

publishKPIGAdsPreviewResult

Returns a KPIGAdsPreviewResponse

Name Description
input - KPIGAdsPreviewReportResultInput

Example

Query
mutation publishKPIGAdsPreviewResult($input: KPIGAdsPreviewReportResultInput) {
  publishKPIGAdsPreviewResult(input: $input) {
    executionArn
    id
    jobStatus
    message
    report {
      ...KPIGAdsReportFragment
    }
    stage
    status
  }
}
Variables
{"input": KPIGAdsPreviewReportResultInput}
Response
{
  "data": {
    "publishKPIGAdsPreviewResult": {
      "executionArn": "abc123",
      "id": ID,
      "jobStatus": REPORT_STATUS,
      "message": "abc123",
      "report": KPIGAdsReport,
      "stage": PREVIEW_STAGE,
      "status": KPIPreviewStatus
    }
  }
}

publishKPIGSpreadsheetPreviewResult

Example

Query
mutation publishKPIGSpreadsheetPreviewResult($input: KPIGSpreadsheetPreviewReportResultInput) {
  publishKPIGSpreadsheetPreviewResult(input: $input) {
    executionArn
    id
    jobStatus
    message
    report {
      ...KPIGSpreadsheetReportFragment
    }
    stage
    status
  }
}
Variables
{"input": KPIGSpreadsheetPreviewReportResultInput}
Response
{
  "data": {
    "publishKPIGSpreadsheetPreviewResult": {
      "executionArn": "xyz789",
      "id": ID,
      "jobStatus": REPORT_STATUS,
      "message": "abc123",
      "report": KPIGSpreadsheetReport,
      "stage": PREVIEW_STAGE,
      "status": KPIPreviewStatus
    }
  }
}

publishKPIMAdsPreviewResult

Returns a KPIMAdsPreviewResponse

Name Description
input - KPIMAdsPreviewReportResultInput

Example

Query
mutation publishKPIMAdsPreviewResult($input: KPIMAdsPreviewReportResultInput) {
  publishKPIMAdsPreviewResult(input: $input) {
    executionArn
    id
    jobStatus
    message
    report {
      ...KPIMAdsReportFragment
    }
    stage
    status
  }
}
Variables
{"input": KPIMAdsPreviewReportResultInput}
Response
{
  "data": {
    "publishKPIMAdsPreviewResult": {
      "executionArn": "abc123",
      "id": ID,
      "jobStatus": REPORT_STATUS,
      "message": "abc123",
      "report": KPIMAdsReport,
      "stage": PREVIEW_STAGE,
      "status": KPIPreviewStatus
    }
  }
}

publishKPIPreviewResult

Returns a KPIPreviewResponse

Name Description
input - KPIPreviewReportResultInput

Example

Query
mutation publishKPIPreviewResult($input: KPIPreviewReportResultInput) {
  publishKPIPreviewResult(input: $input) {
    errorMessage
    executionArn
    id
    jobStatus
    message
    report {
      ...KPIReportFragment
    }
    stage
    status
  }
}
Variables
{"input": KPIPreviewReportResultInput}
Response
{
  "data": {
    "publishKPIPreviewResult": {
      "errorMessage": AWSJSON,
      "executionArn": "xyz789",
      "id": ID,
      "jobStatus": REPORT_STATUS,
      "message": "xyz789",
      "report": KPIReport,
      "stage": PREVIEW_STAGE,
      "status": KPIPreviewStatus
    }
  }
}

publishUserAuthentication

Returns a userAuthenticationOutput

Name Description
input - publishUserAuthenticationInput

Example

Query
mutation publishUserAuthentication($input: publishUserAuthenticationInput) {
  publishUserAuthentication(input: $input) {
    accountId
    id
    isAuthorise
  }
}
Variables
{"input": publishUserAuthenticationInput}
Response
{
  "data": {
    "publishUserAuthentication": {
      "accountId": "abc123",
      "id": "abc123",
      "isAuthorise": false
    }
  }
}

purchaseExtension

Returns a PurchaseExtensionOutput

Name Description
input - PurchaseExtensionInput

Example

Query
mutation purchaseExtension($input: PurchaseExtensionInput) {
  purchaseExtension(input: $input) {
    creditsApplied
    description
    details {
      ...AddOnPackFragment
    }
    immediateCharges
    proratedCharge
    renewalDate
    tax
    total
  }
}
Variables
{"input": PurchaseExtensionInput}
Response
{
  "data": {
    "purchaseExtension": {
      "creditsApplied": 987.65,
      "description": "abc123",
      "details": [AddOnPack],
      "immediateCharges": AWSJSON,
      "proratedCharge": 987.65,
      "renewalDate": "abc123",
      "tax": 123.45,
      "total": 987.65
    }
  }
}

purchaseExtensionAddOn

Returns a PurchaseExtensionOutput

Name Description
input - PurchaseExtensionAddOnInput

Example

Query
mutation purchaseExtensionAddOn($input: PurchaseExtensionAddOnInput) {
  purchaseExtensionAddOn(input: $input) {
    creditsApplied
    description
    details {
      ...AddOnPackFragment
    }
    immediateCharges
    proratedCharge
    renewalDate
    tax
    total
  }
}
Variables
{"input": PurchaseExtensionAddOnInput}
Response
{
  "data": {
    "purchaseExtensionAddOn": {
      "creditsApplied": 987.65,
      "description": "abc123",
      "details": [AddOnPack],
      "immediateCharges": AWSJSON,
      "proratedCharge": 123.45,
      "renewalDate": "xyz789",
      "tax": 123.45,
      "total": 123.45
    }
  }
}

purchaseExtensionEstimate

Returns a PurchaseExtensionOutput

Name Description
input - PurchaseExtensionInput

Example

Query
mutation purchaseExtensionEstimate($input: PurchaseExtensionInput) {
  purchaseExtensionEstimate(input: $input) {
    creditsApplied
    description
    details {
      ...AddOnPackFragment
    }
    immediateCharges
    proratedCharge
    renewalDate
    tax
    total
  }
}
Variables
{"input": PurchaseExtensionInput}
Response
{
  "data": {
    "purchaseExtensionEstimate": {
      "creditsApplied": 123.45,
      "description": "abc123",
      "details": [AddOnPack],
      "immediateCharges": AWSJSON,
      "proratedCharge": 987.65,
      "renewalDate": "abc123",
      "tax": 987.65,
      "total": 123.45
    }
  }
}

reactivatePipeline

Returns a DataPipeLine

Name Description
input - DataPipeLineInput

Example

Query
mutation reactivatePipeline($input: DataPipeLineInput) {
  reactivatePipeline(input: $input) {
    accountId
    appliedExtensions {
      ...DataPipelineAppliedExtensionFragment
    }
    changeHistory
    configuration {
      ...DataPipeLineConfigurationFragment
    }
    creditUsed
    dateCreated
    dateLastSyncCompleted
    dateUpdated
    destination {
      ...DestinationFragment
    }
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    executionName
    extensionCount
    funnelTerms
    hasInitAnalysis
    isArchived
    isDeleted
    isTitleAutoGenerated
    jobType
    log {
      ...DataPipeLineLogFragment
    }
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyZapier
    report
    revisions
    sortKey
    source {
      ...DataSourceFragment
    }
    status
    title
    totalRowsLoaded
  }
}
Variables
{"input": DataPipeLineInput}
Response
{
  "data": {
    "reactivatePipeline": {
      "accountId": "xyz789",
      "appliedExtensions": [DataPipelineAppliedExtension],
      "changeHistory": "xyz789",
      "configuration": DataPipeLineConfiguration,
      "creditUsed": 123,
      "dateCreated": "xyz789",
      "dateLastSyncCompleted": "abc123",
      "dateUpdated": "xyz789",
      "destination": Destination,
      "errorDetails": PipelineErrorDetails,
      "executionName": "abc123",
      "extensionCount": 987,
      "funnelTerms": AWSJSON,
      "hasInitAnalysis": true,
      "isArchived": false,
      "isDeleted": true,
      "isTitleAutoGenerated": false,
      "jobType": "xyz789",
      "log": [DataPipeLineLog],
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": true,
      "notifyZapier": false,
      "report": AWSJSON,
      "revisions": 987,
      "sortKey": "xyz789",
      "source": DataSource,
      "status": "abc123",
      "title": "abc123",
      "totalRowsLoaded": 123
    }
  }
}

removeOwnership

Returns a User

Name Description
input - RemoveOwnershipInput

Example

Query
mutation removeOwnership($input: RemoveOwnershipInput) {
  removeOwnership(input: $input) {
    acceptedInvite
    accountId
    dateCreated
    dateLastLogin
    dateUpdated
    email
    firstName
    hash
    isDeleted
    isPrimary
    lastName
    logo
    password
    preferences {
      ...UserPreferencesOutputFragment
    }
    savedFilters {
      ...LabelFragment
    }
    sortKey
    status
    userId
  }
}
Variables
{"input": RemoveOwnershipInput}
Response
{
  "data": {
    "removeOwnership": {
      "acceptedInvite": false,
      "accountId": "abc123",
      "dateCreated": "abc123",
      "dateLastLogin": "xyz789",
      "dateUpdated": "abc123",
      "email": "xyz789",
      "firstName": "xyz789",
      "hash": "abc123",
      "isDeleted": false,
      "isPrimary": true,
      "lastName": "abc123",
      "logo": "xyz789",
      "password": "xyz789",
      "preferences": UserPreferencesOutput,
      "savedFilters": [Label],
      "sortKey": "xyz789",
      "status": "xyz789",
      "userId": "abc123"
    }
  }
}

renameJobTitle

Returns an OutputRenameJobTitle

Name Description
input - RenameJobTitleInput

Example

Query
mutation renameJobTitle($input: RenameJobTitleInput) {
  renameJobTitle(input: $input) {
    sortKey
    title
  }
}
Variables
{"input": RenameJobTitleInput}
Response
{"data": {"renameJobTitle": {"sortKey": "abc123", "title": "xyz789"}}}

resendInvite

Returns a User

Name Description
input - ResendInviteInput

Example

Query
mutation resendInvite($input: ResendInviteInput) {
  resendInvite(input: $input) {
    acceptedInvite
    accountId
    dateCreated
    dateLastLogin
    dateUpdated
    email
    firstName
    hash
    isDeleted
    isPrimary
    lastName
    logo
    password
    preferences {
      ...UserPreferencesOutputFragment
    }
    savedFilters {
      ...LabelFragment
    }
    sortKey
    status
    userId
  }
}
Variables
{"input": ResendInviteInput}
Response
{
  "data": {
    "resendInvite": {
      "acceptedInvite": false,
      "accountId": "xyz789",
      "dateCreated": "xyz789",
      "dateLastLogin": "xyz789",
      "dateUpdated": "abc123",
      "email": "xyz789",
      "firstName": "xyz789",
      "hash": "abc123",
      "isDeleted": false,
      "isPrimary": true,
      "lastName": "xyz789",
      "logo": "xyz789",
      "password": "abc123",
      "preferences": UserPreferencesOutput,
      "savedFilters": [Label],
      "sortKey": "abc123",
      "status": "xyz789",
      "userId": "abc123"
    }
  }
}

resolveUnresolveInsight

Returns an Insights

Name Description
input - inputResolveUnresolveInsight

Example

Query
mutation resolveUnresolveInsight($input: inputResolveUnresolveInsight) {
  resolveUnresolveInsight(input: $input) {
    accountId
    acknowledgeDateTime
    acknowledgedBy
    acknowledgedMethod
    chartImage
    clientId
    commentCount
    comments {
      ...InsightsCommentFragment
    }
    configuration {
      ...insightsConfigurationFragment
    }
    createdBy
    createdByJobType
    dateCreated
    dateUpdated
    description
    externalId
    fullReportUrl
    graphData {
      ...InsightsGraphFragment
    }
    insightRelatedCount
    isAcknowledged
    isArchived
    isDeleted
    isPartialReport
    isResolved
    jobIcon
    jobId
    jobStatus
    jobTitle
    jobType
    reference
    relatedCountOnCreation
    report
    resolveDateTime
    resolvedBy
    resolvedMethod
    revisions
    service
    slackMessage {
      ...SlackMessageFragment
    }
    sortKey
    summary
    title
    trigger
    watchList
  }
}
Variables
{"input": inputResolveUnresolveInsight}
Response
{
  "data": {
    "resolveUnresolveInsight": {
      "accountId": "abc123",
      "acknowledgeDateTime": "xyz789",
      "acknowledgedBy": ID,
      "acknowledgedMethod": INSIGHTS_METHOD,
      "chartImage": "abc123",
      "clientId": "abc123",
      "commentCount": 987,
      "comments": InsightsComment,
      "configuration": insightsConfiguration,
      "createdBy": "abc123",
      "createdByJobType": INSIGHTS_JOBTYPE,
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "description": "xyz789",
      "externalId": "xyz789",
      "fullReportUrl": "xyz789",
      "graphData": InsightsGraph,
      "insightRelatedCount": 987,
      "isAcknowledged": false,
      "isArchived": true,
      "isDeleted": false,
      "isPartialReport": true,
      "isResolved": true,
      "jobIcon": "abc123",
      "jobId": "abc123",
      "jobStatus": "xyz789",
      "jobTitle": "xyz789",
      "jobType": "abc123",
      "reference": 123,
      "relatedCountOnCreation": 123,
      "report": AWSJSON,
      "resolveDateTime": "abc123",
      "resolvedBy": ID,
      "resolvedMethod": INSIGHTS_METHOD,
      "revisions": 987,
      "service": SERVICE,
      "slackMessage": SlackMessage,
      "sortKey": "xyz789",
      "summary": AWSJSON,
      "title": "abc123",
      "trigger": "xyz789",
      "watchList": ["abc123"]
    }
  }
}

reSyncDataPipeLine

Returns a DataPipeLine

Name Description
input - ReSyncDataPipeLineInput

Example

Query
mutation reSyncDataPipeLine($input: ReSyncDataPipeLineInput) {
  reSyncDataPipeLine(input: $input) {
    accountId
    appliedExtensions {
      ...DataPipelineAppliedExtensionFragment
    }
    changeHistory
    configuration {
      ...DataPipeLineConfigurationFragment
    }
    creditUsed
    dateCreated
    dateLastSyncCompleted
    dateUpdated
    destination {
      ...DestinationFragment
    }
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    executionName
    extensionCount
    funnelTerms
    hasInitAnalysis
    isArchived
    isDeleted
    isTitleAutoGenerated
    jobType
    log {
      ...DataPipeLineLogFragment
    }
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyZapier
    report
    revisions
    sortKey
    source {
      ...DataSourceFragment
    }
    status
    title
    totalRowsLoaded
  }
}
Variables
{"input": ReSyncDataPipeLineInput}
Response
{
  "data": {
    "reSyncDataPipeLine": {
      "accountId": "abc123",
      "appliedExtensions": [DataPipelineAppliedExtension],
      "changeHistory": "xyz789",
      "configuration": DataPipeLineConfiguration,
      "creditUsed": 987,
      "dateCreated": "abc123",
      "dateLastSyncCompleted": "xyz789",
      "dateUpdated": "xyz789",
      "destination": Destination,
      "errorDetails": PipelineErrorDetails,
      "executionName": "xyz789",
      "extensionCount": 987,
      "funnelTerms": AWSJSON,
      "hasInitAnalysis": false,
      "isArchived": false,
      "isDeleted": false,
      "isTitleAutoGenerated": false,
      "jobType": "xyz789",
      "log": [DataPipeLineLog],
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": true,
      "notifyZapier": true,
      "report": AWSJSON,
      "revisions": 987,
      "sortKey": "abc123",
      "source": DataSource,
      "status": "abc123",
      "title": "xyz789",
      "totalRowsLoaded": 987
    }
  }
}

reTryDataAnomaly

Returns an Anomaly

Name Description
input - ReTryDataAnomalyInput

Example

Query
mutation reTryDataAnomaly($input: ReTryDataAnomalyInput) {
  reTryDataAnomaly(input: $input) {
    accountId
    authId
    changeHistory
    clientId
    clientName
    commentCount
    configuration {
      ...AnomalyConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateLastInsightCreated
    dateLastRun
    dateUpdated
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    report {
      ...AnomalyReportFragment
    }
    revisions
    schedWebhook
    service
    sortKey
    title
    userId
    watchList
    webhookURL
  }
}
Variables
{"input": ReTryDataAnomalyInput}
Response
{
  "data": {
    "reTryDataAnomaly": {
      "accountId": "abc123",
      "authId": "abc123",
      "changeHistory": "abc123",
      "clientId": "xyz789",
      "clientName": "abc123",
      "commentCount": 987,
      "configuration": AnomalyConfiguration,
      "connectionStatus": "xyz789",
      "dateCreated": "xyz789",
      "dateLastInsightCreated": "xyz789",
      "dateLastRun": "abc123",
      "dateUpdated": "abc123",
      "errorDetails": PipelineErrorDetails,
      "isArchived": true,
      "isDeleted": false,
      "jobStatus": ANOMALY_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": false,
      "notifyWebhook": false,
      "report": AnomalyReport,
      "revisions": 123,
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "abc123",
      "userId": "abc123",
      "watchList": ["abc123"],
      "webhookURL": "abc123"
    }
  }
}

reTryDataPipeLine

Returns a DataPipeLine

Name Description
input - ReTryDataPipeLineInput

Example

Query
mutation reTryDataPipeLine($input: ReTryDataPipeLineInput) {
  reTryDataPipeLine(input: $input) {
    accountId
    appliedExtensions {
      ...DataPipelineAppliedExtensionFragment
    }
    changeHistory
    configuration {
      ...DataPipeLineConfigurationFragment
    }
    creditUsed
    dateCreated
    dateLastSyncCompleted
    dateUpdated
    destination {
      ...DestinationFragment
    }
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    executionName
    extensionCount
    funnelTerms
    hasInitAnalysis
    isArchived
    isDeleted
    isTitleAutoGenerated
    jobType
    log {
      ...DataPipeLineLogFragment
    }
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyZapier
    report
    revisions
    sortKey
    source {
      ...DataSourceFragment
    }
    status
    title
    totalRowsLoaded
  }
}
Variables
{"input": ReTryDataPipeLineInput}
Response
{
  "data": {
    "reTryDataPipeLine": {
      "accountId": "xyz789",
      "appliedExtensions": [DataPipelineAppliedExtension],
      "changeHistory": "xyz789",
      "configuration": DataPipeLineConfiguration,
      "creditUsed": 987,
      "dateCreated": "abc123",
      "dateLastSyncCompleted": "abc123",
      "dateUpdated": "xyz789",
      "destination": Destination,
      "errorDetails": PipelineErrorDetails,
      "executionName": "abc123",
      "extensionCount": 987,
      "funnelTerms": AWSJSON,
      "hasInitAnalysis": true,
      "isArchived": false,
      "isDeleted": false,
      "isTitleAutoGenerated": false,
      "jobType": "xyz789",
      "log": [DataPipeLineLog],
      "notifyConfig": NotifyConfig,
      "notifyEmail": true,
      "notifySlack": true,
      "notifyZapier": false,
      "report": AWSJSON,
      "revisions": 123,
      "sortKey": "abc123",
      "source": DataSource,
      "status": "xyz789",
      "title": "abc123",
      "totalRowsLoaded": 123
    }
  }
}

saveUserFilter

Returns a User

Name Description
input - SaveFilterInput

Example

Query
mutation saveUserFilter($input: SaveFilterInput) {
  saveUserFilter(input: $input) {
    acceptedInvite
    accountId
    dateCreated
    dateLastLogin
    dateUpdated
    email
    firstName
    hash
    isDeleted
    isPrimary
    lastName
    logo
    password
    preferences {
      ...UserPreferencesOutputFragment
    }
    savedFilters {
      ...LabelFragment
    }
    sortKey
    status
    userId
  }
}
Variables
{"input": SaveFilterInput}
Response
{
  "data": {
    "saveUserFilter": {
      "acceptedInvite": false,
      "accountId": "abc123",
      "dateCreated": "abc123",
      "dateLastLogin": "abc123",
      "dateUpdated": "abc123",
      "email": "xyz789",
      "firstName": "xyz789",
      "hash": "abc123",
      "isDeleted": false,
      "isPrimary": false,
      "lastName": "abc123",
      "logo": "xyz789",
      "password": "abc123",
      "preferences": UserPreferencesOutput,
      "savedFilters": [Label],
      "sortKey": "abc123",
      "status": "xyz789",
      "userId": "abc123"
    }
  }
}

saveUserPreferences

Returns a User

Name Description
input - SaveUserPreferencesInput

Example

Query
mutation saveUserPreferences($input: SaveUserPreferencesInput) {
  saveUserPreferences(input: $input) {
    acceptedInvite
    accountId
    dateCreated
    dateLastLogin
    dateUpdated
    email
    firstName
    hash
    isDeleted
    isPrimary
    lastName
    logo
    password
    preferences {
      ...UserPreferencesOutputFragment
    }
    savedFilters {
      ...LabelFragment
    }
    sortKey
    status
    userId
  }
}
Variables
{"input": SaveUserPreferencesInput}
Response
{
  "data": {
    "saveUserPreferences": {
      "acceptedInvite": true,
      "accountId": "xyz789",
      "dateCreated": "abc123",
      "dateLastLogin": "xyz789",
      "dateUpdated": "abc123",
      "email": "abc123",
      "firstName": "xyz789",
      "hash": "abc123",
      "isDeleted": false,
      "isPrimary": true,
      "lastName": "xyz789",
      "logo": "abc123",
      "password": "abc123",
      "preferences": UserPreferencesOutput,
      "savedFilters": [Label],
      "sortKey": "xyz789",
      "status": "xyz789",
      "userId": "abc123"
    }
  }
}

setDataSource

Returns a DataSource

Name Description
input - DataSourceInput

Example

Query
mutation setDataSource($input: DataSourceInput) {
  setDataSource(input: $input) {
    account
    accountId
    authId
    config
    sourceType
    timezone
  }
}
Variables
{"input": DataSourceInput}
Response
{
  "data": {
    "setDataSource": {
      "account": "xyz789",
      "accountId": "abc123",
      "authId": "xyz789",
      "config": AWSJSON,
      "sourceType": SOURCE_TYPE,
      "timezone": "xyz789"
    }
  }
}

setDestination

Returns a Destination

Name Description
input - DestinationInput

Example

Query
mutation setDestination($input: DestinationInput) {
  setDestination(input: $input) {
    accountId
    authId
    config
    destination
  }
}
Variables
{"input": DestinationInput}
Response
{
  "data": {
    "setDestination": {
      "accountId": "xyz789",
      "authId": "abc123",
      "config": AWSJSON,
      "destination": DESTINATION
    }
  }
}

startPipelineTrial

Returns a DataWarehouseTrial

Name Description
accountId - String!
cognitoUserId - String

Example

Query
mutation startPipelineTrial($accountId: String!, $cognitoUserId: String) {
  startPipelineTrial(accountId: $accountId, cognitoUserId: $cognitoUserId) {
    endDate
    isTrialEnded
    isTrialStarted
    startDate
  }
}
Variables
{"accountId": "xyz789", "cognitoUserId": "xyz789"}
Response
{
  "data": {
    "startPipelineTrial": {
      "endDate": "abc123",
      "isTrialEnded": true,
      "isTrialStarted": true,
      "startDate": "xyz789"
    }
  }
}

testWebhook

Returns a TestWebhookOutput

Name Description
input - TestWebhookInput

Example

Query
mutation testWebhook($input: TestWebhookInput) {
  testWebhook(input: $input) {
    message
    status
  }
}
Variables
{"input": TestWebhookInput}
Response
{
  "data": {
    "testWebhook": {"message": AWSJSON, "status": 123}
  }
}

transferOwnership

Returns a User

Name Description
input - TransferOwnershipInput

Example

Query
mutation transferOwnership($input: TransferOwnershipInput) {
  transferOwnership(input: $input) {
    acceptedInvite
    accountId
    dateCreated
    dateLastLogin
    dateUpdated
    email
    firstName
    hash
    isDeleted
    isPrimary
    lastName
    logo
    password
    preferences {
      ...UserPreferencesOutputFragment
    }
    savedFilters {
      ...LabelFragment
    }
    sortKey
    status
    userId
  }
}
Variables
{"input": TransferOwnershipInput}
Response
{
  "data": {
    "transferOwnership": {
      "acceptedInvite": true,
      "accountId": "xyz789",
      "dateCreated": "abc123",
      "dateLastLogin": "xyz789",
      "dateUpdated": "xyz789",
      "email": "abc123",
      "firstName": "abc123",
      "hash": "xyz789",
      "isDeleted": false,
      "isPrimary": false,
      "lastName": "xyz789",
      "logo": "abc123",
      "password": "abc123",
      "preferences": UserPreferencesOutput,
      "savedFilters": [Label],
      "sortKey": "abc123",
      "status": "abc123",
      "userId": "abc123"
    }
  }
}

unAcknowledgeInsight

Returns an Insights

Name Description
input - inputAcknowledgeInsight

Example

Query
mutation unAcknowledgeInsight($input: inputAcknowledgeInsight) {
  unAcknowledgeInsight(input: $input) {
    accountId
    acknowledgeDateTime
    acknowledgedBy
    acknowledgedMethod
    chartImage
    clientId
    commentCount
    comments {
      ...InsightsCommentFragment
    }
    configuration {
      ...insightsConfigurationFragment
    }
    createdBy
    createdByJobType
    dateCreated
    dateUpdated
    description
    externalId
    fullReportUrl
    graphData {
      ...InsightsGraphFragment
    }
    insightRelatedCount
    isAcknowledged
    isArchived
    isDeleted
    isPartialReport
    isResolved
    jobIcon
    jobId
    jobStatus
    jobTitle
    jobType
    reference
    relatedCountOnCreation
    report
    resolveDateTime
    resolvedBy
    resolvedMethod
    revisions
    service
    slackMessage {
      ...SlackMessageFragment
    }
    sortKey
    summary
    title
    trigger
    watchList
  }
}
Variables
{"input": inputAcknowledgeInsight}
Response
{
  "data": {
    "unAcknowledgeInsight": {
      "accountId": "xyz789",
      "acknowledgeDateTime": "abc123",
      "acknowledgedBy": ID,
      "acknowledgedMethod": INSIGHTS_METHOD,
      "chartImage": "xyz789",
      "clientId": "abc123",
      "commentCount": 987,
      "comments": InsightsComment,
      "configuration": insightsConfiguration,
      "createdBy": "abc123",
      "createdByJobType": INSIGHTS_JOBTYPE,
      "dateCreated": "abc123",
      "dateUpdated": "xyz789",
      "description": "xyz789",
      "externalId": "xyz789",
      "fullReportUrl": "abc123",
      "graphData": InsightsGraph,
      "insightRelatedCount": 123,
      "isAcknowledged": true,
      "isArchived": false,
      "isDeleted": false,
      "isPartialReport": true,
      "isResolved": true,
      "jobIcon": "abc123",
      "jobId": "abc123",
      "jobStatus": "xyz789",
      "jobTitle": "xyz789",
      "jobType": "xyz789",
      "reference": 987,
      "relatedCountOnCreation": 987,
      "report": AWSJSON,
      "resolveDateTime": "abc123",
      "resolvedBy": ID,
      "resolvedMethod": INSIGHTS_METHOD,
      "revisions": 123,
      "service": SERVICE,
      "slackMessage": SlackMessage,
      "sortKey": "abc123",
      "summary": AWSJSON,
      "title": "xyz789",
      "trigger": "xyz789",
      "watchList": ["xyz789"]
    }
  }
}

unarchiveAnomaly

Returns an Anomaly

Name Description
input - AnomalyTransactionInput

Example

Query
mutation unarchiveAnomaly($input: AnomalyTransactionInput) {
  unarchiveAnomaly(input: $input) {
    accountId
    authId
    changeHistory
    clientId
    clientName
    commentCount
    configuration {
      ...AnomalyConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateLastInsightCreated
    dateLastRun
    dateUpdated
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    report {
      ...AnomalyReportFragment
    }
    revisions
    schedWebhook
    service
    sortKey
    title
    userId
    watchList
    webhookURL
  }
}
Variables
{"input": AnomalyTransactionInput}
Response
{
  "data": {
    "unarchiveAnomaly": {
      "accountId": "xyz789",
      "authId": "xyz789",
      "changeHistory": "abc123",
      "clientId": "abc123",
      "clientName": "abc123",
      "commentCount": 987,
      "configuration": AnomalyConfiguration,
      "connectionStatus": "xyz789",
      "dateCreated": "abc123",
      "dateLastInsightCreated": "xyz789",
      "dateLastRun": "xyz789",
      "dateUpdated": "xyz789",
      "errorDetails": PipelineErrorDetails,
      "isArchived": false,
      "isDeleted": false,
      "jobStatus": ANOMALY_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": true,
      "notifyWebhook": false,
      "report": AnomalyReport,
      "revisions": 123,
      "schedWebhook": "abc123",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "abc123",
      "userId": "xyz789",
      "watchList": ["abc123"],
      "webhookURL": "abc123"
    }
  }
}

unarchiveBudget

Returns a Budget

Name Description
input - BudgetTransactionInput

Example

Query
mutation unarchiveBudget($input: BudgetTransactionInput) {
  unarchiveBudget(input: $input) {
    accountId
    authEmail
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...BudgetConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    plannerData {
      ...plannerMapDetailsFragment
    }
    report {
      ...BudgetReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": BudgetTransactionInput}
Response
{
  "data": {
    "unarchiveBudget": {
      "accountId": "abc123",
      "authEmail": "abc123",
      "changeHistory": "abc123",
      "client": Client,
      "clientId": "xyz789",
      "clientName": "abc123",
      "commentCount": 987,
      "comments": [Comment],
      "configuration": BudgetConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "history": AWSJSON,
      "isArchived": true,
      "isDeleted": false,
      "jobStatus": REPORT_STATUS,
      "jobType": "xyz789",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "abc123",
      "notifySchedSlack": "xyz789",
      "notifySchedWebhook": "xyz789",
      "plannerData": [plannerMapDetails],
      "report": BudgetReport,
      "revisions": 123,
      "schedEmail": "abc123",
      "schedSlack": "abc123",
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "xyz789",
      "title": "abc123",
      "user": User,
      "userId": "xyz789",
      "watchList": ["xyz789"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "xyz789"
    }
  }
}

unarchiveClient

Returns a Client

Name Description
input - ClientTransactionInput

Example

Query
mutation unarchiveClient($input: ClientTransactionInput) {
  unarchiveClient(input: $input) {
    Anomaly(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AnomalyConnectionFragment
    }
    Automation(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AutomationFragment
    }
    Budget(filters: $filters, isArchived: $isArchived) {
      ...BudgetConnectionFragment
    }
    Insight(exclude: $exclude, filters: $filters, isResolved: $isResolved, nextToken: $nextToken, type: $type) {
      ...InsightsConnectionFragment
    }
    KPI(filters: $filters, isArchived: $isArchived) {
      ...KPIConnectionFragment
    }
    accountConnectionStatus(authStatus: $authStatus, oauthType: $oauthType) {
      ...AccountConnectionFragment
    }
    accountId
    anomalyTotal
    automationTotal
    budgetTotal
    budgets {
      ...TotalBudgetStatusFragment
    }
    connectionStatus {
      ...ClientConnectionServicesStatusFragment
    }
    dateCreated
    dateUpdated
    domain
    facebookAds {
      ...FacebookAdsConnectionFragment
    }
    globalConnectionStatus
    googleAds {
      ...GoogleAdsFragment
    }
    googleAnalytics {
      ...GoogleAnalyticsFragment
    }
    googleAnalytics4 {
      ...googleAnalytics4Fragment
    }
    googleMyBusiness {
      ...GoogleMyBusinessFragment
    }
    googleSearchConsole {
      ...GoogleSearchConsoleFragment
    }
    id
    insightTotal
    instagramAds {
      ...InstagramAdsFragment
    }
    isArchived
    isDeleted
    kpiTotal
    kpis {
      ...TotalKPIStatusFragment
    }
    labels {
      ...LabelFragment
    }
    linkedInAds {
      ...linkedInAdsFragment
    }
    logo
    microsoftAds {
      ...microsoftAdsFragment
    }
    name
    revisions
    sortKey
    tiktokAds {
      ...tiktokAdsFragment
    }
    twitterAds {
      ...twitterAdsFragment
    }
  }
}
Variables
{"input": ClientTransactionInput}
Response
{
  "data": {
    "unarchiveClient": {
      "Anomaly": AnomalyConnection,
      "Automation": [Automation],
      "Budget": BudgetConnection,
      "Insight": InsightsConnection,
      "KPI": KPIConnection,
      "accountConnectionStatus": [AccountConnection],
      "accountId": "xyz789",
      "anomalyTotal": 123,
      "automationTotal": 123,
      "budgetTotal": 987,
      "budgets": TotalBudgetStatus,
      "connectionStatus": ClientConnectionServicesStatus,
      "dateCreated": "abc123",
      "dateUpdated": "xyz789",
      "domain": "xyz789",
      "facebookAds": FacebookAdsConnection,
      "globalConnectionStatus": GlobalConnectionStatusENUM,
      "googleAds": GoogleAds,
      "googleAnalytics": GoogleAnalytics,
      "googleAnalytics4": googleAnalytics4,
      "googleMyBusiness": GoogleMyBusiness,
      "googleSearchConsole": GoogleSearchConsole,
      "id": ID,
      "insightTotal": 987,
      "instagramAds": InstagramAds,
      "isArchived": false,
      "isDeleted": false,
      "kpiTotal": 987,
      "kpis": TotalKPIStatus,
      "labels": [Label],
      "linkedInAds": linkedInAds,
      "logo": "abc123",
      "microsoftAds": microsoftAds,
      "name": "abc123",
      "revisions": 123,
      "sortKey": "abc123",
      "tiktokAds": tiktokAds,
      "twitterAds": twitterAds
    }
  }
}

unArchiveDataPipeline

Returns a DataPipeLine

Name Description
input - DataPipeLineInput

Example

Query
mutation unArchiveDataPipeline($input: DataPipeLineInput) {
  unArchiveDataPipeline(input: $input) {
    accountId
    appliedExtensions {
      ...DataPipelineAppliedExtensionFragment
    }
    changeHistory
    configuration {
      ...DataPipeLineConfigurationFragment
    }
    creditUsed
    dateCreated
    dateLastSyncCompleted
    dateUpdated
    destination {
      ...DestinationFragment
    }
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    executionName
    extensionCount
    funnelTerms
    hasInitAnalysis
    isArchived
    isDeleted
    isTitleAutoGenerated
    jobType
    log {
      ...DataPipeLineLogFragment
    }
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyZapier
    report
    revisions
    sortKey
    source {
      ...DataSourceFragment
    }
    status
    title
    totalRowsLoaded
  }
}
Variables
{"input": DataPipeLineInput}
Response
{
  "data": {
    "unArchiveDataPipeline": {
      "accountId": "xyz789",
      "appliedExtensions": [DataPipelineAppliedExtension],
      "changeHistory": "abc123",
      "configuration": DataPipeLineConfiguration,
      "creditUsed": 987,
      "dateCreated": "xyz789",
      "dateLastSyncCompleted": "xyz789",
      "dateUpdated": "xyz789",
      "destination": Destination,
      "errorDetails": PipelineErrorDetails,
      "executionName": "abc123",
      "extensionCount": 987,
      "funnelTerms": AWSJSON,
      "hasInitAnalysis": false,
      "isArchived": false,
      "isDeleted": true,
      "isTitleAutoGenerated": true,
      "jobType": "xyz789",
      "log": [DataPipeLineLog],
      "notifyConfig": NotifyConfig,
      "notifyEmail": true,
      "notifySlack": true,
      "notifyZapier": false,
      "report": AWSJSON,
      "revisions": 123,
      "sortKey": "abc123",
      "source": DataSource,
      "status": "xyz789",
      "title": "xyz789",
      "totalRowsLoaded": 987
    }
  }
}

unarchiveKPI

Returns a KPI

Name Description
input - KPITransactionInput

Example

Query
mutation unarchiveKPI($input: KPITransactionInput) {
  unarchiveKPI(input: $input) {
    accountId
    advancedSettings
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...KPIConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    id
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    report {
      ...KPIReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": KPITransactionInput}
Response
{
  "data": {
    "unarchiveKPI": {
      "accountId": "abc123",
      "advancedSettings": AWSJSON,
      "changeHistory": "xyz789",
      "client": Client,
      "clientId": "abc123",
      "clientName": "xyz789",
      "commentCount": 123,
      "comments": [Comment],
      "configuration": KPIConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "abc123",
      "dateUpdated": "abc123",
      "history": AWSJSON,
      "id": "abc123",
      "isArchived": false,
      "isDeleted": true,
      "jobStatus": REPORT_STATUS,
      "jobType": "xyz789",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "xyz789",
      "notifySchedSlack": "xyz789",
      "notifySchedWebhook": "xyz789",
      "report": KPIReport,
      "revisions": 987,
      "schedEmail": "abc123",
      "schedSlack": "xyz789",
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "xyz789",
      "title": "abc123",
      "user": User,
      "userId": "abc123",
      "watchList": ["abc123"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "xyz789"
    }
  }
}

updateAccountPreference

Returns an AccountPreference

Name Description
input - InputAccountPreference

Example

Query
mutation updateAccountPreference($input: InputAccountPreference) {
  updateAccountPreference(input: $input) {
    budgets {
      ...BudgetPreferenceFragment
    }
    dataWarehouse {
      ...DataWarehouseFragment
    }
    insights {
      ...InsightPreferenceFragment
    }
    kpis {
      ...KpiPreferenceFragment
    }
    revision
  }
}
Variables
{"input": InputAccountPreference}
Response
{
  "data": {
    "updateAccountPreference": {
      "budgets": BudgetPreference,
      "dataWarehouse": DataWarehouse,
      "insights": InsightPreference,
      "kpis": KpiPreference,
      "revision": 987
    }
  }
}

updateAnomaly

Returns an Anomaly

Name Description
input - AnomalyInput

Example

Query
mutation updateAnomaly($input: AnomalyInput) {
  updateAnomaly(input: $input) {
    accountId
    authId
    changeHistory
    clientId
    clientName
    commentCount
    configuration {
      ...AnomalyConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateLastInsightCreated
    dateLastRun
    dateUpdated
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    report {
      ...AnomalyReportFragment
    }
    revisions
    schedWebhook
    service
    sortKey
    title
    userId
    watchList
    webhookURL
  }
}
Variables
{"input": AnomalyInput}
Response
{
  "data": {
    "updateAnomaly": {
      "accountId": "abc123",
      "authId": "abc123",
      "changeHistory": "xyz789",
      "clientId": "xyz789",
      "clientName": "xyz789",
      "commentCount": 123,
      "configuration": AnomalyConfiguration,
      "connectionStatus": "xyz789",
      "dateCreated": "xyz789",
      "dateLastInsightCreated": "xyz789",
      "dateLastRun": "abc123",
      "dateUpdated": "abc123",
      "errorDetails": PipelineErrorDetails,
      "isArchived": true,
      "isDeleted": false,
      "jobStatus": ANOMALY_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifyEmail": true,
      "notifySlack": true,
      "notifyWebhook": true,
      "report": AnomalyReport,
      "revisions": 123,
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "xyz789",
      "userId": "abc123",
      "watchList": ["xyz789"],
      "webhookURL": "abc123"
    }
  }
}

updateAutomation

Returns an Automation

Name Description
input - AutomationInput

Example

Query
mutation updateAutomation($input: AutomationInput) {
  updateAutomation(input: $input) {
    accountId
    clientId
    clientName
    cognitoUserId
    configuration
    connectionStatus
    dateLastInsightCreated
    dateLastRun
    executionArn
    gmbLocationId
    isArchived
    isDeleted
    jobId
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyWebhook
    revisions
    service
    sortKey
    title
    webhookURL
  }
}
Variables
{"input": AutomationInput}
Response
{
  "data": {
    "updateAutomation": {
      "accountId": "abc123",
      "clientId": "xyz789",
      "clientName": "abc123",
      "cognitoUserId": "abc123",
      "configuration": AWSJSON,
      "connectionStatus": "xyz789",
      "dateLastInsightCreated": "abc123",
      "dateLastRun": "abc123",
      "executionArn": "abc123",
      "gmbLocationId": "abc123",
      "isArchived": false,
      "isDeleted": false,
      "jobId": "abc123",
      "jobStatus": ANOMALY_STATUS,
      "jobType": "abc123",
      "notifyConfig": NotifyConfig,
      "notifyEmail": true,
      "notifySlack": true,
      "notifyWebhook": false,
      "revisions": 123,
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "abc123",
      "webhookURL": "abc123"
    }
  }
}

updateBudget

Returns a Budget

Name Description
input - UpdateBudgetInput

Example

Query
mutation updateBudget($input: UpdateBudgetInput) {
  updateBudget(input: $input) {
    accountId
    authEmail
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...BudgetConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    plannerData {
      ...plannerMapDetailsFragment
    }
    report {
      ...BudgetReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": UpdateBudgetInput}
Response
{
  "data": {
    "updateBudget": {
      "accountId": "xyz789",
      "authEmail": "abc123",
      "changeHistory": "xyz789",
      "client": Client,
      "clientId": "xyz789",
      "clientName": "abc123",
      "commentCount": 987,
      "comments": [Comment],
      "configuration": BudgetConfiguration,
      "connectionStatus": "xyz789",
      "dateCreated": "abc123",
      "dateUpdated": "abc123",
      "history": AWSJSON,
      "isArchived": false,
      "isDeleted": false,
      "jobStatus": REPORT_STATUS,
      "jobType": "xyz789",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "abc123",
      "notifySchedSlack": "abc123",
      "notifySchedWebhook": "xyz789",
      "plannerData": [plannerMapDetails],
      "report": BudgetReport,
      "revisions": 987,
      "schedEmail": "xyz789",
      "schedSlack": "xyz789",
      "schedWebhook": "xyz789",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "xyz789",
      "user": User,
      "userId": "abc123",
      "watchList": ["xyz789"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "abc123"
    }
  }
}

updateBudgetPlanner

Returns [plannerMapDetails]

Name Description
input - UpdateBudgetPlannerInput

Example

Query
mutation updateBudgetPlanner($input: UpdateBudgetPlannerInput) {
  updateBudgetPlanner(input: $input) {
    endDate
    spend
    startDate
    target
  }
}
Variables
{"input": UpdateBudgetPlannerInput}
Response
{
  "data": {
    "updateBudgetPlanner": [
      {
        "endDate": "xyz789",
        "spend": "xyz789",
        "startDate": "abc123",
        "target": "abc123"
      }
    ]
  }
}

updateClient

Returns a Client

Name Description
input - UpdateClientInput

Example

Query
mutation updateClient($input: UpdateClientInput) {
  updateClient(input: $input) {
    Anomaly(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AnomalyConnectionFragment
    }
    Automation(filters: $filters, isArchived: $isArchived, nextToken: $nextToken) {
      ...AutomationFragment
    }
    Budget(filters: $filters, isArchived: $isArchived) {
      ...BudgetConnectionFragment
    }
    Insight(exclude: $exclude, filters: $filters, isResolved: $isResolved, nextToken: $nextToken, type: $type) {
      ...InsightsConnectionFragment
    }
    KPI(filters: $filters, isArchived: $isArchived) {
      ...KPIConnectionFragment
    }
    accountConnectionStatus(authStatus: $authStatus, oauthType: $oauthType) {
      ...AccountConnectionFragment
    }
    accountId
    anomalyTotal
    automationTotal
    budgetTotal
    budgets {
      ...TotalBudgetStatusFragment
    }
    connectionStatus {
      ...ClientConnectionServicesStatusFragment
    }
    dateCreated
    dateUpdated
    domain
    facebookAds {
      ...FacebookAdsConnectionFragment
    }
    globalConnectionStatus
    googleAds {
      ...GoogleAdsFragment
    }
    googleAnalytics {
      ...GoogleAnalyticsFragment
    }
    googleAnalytics4 {
      ...googleAnalytics4Fragment
    }
    googleMyBusiness {
      ...GoogleMyBusinessFragment
    }
    googleSearchConsole {
      ...GoogleSearchConsoleFragment
    }
    id
    insightTotal
    instagramAds {
      ...InstagramAdsFragment
    }
    isArchived
    isDeleted
    kpiTotal
    kpis {
      ...TotalKPIStatusFragment
    }
    labels {
      ...LabelFragment
    }
    linkedInAds {
      ...linkedInAdsFragment
    }
    logo
    microsoftAds {
      ...microsoftAdsFragment
    }
    name
    revisions
    sortKey
    tiktokAds {
      ...tiktokAdsFragment
    }
    twitterAds {
      ...twitterAdsFragment
    }
  }
}
Variables
{"input": UpdateClientInput}
Response
{
  "data": {
    "updateClient": {
      "Anomaly": AnomalyConnection,
      "Automation": [Automation],
      "Budget": BudgetConnection,
      "Insight": InsightsConnection,
      "KPI": KPIConnection,
      "accountConnectionStatus": [AccountConnection],
      "accountId": "abc123",
      "anomalyTotal": 123,
      "automationTotal": 123,
      "budgetTotal": 123,
      "budgets": TotalBudgetStatus,
      "connectionStatus": ClientConnectionServicesStatus,
      "dateCreated": "abc123",
      "dateUpdated": "xyz789",
      "domain": "abc123",
      "facebookAds": FacebookAdsConnection,
      "globalConnectionStatus": GlobalConnectionStatusENUM,
      "googleAds": GoogleAds,
      "googleAnalytics": GoogleAnalytics,
      "googleAnalytics4": googleAnalytics4,
      "googleMyBusiness": GoogleMyBusiness,
      "googleSearchConsole": GoogleSearchConsole,
      "id": ID,
      "insightTotal": 123,
      "instagramAds": InstagramAds,
      "isArchived": true,
      "isDeleted": true,
      "kpiTotal": 987,
      "kpis": TotalKPIStatus,
      "labels": [Label],
      "linkedInAds": linkedInAds,
      "logo": "abc123",
      "microsoftAds": microsoftAds,
      "name": "abc123",
      "revisions": 123,
      "sortKey": "xyz789",
      "tiktokAds": tiktokAds,
      "twitterAds": twitterAds
    }
  }
}

updateComment

Returns a Comment

Name Description
input - UpdateCommentInput

Example

Query
mutation updateComment($input: UpdateCommentInput) {
  updateComment(input: $input) {
    accountId
    commentMethod
    commentTimestamp
    commentTo
    dateCreated
    dateUpdated
    deletedBy
    isDeleted
    mentionedUsers
    message
    revisions
    sortKey
    type
    updatedBy
    user {
      ...UserFragment
    }
    userId
  }
}
Variables
{"input": UpdateCommentInput}
Response
{
  "data": {
    "updateComment": {
      "accountId": "xyz789",
      "commentMethod": CommentMethod,
      "commentTimestamp": "abc123",
      "commentTo": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "abc123",
      "deletedBy": "xyz789",
      "isDeleted": false,
      "mentionedUsers": ["xyz789"],
      "message": "abc123",
      "revisions": 123,
      "sortKey": "xyz789",
      "type": CommentType,
      "updatedBy": "abc123",
      "user": User,
      "userId": "abc123"
    }
  }
}

updateDataPipeLine

Returns a DataPipeLine

Name Description
input - DataPipeLineInput

Example

Query
mutation updateDataPipeLine($input: DataPipeLineInput) {
  updateDataPipeLine(input: $input) {
    accountId
    appliedExtensions {
      ...DataPipelineAppliedExtensionFragment
    }
    changeHistory
    configuration {
      ...DataPipeLineConfigurationFragment
    }
    creditUsed
    dateCreated
    dateLastSyncCompleted
    dateUpdated
    destination {
      ...DestinationFragment
    }
    errorDetails {
      ...PipelineErrorDetailsFragment
    }
    executionName
    extensionCount
    funnelTerms
    hasInitAnalysis
    isArchived
    isDeleted
    isTitleAutoGenerated
    jobType
    log {
      ...DataPipeLineLogFragment
    }
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifyEmail
    notifySlack
    notifyZapier
    report
    revisions
    sortKey
    source {
      ...DataSourceFragment
    }
    status
    title
    totalRowsLoaded
  }
}
Variables
{"input": DataPipeLineInput}
Response
{
  "data": {
    "updateDataPipeLine": {
      "accountId": "xyz789",
      "appliedExtensions": [DataPipelineAppliedExtension],
      "changeHistory": "xyz789",
      "configuration": DataPipeLineConfiguration,
      "creditUsed": 123,
      "dateCreated": "xyz789",
      "dateLastSyncCompleted": "abc123",
      "dateUpdated": "abc123",
      "destination": Destination,
      "errorDetails": PipelineErrorDetails,
      "executionName": "xyz789",
      "extensionCount": 987,
      "funnelTerms": AWSJSON,
      "hasInitAnalysis": true,
      "isArchived": true,
      "isDeleted": false,
      "isTitleAutoGenerated": true,
      "jobType": "abc123",
      "log": [DataPipeLineLog],
      "notifyConfig": NotifyConfig,
      "notifyEmail": false,
      "notifySlack": true,
      "notifyZapier": false,
      "report": AWSJSON,
      "revisions": 987,
      "sortKey": "xyz789",
      "source": DataSource,
      "status": "xyz789",
      "title": "abc123",
      "totalRowsLoaded": 123
    }
  }
}

updateFirstPromoter

Returns an updateFirstPromoterResponse

Name Description
accountId - String!
cognitoUserId - String!
email - String!
tid - String!

Example

Query
mutation updateFirstPromoter($accountId: String!, $cognitoUserId: String!, $email: String!, $tid: String!) {
  updateFirstPromoter(accountId: $accountId, cognitoUserId: $cognitoUserId, email: $email, tid: $tid) {
    success
  }
}
Variables
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "email": "abc123",
  "tid": "abc123"
}
Response
{"data": {"updateFirstPromoter": {"success": false}}}

updateKPI

Returns a KPI

Name Description
input - UpdateKPIInput

Example

Query
mutation updateKPI($input: UpdateKPIInput) {
  updateKPI(input: $input) {
    accountId
    advancedSettings
    changeHistory
    client {
      ...ClientFragment
    }
    clientId
    clientName
    commentCount
    comments(lastCommentTimestamp: $lastCommentTimestamp, limit: $limit) {
      ...CommentFragment
    }
    configuration {
      ...KPIConfigurationFragment
    }
    connectionStatus
    dateCreated
    dateUpdated
    history
    id
    isArchived
    isDeleted
    jobStatus
    jobType
    notifyConfig {
      ...NotifyConfigFragment
    }
    notifySchedEmail
    notifySchedSlack
    notifySchedWebhook
    report {
      ...KPIReportFragment
    }
    revisions
    schedEmail
    schedSlack
    schedWebhook
    service
    sortKey
    title
    user {
      ...UserFragment
    }
    userId
    watchList
    webhookEvents
    webhookURL
  }
}
Variables
{"input": UpdateKPIInput}
Response
{
  "data": {
    "updateKPI": {
      "accountId": "abc123",
      "advancedSettings": AWSJSON,
      "changeHistory": "xyz789",
      "client": Client,
      "clientId": "xyz789",
      "clientName": "abc123",
      "commentCount": 987,
      "comments": [Comment],
      "configuration": KPIConfiguration,
      "connectionStatus": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "history": AWSJSON,
      "id": "abc123",
      "isArchived": true,
      "isDeleted": false,
      "jobStatus": REPORT_STATUS,
      "jobType": "xyz789",
      "notifyConfig": NotifyConfig,
      "notifySchedEmail": "abc123",
      "notifySchedSlack": "abc123",
      "notifySchedWebhook": "abc123",
      "report": KPIReport,
      "revisions": 123,
      "schedEmail": "xyz789",
      "schedSlack": "xyz789",
      "schedWebhook": "abc123",
      "service": SERVICE,
      "sortKey": "abc123",
      "title": "abc123",
      "user": User,
      "userId": "xyz789",
      "watchList": ["abc123"],
      "webhookEvents": [WEBHOOK_ENUM],
      "webhookURL": "abc123"
    }
  }
}

updateLabel

Returns an OutputLabel

Name Description
input - UpdateLabelInput

Example

Query
mutation updateLabel($input: UpdateLabelInput) {
  updateLabel(input: $input) {
    accountId
    clientList
    label
    revisions
    selected
    sortKey
  }
}
Variables
{"input": UpdateLabelInput}
Response
{
  "data": {
    "updateLabel": {
      "accountId": "xyz789",
      "clientList": ["xyz789"],
      "label": "xyz789",
      "revisions": 123,
      "selected": true,
      "sortKey": "xyz789"
    }
  }
}

updatePipelineExtension

Returns a PipelineExtension

Name Description
input - PipelineExtensionInput

Example

Query
mutation updatePipelineExtension($input: PipelineExtensionInput) {
  updatePipelineExtension(input: $input) {
    accountId
    extensionId
    pipelineId
    properties {
      ...PipelineExtensionPropertiesFragment
    }
  }
}
Variables
{"input": PipelineExtensionInput}
Response
{
  "data": {
    "updatePipelineExtension": {
      "accountId": "xyz789",
      "extensionId": "xyz789",
      "pipelineId": "abc123",
      "properties": [PipelineExtensionProperties]
    }
  }
}

userCreate

Returns an Account

Name Description
accountId - String
email - String
password - String

Example

Query
mutation userCreate($accountId: String, $email: String, $password: String) {
  userCreate(accountId: $accountId, email: $email, password: $password) {
    accountId
    accountType
    betaAccess
    clientId
    clientList
    cubeToken
    dateCreated
    dateUpdated
    domain
    hasCard
    inProgress
    logo
    name
    revisions
    sortKey
    status
    timezone
    totalAnomalies
    totalBudgets
    totalClients
    totalKpis
    transactionStatus
    weekStart
    zapierWebHook
  }
}
Variables
{"accountId": "abc123", "email": "xyz789", "password": "xyz789"}
Response
{
  "data": {
    "userCreate": {
      "accountId": "abc123",
      "accountType": "xyz789",
      "betaAccess": true,
      "clientId": "abc123",
      "clientList": ["abc123"],
      "cubeToken": "xyz789",
      "dateCreated": "abc123",
      "dateUpdated": "xyz789",
      "domain": "xyz789",
      "hasCard": true,
      "inProgress": false,
      "logo": "xyz789",
      "name": "abc123",
      "revisions": 123,
      "sortKey": "abc123",
      "status": "abc123",
      "timezone": "xyz789",
      "totalAnomalies": 123,
      "totalBudgets": 123,
      "totalClients": 987,
      "totalKpis": 987,
      "transactionStatus": "abc123",
      "weekStart": "abc123",
      "zapierWebHook": AWSJSON
    }
  }
}

userInvite

Returns a UserInviteOutput

Name Description
input - UserInviteInput

Example

Query
mutation userInvite($input: UserInviteInput) {
  userInvite(input: $input) {
    acceptedInvite
    accountId
    dateCreated
    dateUpdated
    email
    firstName
    isDeleted
    isPrimary
    lastName
    logo
    newPassword
    sortKey
    status
    tempPassword
    userId
  }
}
Variables
{"input": UserInviteInput}
Response
{
  "data": {
    "userInvite": {
      "acceptedInvite": false,
      "accountId": "abc123",
      "dateCreated": "xyz789",
      "dateUpdated": "xyz789",
      "email": "abc123",
      "firstName": "xyz789",
      "isDeleted": true,
      "isPrimary": true,
      "lastName": "xyz789",
      "logo": "xyz789",
      "newPassword": "abc123",
      "sortKey": "abc123",
      "status": "abc123",
      "tempPassword": "xyz789",
      "userId": "abc123"
    }
  }
}

userPasswordChange

Returns a UserPasswordChangeOutput

Name Description
input - UserPasswordChangeInput

Example

Query
mutation userPasswordChange($input: UserPasswordChangeInput) {
  userPasswordChange(input: $input) {
    accountId
  }
}
Variables
{"input": UserPasswordChangeInput}
Response
{"data": {"userPasswordChange": {"accountId": "abc123"}}}

userResendInvite

Returns a UserResendInviteResponse

Name Description
input - UserResendInviteInput

Example

Query
mutation userResendInvite($input: UserResendInviteInput) {
  userResendInvite(input: $input) {
    accountId
    email
    name
    userId
  }
}
Variables
{"input": UserResendInviteInput}
Response
{
  "data": {
    "userResendInvite": {
      "accountId": "abc123",
      "email": "xyz789",
      "name": "xyz789",
      "userId": "xyz789"
    }
  }
}

userUpload

Returns a UserUploadResponse

Name Description
input - UserUploadInput

Example

Query
mutation userUpload($input: UserUploadInput) {
  userUpload(input: $input) {
    id
    url
  }
}
Variables
{"input": UserUploadInput}
Response
{"data": {"userUpload": {"id": "xyz789", "url": "abc123"}}}

watchList

Returns a WatchList

Name Description
input - WatchListInput

Example

Query
mutation watchList($input: WatchListInput) {
  watchList(input: $input) {
    accountId
    items
    sortKey
  }
}
Variables
{"input": WatchListInput}
Response
{
  "data": {
    "watchList": {
      "accountId": "abc123",
      "items": ["abc123"],
      "sortKey": "xyz789"
    }
  }
}

zapierWebhookSubscribe

Returns an outputZapierWebhookSubscribe

Name Description
input - inputZapierWebhookSubscribe

Example

Query
mutation zapierWebhookSubscribe($input: inputZapierWebhookSubscribe) {
  zapierWebhookSubscribe(input: $input) {
    accountId
    successful
  }
}
Variables
{"input": inputZapierWebhookSubscribe}
Response
{
  "data": {
    "zapierWebhookSubscribe": {"accountId": "xyz789", "successful": true}
  }
}

zapierWebhookUnSubscribe

Example

Query
mutation zapierWebhookUnSubscribe($input: inputZapierWebhookUnSubscribe) {
  zapierWebhookUnSubscribe(input: $input) {
    accountId
    isDeleted
  }
}
Variables
{"input": inputZapierWebhookUnSubscribe}
Response
{
  "data": {
    "zapierWebhookUnSubscribe": {"accountId": "abc123", "isDeleted": true}
  }
}

Types

ACCESS_CONTROL_PROVIDER

Enum Value Description

AMAZON_WEB_SERVICES

GOOGLE_CLOUD_PLATFORM

GOOGLE_CLOUD_PLATFORM_MANAGED

ACCOUNT_PLAN

Enum Value Description

AGENCY_GROWTH

AGENCY_PLUS

AGENCY_PRO

AGENCY_STARTER

BUSINESS

ACCOUNT_TYPE

Enum Value Description

AGENCY

BUSINESS

ANOMALY_DIRECTION

Enum Value Description

BOTH

NEG

POS

ANOMALY_STATUS

Enum Value Description

ACTIVE

CRITICAL

ERROR

WARNING

ANOMALY_THRESHOLD

Enum Value Description

MED_MAX

NONE

P95

P99

APP_ENV

Enum Value Description

DEVELOPMENT

PRODUCTION

STAGING

AWSJSON

Example
object

AWSURL

Example
object

Account

Field Name Description
accountId - String
accountType - String
betaAccess - Boolean
clientId - String
clientList - [String]
cubeToken - String
dateCreated - String
dateUpdated - String
domain - String
hasCard - Boolean
inProgress - Boolean
logo - String
name - String
revisions - Int
sortKey - String
status - String
timezone - String
totalAnomalies - Int
totalBudgets - Int
totalClients - Int
totalKpis - Int
transactionStatus - String
weekStart - String
zapierWebHook - AWSJSON
Example
{
  "accountId": "abc123",
  "accountType": "xyz789",
  "betaAccess": false,
  "clientId": "xyz789",
  "clientList": ["xyz789"],
  "cubeToken": "abc123",
  "dateCreated": "abc123",
  "dateUpdated": "abc123",
  "domain": "xyz789",
  "hasCard": false,
  "inProgress": true,
  "logo": "abc123",
  "name": "xyz789",
  "revisions": 123,
  "sortKey": "xyz789",
  "status": "abc123",
  "timezone": "xyz789",
  "totalAnomalies": 987,
  "totalBudgets": 123,
  "totalClients": 987,
  "totalKpis": 987,
  "transactionStatus": "abc123",
  "weekStart": "xyz789",
  "zapierWebHook": AWSJSON
}

AccountAddOns

Field Name Description
accountId - String
addOnId - String
details - [AddOnPack]
Example
{
  "accountId": "abc123",
  "addOnId": "abc123",
  "details": [AddOnPack]
}

AccountConnection

Field Name Description
accountId - String
authStatus - CONNECTION_STATUS
clientList - [String]
domain - String
email - String
isClientConnected - Boolean
isCompleted - Boolean
oauthType - String
scopes - [String]
sortKey - String
teamId - String
teamName - String
url - String
userId - String
username - String
Example
{
  "accountId": "abc123",
  "authStatus": CONNECTION_STATUS,
  "clientList": ["abc123"],
  "domain": "xyz789",
  "email": "xyz789",
  "isClientConnected": false,
  "isCompleted": true,
  "oauthType": "xyz789",
  "scopes": ["xyz789"],
  "sortKey": "xyz789",
  "teamId": "xyz789",
  "teamName": "xyz789",
  "url": "xyz789",
  "userId": "xyz789",
  "username": "abc123"
}

AccountConnectionCreateInput

Input Field Description
accountId - String!
cognitoUserId - String
oauthType - OAUTH_TYPE!
scopes - [String!]!
sortKey - String
userId - String
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "oauthType": OAUTH_TYPE,
  "scopes": ["abc123"],
  "sortKey": "abc123",
  "userId": "abc123"
}

AccountConnectionCreateResponse

Field Name Description
id - String
url - String
Example
{"id": "abc123", "url": "xyz789"}

AccountConnectionDeleteResponse

Field Name Description
accountId - String
sortKey - String
Example
{"accountId": "xyz789", "sortKey": "xyz789"}

AccountConnectionItems

Field Name Description
items - [AccountConnection]
nextToken - String
scannedCount - Int
Example
{
  "items": [AccountConnection],
  "nextToken": "xyz789",
  "scannedCount": 123
}

AccountInvoice

Field Name Description
amount - String
date - String
link - String
Example
{"amount": "abc123", "date": "abc123", "link": "abc123"}

AccountInvoices

Field Name Description
accountId - String
invoices - [AccountInvoice]
Example
{"accountId": "abc123", "invoices": [AccountInvoice]}

AccountPreference

Field Name Description
budgets - BudgetPreference
dataWarehouse - DataWarehouse
insights - InsightPreference
kpis - KpiPreference
revision - Int
Example
{
  "budgets": BudgetPreference,
  "dataWarehouse": DataWarehouse,
  "insights": InsightPreference,
  "kpis": KpiPreference,
  "revision": 123
}

AccountSignUpInput

Input Field Description
accountName - String!
accountType - ACCOUNT_TYPE!
email - String!
fullName - String!
password - String!
Example
{
  "accountName": "xyz789",
  "accountType": ACCOUNT_TYPE,
  "email": "xyz789",
  "fullName": "xyz789",
  "password": "abc123"
}

AccountUpdateInput

Input Field Description
domain - String
timezone - String
weekStart - String
Example
{"domain": "xyz789", "timezone": "abc123", "weekStart": "xyz789"}

AccountUploadInput

Input Field Description
accountId - String!
cognitoUserId - String
logo - LogoInput!
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "logo": LogoInput
}

AccountUploadResponse

Field Name Description
accountId - String
url - String
Example
{"accountId": "abc123", "url": "xyz789"}

ActionItemType

Enum Value Description

anomaly

automation

budget

client

comment

insight

kpi

pipeline

AddOn

Field Name Description
id - String
quantity - Int
type - String
used - Int
Example
{"id": "abc123", "quantity": 123, "type": "abc123", "used": 987}

AddOnPack

Field Name Description
adjustment - String
currentAddOn - Int
currentPlan - Int
feature - String
hasError - Boolean
newTotal - Int
used - Int
Example
{
  "adjustment": "xyz789",
  "currentAddOn": 987,
  "currentPlan": 123,
  "feature": "xyz789",
  "hasError": true,
  "newTotal": 987,
  "used": 123
}

AdsCampaignFilter

Field Name Description
id - String
labels - [String]
name - String
Example
{"id": "abc123", "labels": ["xyz789"], "name": "xyz789"}

AdsCampaignFilterInput

Input Field Description
accountId - String!
clientId - String!
filters - AdsCampaignLabelInput
source - AdsCampaignSource
Example
{
  "accountId": "abc123",
  "clientId": "abc123",
  "filters": AdsCampaignLabelInput,
  "source": AdsCampaignSource
}

AdsCampaignLabelInput

Input Field Description
campaign - CampaignFilterInput
label - LabelFilterInput
Example
{
  "campaign": CampaignFilterInput,
  "label": LabelFilterInput
}

AdsCampaignSource

Enum Value Description

FACEBOOK

GOOGLE

GOOGLE_ANALYTICS

GOOGLE_ANALYTICS4

GOOGLE_MY_BUSINESS

INSTAGRAM

LINKEDIN

MICROSOFT

TIKTOK

TWITTER

AdsCampaigns

Field Name Description
advertisingChannelType - String
baseCampaign - String
campaignBudget - String
endDate - String
id - String
name - String
servingStatus - String
startDate - String
status - String
Example
{
  "advertisingChannelType": "abc123",
  "baseCampaign": "abc123",
  "campaignBudget": "xyz789",
  "endDate": "xyz789",
  "id": "xyz789",
  "name": "abc123",
  "servingStatus": "xyz789",
  "startDate": "abc123",
  "status": "abc123"
}

AdsLabelList

Field Name Description
backgroundColor - String
description - String
id - String
name - String
resourceName - String
Example
{
  "backgroundColor": "abc123",
  "description": "abc123",
  "id": "abc123",
  "name": "abc123",
  "resourceName": "abc123"
}

Anomaly

Field Name Description
accountId - String
authId - String
changeHistory - String
clientId - String
clientName - String
commentCount - Int
configuration - AnomalyConfiguration
connectionStatus - String
dateCreated - String
dateLastInsightCreated - String
dateLastRun - String
dateUpdated - String
errorDetails - PipelineErrorDetails
isArchived - Boolean
isDeleted - Boolean
jobStatus - ANOMALY_STATUS
jobType - String
notifyConfig - NotifyConfig
notifyEmail - Boolean
notifySlack - Boolean
notifyWebhook - Boolean
report - AnomalyReport
revisions - Int
schedWebhook - String
service - SERVICE
sortKey - String
title - String
userId - String
watchList - [String]
webhookURL - String
Example
{
  "accountId": "abc123",
  "authId": "abc123",
  "changeHistory": "abc123",
  "clientId": "xyz789",
  "clientName": "xyz789",
  "commentCount": 123,
  "configuration": AnomalyConfiguration,
  "connectionStatus": "abc123",
  "dateCreated": "abc123",
  "dateLastInsightCreated": "abc123",
  "dateLastRun": "xyz789",
  "dateUpdated": "abc123",
  "errorDetails": PipelineErrorDetails,
  "isArchived": false,
  "isDeleted": false,
  "jobStatus": ANOMALY_STATUS,
  "jobType": "xyz789",
  "notifyConfig": NotifyConfig,
  "notifyEmail": true,
  "notifySlack": true,
  "notifyWebhook": false,
  "report": AnomalyReport,
  "revisions": 987,
  "schedWebhook": "abc123",
  "service": SERVICE,
  "sortKey": "xyz789",
  "title": "xyz789",
  "userId": "xyz789",
  "watchList": ["abc123"],
  "webhookURL": "abc123"
}

AnomalyAdvanceSettings

Field Name Description
longTerm - Boolean!
maxAnomRatio - Float!
median - Int!
scheduleTime - String!
scheduleTimeZone - String!
sensitivity - String!
threshold - ANOMALY_THRESHOLD!
Example
{
  "longTerm": true,
  "maxAnomRatio": 987.65,
  "median": 987,
  "scheduleTime": "abc123",
  "scheduleTimeZone": "abc123",
  "sensitivity": "xyz789",
  "threshold": ANOMALY_THRESHOLD
}

AnomalyAdvanceSettingsInput

Input Field Description
longTerm - Boolean!
maxAnomRatio - Float!
median - Int!
scheduleTime - String!
scheduleTimeZone - String!
sensitivity - String!
threshold - ANOMALY_THRESHOLD!
Example
{
  "longTerm": false,
  "maxAnomRatio": 987.65,
  "median": 123,
  "scheduleTime": "abc123",
  "scheduleTimeZone": "abc123",
  "sensitivity": "xyz789",
  "threshold": ANOMALY_THRESHOLD
}

AnomalyConfiguration

Field Name Description
advancedSettings - AnomalyAdvanceSettings
allCampaigns - Boolean
campaignFilters - AWSJSON
campaignIds - [String]
isTitleAutoGenerated - Boolean
spreadsheetDetails - GoogleSpreadsheetOutput
targetDirection - ANOMALY_DIRECTION!
targetFrequency - TIME_PERIOD!
targetLongTerm - Boolean!
targetMaxAnom - Float!
targetMedian - Int!
targetMetricId - String!
targetMetricName - String!
targetSegmentId - String
targetSegmentName - String
targetSensitivity - Float!
targetThreshold - ANOMALY_THRESHOLD!
targetTimeInterval - String
targetTimePeriod - TIME_PERIOD!
Example
{
  "advancedSettings": AnomalyAdvanceSettings,
  "allCampaigns": false,
  "campaignFilters": AWSJSON,
  "campaignIds": ["xyz789"],
  "isTitleAutoGenerated": true,
  "spreadsheetDetails": GoogleSpreadsheetOutput,
  "targetDirection": ANOMALY_DIRECTION,
  "targetFrequency": TIME_PERIOD,
  "targetLongTerm": false,
  "targetMaxAnom": 123.45,
  "targetMedian": 123,
  "targetMetricId": "abc123",
  "targetMetricName": "abc123",
  "targetSegmentId": "abc123",
  "targetSegmentName": "abc123",
  "targetSensitivity": 123.45,
  "targetThreshold": ANOMALY_THRESHOLD,
  "targetTimeInterval": "abc123",
  "targetTimePeriod": TIME_PERIOD
}

AnomalyConfigurationInput

Field Name Description
advancedSettings - AnomalyAdvanceSettingsInput
allCampaigns - Boolean
campaignFilters - AWSJSON
campaignIds - [String]
isTitleAutoGenerated - Boolean
spreadsheetDetails - GoogleSpreadsheetInput
targetDirection - ANOMALY_DIRECTION!
targetFrequency - TIME_PERIOD!
targetLongTerm - Boolean
targetMaxAnom - Float
targetMedian - Int
targetMetricId - String
targetMetricName - String
targetSegmentId - String
targetSegmentName - String
targetSensitivity - Float
targetThreshold - ANOMALY_THRESHOLD
targetTimeInterval - String
targetTimePeriod - TIME_PERIOD!
title - String
Example
{
  "advancedSettings": AnomalyAdvanceSettingsInput,
  "allCampaigns": true,
  "campaignFilters": AWSJSON,
  "campaignIds": ["abc123"],
  "isTitleAutoGenerated": false,
  "spreadsheetDetails": GoogleSpreadsheetInput,
  "targetDirection": ANOMALY_DIRECTION,
  "targetFrequency": TIME_PERIOD,
  "targetLongTerm": false,
  "targetMaxAnom": 123.45,
  "targetMedian": 123,
  "targetMetricId": "abc123",
  "targetMetricName": "abc123",
  "targetSegmentId": "xyz789",
  "targetSegmentName": "xyz789",
  "targetSensitivity": 987.65,
  "targetThreshold": ANOMALY_THRESHOLD,
  "targetTimeInterval": "xyz789",
  "targetTimePeriod": TIME_PERIOD,
  "title": "abc123"
}

AnomalyConnection

Field Name Description
count - Int
currentAccountSubscriptionValue - Int
isNearSubscriptionLimit - Boolean
items - [Anomaly]
nextToken - String
scannedCount - Int
totalSubscription - Int
Example
{
  "count": 987,
  "currentAccountSubscriptionValue": 123,
  "isNearSubscriptionLimit": true,
  "items": [Anomaly],
  "nextToken": "xyz789",
  "scannedCount": 123,
  "totalSubscription": 123
}

AnomalyGraphData

Field Name Description
Example
{}

AnomalyGraphDataInput

Field Name Description
Example
{}

AnomalyGraphDataReport

Field Name Description
Example
{}

AnomalyGraphDataReportInput

Field Name Description
Example
{}

AnomalyInput

Input Field Description
accountId - String
anomalySortKey - String
authEmail - String
authId - String
clientId - String
cognitoUserId - String!
configuration - AnomalyConfigurationInput!
notifyConfig - notifyConfigInput
notifyEmail - Boolean
notifySlack - Boolean
notifyWebhook - Boolean
revisions - Int
schedWebhook - String
service - SERVICE!
title - String!
utcTimeInterval - String
webhookURL - String
Example
{
  "accountId": "abc123",
  "anomalySortKey": "xyz789",
  "authEmail": "abc123",
  "authId": "abc123",
  "clientId": "abc123",
  "cognitoUserId": "abc123",
  "configuration": AnomalyConfigurationInput,
  "notifyConfig": notifyConfigInput,
  "notifyEmail": false,
  "notifySlack": true,
  "notifyWebhook": false,
  "revisions": 987,
  "schedWebhook": "xyz789",
  "service": SERVICE,
  "title": "abc123",
  "utcTimeInterval": "abc123",
  "webhookURL": "abc123"
}

AnomalyInputTable

Input Field Description
actual - String
date - String
direction - String
expected - String
Example
{
  "actual": "xyz789",
  "date": "abc123",
  "direction": "abc123",
  "expected": "xyz789"
}

AnomalyPreviewConfigurationInput

Input Field Description
accountId - ID!
appEnv - APP_ENV
authEmail - String
authId - String!
clientId - ID!
configuration - AnomalyConfigurationInput!
service - SERVICE!
Example
{
  "accountId": ID,
  "appEnv": APP_ENV,
  "authEmail": "abc123",
  "authId": "xyz789",
  "clientId": ID,
  "configuration": AnomalyConfigurationInput,
  "service": SERVICE
}

AnomalyPreviewReportInput

Field Name Description
anomalies - [AnomalyInputTable]!
graphData - AnomalyGraphDataReportInput
Example
{
  "anomalies": [AnomalyInputTable],
  "graphData": AnomalyGraphDataReportInput
}

AnomalyPreviewReportResultInput

Input Field Description
errorMessage - AWSJSON
id - ID!
message - String
report - AnomalyPreviewReportInput
stage - AnomalyPreviewStage!
status - AnomalyPreviewStatus!
Example
{
  "errorMessage": AWSJSON,
  "id": ID,
  "message": "abc123",
  "report": AnomalyPreviewReportInput,
  "stage": AnomalyPreviewStage,
  "status": AnomalyPreviewStatus
}

AnomalyPreviewResponse

Field Name Description
errorMessage - AWSJSON
executionArn - String
id - ID!
message - String
report - AnomalyReport
stage - AnomalyPreviewStage!
status - AnomalyPreviewStatus!
Example
{
  "errorMessage": AWSJSON,
  "executionArn": "abc123",
  "id": ID,
  "message": "xyz789",
  "report": AnomalyReport,
  "stage": AnomalyPreviewStage,
  "status": AnomalyPreviewStatus
}

AnomalyPreviewStage

Enum Value Description

DETECT_ANOMALIES

FETCH_DATA

FETCH_GA

REPORT

AnomalyPreviewStatus

Enum Value Description

COMPLETE

ERROR

PENDING

RESOURCE_EXHAUSTED

SUCCESS

TIMEOUT

AnomalyReport

Field Name Description
anomalies - [AnomalyTable]
graphData - AnomalyGraphDataReport
Example
{
  "anomalies": [AnomalyTable],
  "graphData": AnomalyGraphDataReport
}

AnomalyTable

Field Name Description
actual - String
date - String
direction - String
expected - String
Example
{
  "actual": "abc123",
  "date": "xyz789",
  "direction": "abc123",
  "expected": "xyz789"
}

AnomalyTransactionInput

Input Field Description
accountId - String!
anomalySortKey - String!
clientId - String!
cognitoUserId - String!
revisions - Int!
Example
{
  "accountId": "abc123",
  "anomalySortKey": "abc123",
  "clientId": "xyz789",
  "cognitoUserId": "xyz789",
  "revisions": 123
}

ArchiveItemInput

Input Field Description
accountId - String!
clientId - String
cognitoUserId - String!
revisions - Int!
sortKey - String!
Example
{
  "accountId": "abc123",
  "clientId": "xyz789",
  "cognitoUserId": "xyz789",
  "revisions": 987,
  "sortKey": "abc123"
}

Automation

Field Name Description
accountId - String!
clientId - String!
clientName - String
cognitoUserId - String!
configuration - AWSJSON
connectionStatus - String
dateLastInsightCreated - String
dateLastRun - String
executionArn - String
gmbLocationId - String
isArchived - Boolean
isDeleted - Boolean
jobId - String
jobStatus - ANOMALY_STATUS
jobType - String
notifyConfig - NotifyConfig
notifyEmail - Boolean
notifySlack - Boolean
notifyWebhook - Boolean
revisions - Int
service - SERVICE
sortKey - String
title - String
webhookURL - String
Example
{
  "accountId": "xyz789",
  "clientId": "abc123",
  "clientName": "xyz789",
  "cognitoUserId": "abc123",
  "configuration": AWSJSON,
  "connectionStatus": "xyz789",
  "dateLastInsightCreated": "xyz789",
  "dateLastRun": "abc123",
  "executionArn": "abc123",
  "gmbLocationId": "abc123",
  "isArchived": false,
  "isDeleted": true,
  "jobId": "xyz789",
  "jobStatus": ANOMALY_STATUS,
  "jobType": "xyz789",
  "notifyConfig": NotifyConfig,
  "notifyEmail": false,
  "notifySlack": false,
  "notifyWebhook": false,
  "revisions": 123,
  "service": SERVICE,
  "sortKey": "abc123",
  "title": "xyz789",
  "webhookURL": "xyz789"
}

AutomationConnection

Field Name Description
accountId - String
Example
{"accountId": "abc123"}

AutomationGraphData

Field Name Description
valueHere - String
Example
{"valueHere": "abc123"}

AutomationGraphDataInput

Input Field Description
valueHere - String
Example
{"valueHere": "abc123"}

AutomationInput

Input Field Description
accountId - String!
appEnv - APP_ENV
clientId - String!
cognitoUserId - String!
configuration - AWSJSON
isArchived - Boolean
isDeleted - Boolean
jobId - String
jobStatus - String
jobType - String
notifyConfig - notifyConfigInput
notifyEmail - Boolean
notifySlack - Boolean
notifyWebhook - Boolean
notifyZapier - Boolean
revisions - Int
schedWebhook - String
service - String!
sortKey - String
title - String
webhookURL - String
Example
{
  "accountId": "abc123",
  "appEnv": APP_ENV,
  "clientId": "xyz789",
  "cognitoUserId": "xyz789",
  "configuration": AWSJSON,
  "isArchived": true,
  "isDeleted": true,
  "jobId": "xyz789",
  "jobStatus": "xyz789",
  "jobType": "xyz789",
  "notifyConfig": notifyConfigInput,
  "notifyEmail": true,
  "notifySlack": false,
  "notifyWebhook": false,
  "notifyZapier": false,
  "revisions": 123,
  "schedWebhook": "xyz789",
  "service": "xyz789",
  "sortKey": "xyz789",
  "title": "abc123",
  "webhookURL": "xyz789"
}

AutomationJob

Field Name Description
id - String
title - String
Example
{"id": "xyz789", "title": "xyz789"}

AutomationOutput

Field Name Description
items - [Automation]
Example
{"items": [Automation]}

AutomationTransactionInput

Input Field Description
accountId - String!
clientId - String!
cognitoUserId - String
revisions - Int
sortKey - String!
Example
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "cognitoUserId": "abc123",
  "revisions": 987,
  "sortKey": "abc123"
}

BUDGET_PACING

Enum Value Description

ABOVE

BELOW

BUDGET_PERIOD

Enum Value Description

CUSTOM

MONTHLY

BUDGET_PREVIEW_STATUS

Enum Value Description

COMPLETE

ERROR

PENDING

RESOURCE_EXHAUSTED

SUCCESS

TIMEOUT

Boolean

The Boolean scalar type represents true or false.

Example
false

Budget

Field Name Description
accountId - String
authEmail - String
changeHistory - String
client - Client
clientId - String
clientName - String
commentCount - Int
comments - [Comment]

Arguments

lastCommentTimestamp - String

limit - Int

configuration - BudgetConfiguration
connectionStatus - String
dateCreated - String
dateUpdated - String
history - AWSJSON
isArchived - Boolean
isDeleted - Boolean
jobStatus - REPORT_STATUS
jobType - String
notifyConfig - NotifyConfig
notifySchedEmail - String
notifySchedSlack - String
notifySchedWebhook - String
plannerData - [plannerMapDetails]
report - BudgetReport
revisions - Int
schedEmail - String
schedSlack - String
schedWebhook - String
service - SERVICE
sortKey - String
title - String
user - User
userId - String
watchList - [String]
webhookEvents - [WEBHOOK_ENUM]
webhookURL - String
Example
{
  "accountId": "xyz789",
  "authEmail": "xyz789",
  "changeHistory": "xyz789",
  "client": Client,
  "clientId": "abc123",
  "clientName": "xyz789",
  "commentCount": 987,
  "comments": [Comment],
  "configuration": BudgetConfiguration,
  "connectionStatus": "abc123",
  "dateCreated": "abc123",
  "dateUpdated": "xyz789",
  "history": AWSJSON,
  "isArchived": false,
  "isDeleted": true,
  "jobStatus": REPORT_STATUS,
  "jobType": "abc123",
  "notifyConfig": NotifyConfig,
  "notifySchedEmail": "abc123",
  "notifySchedSlack": "abc123",
  "notifySchedWebhook": "abc123",
  "plannerData": [plannerMapDetails],
  "report": BudgetReport,
  "revisions": 987,
  "schedEmail": "abc123",
  "schedSlack": "xyz789",
  "schedWebhook": "xyz789",
  "service": SERVICE,
  "sortKey": "abc123",
  "title": "abc123",
  "user": User,
  "userId": "xyz789",
  "watchList": ["xyz789"],
  "webhookEvents": [WEBHOOK_ENUM],
  "webhookURL": "abc123"
}

BudgetConfiguration

Field Name Description
allCampaigns - Boolean
campaignIds - [String]
duration - Int
excludeBudgetSummary - Boolean
filters - GAdsFilter
graphType - GRAPH_TYPE!
isTitleAutoGenerated - Boolean
missingValueHandling - String
period - BUDGET_PERIOD!
rollOverAmount - Float
rollOverStatus - Boolean
spreadsheetDetails - BudgetSpreadSheetDetails
startDate - String
target - Float!
Example
{
  "allCampaigns": true,
  "campaignIds": ["abc123"],
  "duration": 123,
  "excludeBudgetSummary": false,
  "filters": GAdsFilter,
  "graphType": GRAPH_TYPE,
  "isTitleAutoGenerated": true,
  "missingValueHandling": "abc123",
  "period": BUDGET_PERIOD,
  "rollOverAmount": 987.65,
  "rollOverStatus": false,
  "spreadsheetDetails": BudgetSpreadSheetDetails,
  "startDate": "abc123",
  "target": 987.65
}

BudgetConfigurationInput

Field Name Description
advancedSettings - AWSJSON
allCampaigns - Boolean
campaignIds - [String]
currency - String
duration - Int
excludeBudgetSummary - Boolean
filters - GAdsFilterInput
graphType - GRAPH_TYPE!
isTitleAutoGenerated - Boolean
missingValueHandling - MISSING_VALUE_HANDLING_OPTIONS
period - BUDGET_PERIOD!
rollOverAmount - Float
rollOverStatus - Boolean
spreadsheetDetails - BudgetGoogleSpreadsheetInput
startDate - String
target - Float!
Example
{
  "advancedSettings": AWSJSON,
  "allCampaigns": true,
  "campaignIds": ["xyz789"],
  "currency": "xyz789",
  "duration": 987,
  "excludeBudgetSummary": true,
  "filters": GAdsFilterInput,
  "graphType": GRAPH_TYPE,
  "isTitleAutoGenerated": true,
  "missingValueHandling": MISSING_VALUE_HANDLING_OPTIONS,
  "period": BUDGET_PERIOD,
  "rollOverAmount": 123.45,
  "rollOverStatus": false,
  "spreadsheetDetails": BudgetGoogleSpreadsheetInput,
  "startDate": "abc123",
  "target": 123.45
}

BudgetConnection

Field Name Description
count - Int
currentAccountSubscriptionValue - Int
isNearSubscriptionLimit - Boolean
items - [Budget]
nextToken - String
scannedCount - Int
totalSubscription - Int
Example
{
  "count": 123,
  "currentAccountSubscriptionValue": 987,
  "isNearSubscriptionLimit": true,
  "items": [Budget],
  "nextToken": "xyz789",
  "scannedCount": 123,
  "totalSubscription": 123
}

BudgetGSpreadsheetPreviewReportResultInput

Input Field Description
id - ID!
message - String
report - KPIGSpreadsheetReportInput
stage - PREVIEW_STAGE!
status - BUDGET_PREVIEW_STATUS!
Example
{
  "id": ID,
  "message": "xyz789",
  "report": KPIGSpreadsheetReportInput,
  "stage": PREVIEW_STAGE,
  "status": BUDGET_PREVIEW_STATUS
}

BudgetGSpreadsheetPreviewResult

Field Name Description
executionArn - String
id - ID!
jobStatus - REPORT_STATUS
message - String
report - KPIGSpreadsheetReport
stage - PREVIEW_STAGE!
status - BUDGET_PREVIEW_STATUS
Example
{
  "executionArn": "xyz789",
  "id": ID,
  "jobStatus": REPORT_STATUS,
  "message": "abc123",
  "report": KPIGSpreadsheetReport,
  "stage": PREVIEW_STAGE,
  "status": BUDGET_PREVIEW_STATUS
}

BudgetGoogleSpreadsheetInput

Field Name Description
budgetColumn - String
dateColumn - String
driveId - String
driveLabel - String
email - String
spreadsheetId - String
spreadsheetLabel - String
validDates - [SpreadsheetColumnInput]
validMetrics - [SpreadsheetColumnInput]
worksheetId - String
worksheetLabel - String
Example
{
  "budgetColumn": "xyz789",
  "dateColumn": "xyz789",
  "driveId": "xyz789",
  "driveLabel": "xyz789",
  "email": "abc123",
  "spreadsheetId": "abc123",
  "spreadsheetLabel": "xyz789",
  "validDates": [SpreadsheetColumnInput],
  "validMetrics": [SpreadsheetColumnInput],
  "worksheetId": "abc123",
  "worksheetLabel": "abc123"
}

BudgetGraphCumulative

Field Name Description
Example
{}

BudgetGraphDataCumulativeInput

Field Name Description
Example
{}

BudgetGraphDataSeries

Field Name Description
Example
{}

BudgetGraphDataSeriesInput

Field Name Description
Example
{}

BudgetInput

Field Name Description
accountId - String
authEmail - String
budgetSortKey - String
clientId - String
cognitoUserId - String!
configuration - BudgetConfigurationInput!
executionArn - String!
isTitleAutoGenerated - Boolean!
notifyConfig - notifyConfigInput
notifySchedEmail - String
notifySchedSlack - String
notifySchedWebhook - String
schedEmail - String
schedSlack - String
schedWebhook - String
service - SERVICE!
title - String!
webhookEvents - [WEBHOOK_ENUM]
webhookURL - String
Example
{
  "accountId": "xyz789",
  "authEmail": "xyz789",
  "budgetSortKey": "abc123",
  "clientId": "abc123",
  "cognitoUserId": "xyz789",
  "configuration": BudgetConfigurationInput,
  "executionArn": "xyz789",
  "isTitleAutoGenerated": false,
  "notifyConfig": notifyConfigInput,
  "notifySchedEmail": "abc123",
  "notifySchedSlack": "xyz789",
  "notifySchedWebhook": "xyz789",
  "schedEmail": "xyz789",
  "schedSlack": "abc123",
  "schedWebhook": "abc123",
  "service": SERVICE,
  "title": "abc123",
  "webhookEvents": [WEBHOOK_ENUM],
  "webhookURL": "xyz789"
}

BudgetPreference

Field Name Description
monthlyEndTolerance - Float
monthlyStartTolerance - Float
Example
{"monthlyEndTolerance": 123.45, "monthlyStartTolerance": 987.65}

BudgetPreviewConfigurationInput

Field Name Description
accessToken - String
accountId - String!
allCampaigns - Boolean
appEnv - APP_ENV
authEmail - String!
authId - String
campaignIds - [String]
clientId - String!
configuration - BudgetConfigurationInput
duration - Int
graphType - GRAPH_TYPE!
isPreview - Boolean!
isTitleAutoGenerated - Boolean
period - BUDGET_PERIOD!
postMutation - Boolean
rollOverAmount - Float
rollOverStatus - Boolean
service - SERVICE!
startDate - String
status - String
target - String!
Example
{
  "accessToken": "abc123",
  "accountId": "abc123",
  "allCampaigns": false,
  "appEnv": APP_ENV,
  "authEmail": "abc123",
  "authId": "abc123",
  "campaignIds": ["abc123"],
  "clientId": "xyz789",
  "configuration": BudgetConfigurationInput,
  "duration": 987,
  "graphType": GRAPH_TYPE,
  "isPreview": false,
  "isTitleAutoGenerated": true,
  "period": BUDGET_PERIOD,
  "postMutation": false,
  "rollOverAmount": 123.45,
  "rollOverStatus": false,
  "service": SERVICE,
  "startDate": "xyz789",
  "status": "xyz789",
  "target": "xyz789"
}

BudgetPreviewInput

Input Field Description
accountId - String!
authEmail - String!
authId - String
clientId - String!
configuration - BudgetConfigurationInput
isPreview - Boolean!
isTitleAutoGenerated - Boolean
postMutation - Boolean
service - SERVICE!
status - String
Example
{
  "accountId": "abc123",
  "authEmail": "abc123",
  "authId": "abc123",
  "clientId": "abc123",
  "configuration": BudgetConfigurationInput,
  "isPreview": false,
  "isTitleAutoGenerated": true,
  "postMutation": true,
  "service": SERVICE,
  "status": "xyz789"
}

BudgetPreviewReportInput

Input Field Description
clicks - Int
conversions - Int
currency - String
dailyTargetAverage - String
dateEnd - String
dateStart - String
daysElapsed - Int
daysRemaining - Int
estimated - Float
estimatedPercent - Float
graphDataCumulative - BudgetGraphDataCumulativeInput
graphDataSeries - BudgetGraphDataSeriesInput
impressions - Int
pacing - Float
pacingDirection - BUDGET_PACING
periodAverageSpend - Float
spend - Float
spendPercent - Float
status - String
Example
{
  "clicks": 987,
  "conversions": 123,
  "currency": "xyz789",
  "dailyTargetAverage": "abc123",
  "dateEnd": "abc123",
  "dateStart": "abc123",
  "daysElapsed": 987,
  "daysRemaining": 987,
  "estimated": 123.45,
  "estimatedPercent": 123.45,
  "graphDataCumulative": BudgetGraphDataCumulativeInput,
  "graphDataSeries": BudgetGraphDataSeriesInput,
  "impressions": 987,
  "pacing": 987.65,
  "pacingDirection": BUDGET_PACING,
  "periodAverageSpend": 123.45,
  "spend": 987.65,
  "spendPercent": 123.45,
  "status": "xyz789"
}

BudgetPreviewReportResultInput

Input Field Description
errorMessage - AWSJSON
id - ID!
message - String
report - BudgetPreviewReportInput
stage - PREVIEW_STAGE!
status - BudgetPreviewStatus!
Example
{
  "errorMessage": AWSJSON,
  "id": ID,
  "message": "abc123",
  "report": BudgetPreviewReportInput,
  "stage": PREVIEW_STAGE,
  "status": BudgetPreviewStatus
}

BudgetPreviewResponse

Field Name Description
errorMessage - AWSJSON
executionArn - String
id - ID!
message - String
report - BudgetReport
stage - PREVIEW_STAGE
status - BudgetPreviewStatus!
Example
{
  "errorMessage": AWSJSON,
  "executionArn": "abc123",
  "id": ID,
  "message": "xyz789",
  "report": BudgetReport,
  "stage": PREVIEW_STAGE,
  "status": BudgetPreviewStatus
}

BudgetPreviewStatus

Enum Value Description

COMPLETE

ERROR

PENDING

SUCCESS

BudgetReport

Field Name Description
adNetworkType - String
allConversions - Float
chartImage - String
clicks - Int
conversions - Int
currency - String
dailyTargetAverage - String
dateCreated - String
dateEnd - String
dateStart - String
dateUpdated - String
daysElapsed - Int
daysRemaining - Int
device - [String]
estimated - Float
estimatedPercent - Float
graphDataCumulative - BudgetGraphCumulative
graphDataSeries - BudgetGraphDataSeries
impressions - Int
pacing - Float
pacingDirection - BUDGET_PACING
periodAverageSpend - Float
spend - Float
spendPercent - Float
status - String
Example
{
  "adNetworkType": "xyz789",
  "allConversions": 987.65,
  "chartImage": "abc123",
  "clicks": 987,
  "conversions": 123,
  "currency": "abc123",
  "dailyTargetAverage": "abc123",
  "dateCreated": "xyz789",
  "dateEnd": "xyz789",
  "dateStart": "abc123",
  "dateUpdated": "abc123",
  "daysElapsed": 123,
  "daysRemaining": 987,
  "device": ["abc123"],
  "estimated": 987.65,
  "estimatedPercent": 123.45,
  "graphDataCumulative": BudgetGraphCumulative,
  "graphDataSeries": BudgetGraphDataSeries,
  "impressions": 123,
  "pacing": 123.45,
  "pacingDirection": BUDGET_PACING,
  "periodAverageSpend": 987.65,
  "spend": 987.65,
  "spendPercent": 987.65,
  "status": "xyz789"
}

BudgetSpreadSheetDetails

Field Name Description
budgetColumn - String
dateColumn - String
driveId - String
driveLabel - String
email - String
spreadsheetId - String
spreadsheetLabel - String
validDates - [SpreadsheetColumn]
validMetrics - [SpreadsheetColumn]
worksheetId - String
worksheetLabel - String
Example
{
  "budgetColumn": "xyz789",
  "dateColumn": "xyz789",
  "driveId": "abc123",
  "driveLabel": "abc123",
  "email": "xyz789",
  "spreadsheetId": "xyz789",
  "spreadsheetLabel": "xyz789",
  "validDates": [SpreadsheetColumn],
  "validMetrics": [SpreadsheetColumn],
  "worksheetId": "abc123",
  "worksheetLabel": "xyz789"
}

BudgetSpreadhseetPreviewResponse

Field Name Description
executionArn - String
id - ID!
jobStatus - REPORT_STATUS
message - String
report - BudgetReport
stage - PREVIEW_STAGE!
status - BUDGET_PREVIEW_STATUS
Example
{
  "executionArn": "abc123",
  "id": ID,
  "jobStatus": REPORT_STATUS,
  "message": "xyz789",
  "report": BudgetReport,
  "stage": PREVIEW_STAGE,
  "status": BUDGET_PREVIEW_STATUS
}

BudgetSpreadsheetConfigurationInput

Input Field Description
advancedSettings - AWSJSON
currency - String
duration - Int
graphType - GRAPH_TYPE!
missingValueHandling - MISSING_VALUE_HANDLING_OPTIONS
period - BUDGET_PERIOD
rollOverAmount - String
rollOverStatus - Boolean
spreadsheetDetails - BudgetGoogleSpreadsheetInput
startDate - String
target - Int
Example
{
  "advancedSettings": AWSJSON,
  "currency": "abc123",
  "duration": 987,
  "graphType": GRAPH_TYPE,
  "missingValueHandling": MISSING_VALUE_HANDLING_OPTIONS,
  "period": BUDGET_PERIOD,
  "rollOverAmount": "abc123",
  "rollOverStatus": false,
  "spreadsheetDetails": BudgetGoogleSpreadsheetInput,
  "startDate": "xyz789",
  "target": 123
}

BudgetSpreadsheetPreviewConfigurationInput

Input Field Description
accountId - ID!
authEmail - String!
clientId - ID!
configuration - BudgetSpreadsheetConfigurationInput
googleSheets - String
isPreview - Boolean!
isTitleAutoGenerated - Boolean
postMutation - Boolean
service - SERVICE!
sortKey - String
Example
{
  "accountId": ID,
  "authEmail": "abc123",
  "clientId": ID,
  "configuration": BudgetSpreadsheetConfigurationInput,
  "googleSheets": "abc123",
  "isPreview": false,
  "isTitleAutoGenerated": true,
  "postMutation": true,
  "service": SERVICE,
  "sortKey": "xyz789"
}

BudgetTransactionInput

Input Field Description
accountId - String!
budgetSortKey - String!
clientId - String!
cognitoUserId - String!
revisions - Int!
Example
{
  "accountId": "abc123",
  "budgetSortKey": "abc123",
  "clientId": "xyz789",
  "cognitoUserId": "abc123",
  "revisions": 987
}

BulkEditNotificationInput

Field Name Description
accountId - String!
notifyConfig - notifyConfigInput
notifyEmail - Boolean
notifySchedEmail - String
notifySchedSlack - String
notifySchedWebhook - String
notifySlack - Boolean
schedEmail - String
schedSlack - String
schedWebhook - String
sortKeys - [String!]
webhookEvents - [WEBHOOK_ENUM]
webhookURL - String
Example
{
  "accountId": "abc123",
  "notifyConfig": notifyConfigInput,
  "notifyEmail": true,
  "notifySchedEmail": "abc123",
  "notifySchedSlack": "xyz789",
  "notifySchedWebhook": "xyz789",
  "notifySlack": true,
  "schedEmail": "xyz789",
  "schedSlack": "xyz789",
  "schedWebhook": "xyz789",
  "sortKeys": ["abc123"],
  "webhookEvents": [WEBHOOK_ENUM],
  "webhookURL": "xyz789"
}

BulkEditNotificationOutput

Field Name Description
accountId - String
Example
{"accountId": "xyz789"}

CLIENT_STATUS

Enum Value Description

ACTIVE

CONNECT

ERROR

COMPARISON_PERIOD

Enum Value Description

PREVIOUS_PERIOD

PREVIOUS_YEAR

CONNECTION_STATUS

Enum Value Description

ACTIVE

ERROR

MERGED

CampaignFilterInput

Input Field Description
option - String!
value - String
Example
{"option": "xyz789", "value": "abc123"}

CampaignFilters

Field Name Description
campaign - String
label - String
Example
{"campaign": "xyz789", "label": "xyz789"}

CampaignFiltersInput

Input Field Description
campaign - String
label - String
Example
{"campaign": "abc123", "label": "abc123"}

CampaignOutput

Field Name Description
id - String
labels - [String]
name - String
resourceName - String
Example
{
  "id": "xyz789",
  "labels": ["abc123"],
  "name": "abc123",
  "resourceName": "abc123"
}

ChangeHistory

Field Name Description
changes - [AWSJSON]
timestamp - String
userId - String
Example
{
  "changes": [AWSJSON],
  "timestamp": "abc123",
  "userId": "abc123"
}

ChangeHistoryChanges

Field Name Description
attribute - String
from - String
to - String
Example
{"attribute": "xyz789", "from": "abc123", "to": "abc123"}

Client

Field Name Description
Anomaly - AnomalyConnection

Arguments

filters - [labelInput]

isArchived - Boolean

nextToken - String

Automation - [Automation]

Arguments

filters - [labelInput]

isArchived - Boolean

nextToken - String

Budget - BudgetConnection!

Arguments

filters - [labelInput]

isArchived - Boolean

Insight - InsightsConnection

Arguments

exclude - [String]

filters - [labelInput]

isResolved - Boolean

nextToken - String

type - String

KPI - KPIConnection

Arguments

filters - [labelInput]

isArchived - Boolean

accountConnectionStatus - [AccountConnection]

Arguments

authStatus - String

oauthType - String

accountId - String
anomalyTotal - Int
automationTotal - Int
budgetTotal - Int
budgets - TotalBudgetStatus
connectionStatus - ClientConnectionServicesStatus
dateCreated - String
dateUpdated - String
domain - String
facebookAds - FacebookAdsConnection
globalConnectionStatus - GlobalConnectionStatusENUM
googleAds - GoogleAds
googleAnalytics - GoogleAnalytics
googleAnalytics4 - googleAnalytics4
googleMyBusiness - GoogleMyBusiness
googleSearchConsole - GoogleSearchConsole
id - ID
insightTotal - Int
instagramAds - InstagramAds
isArchived - Boolean
isDeleted - Boolean
kpiTotal - Int
kpis - TotalKPIStatus
labels - [Label]
linkedInAds - linkedInAds
logo - String
microsoftAds - microsoftAds
name - String
revisions - Int
sortKey - String
tiktokAds - tiktokAds
twitterAds - twitterAds
Example
{
  "Anomaly": AnomalyConnection,
  "Automation": [Automation],
  "Budget": BudgetConnection,
  "Insight": InsightsConnection,
  "KPI": KPIConnection,
  "accountConnectionStatus": [AccountConnection],
  "accountId": "abc123",
  "anomalyTotal": 123,
  "automationTotal": 123,
  "budgetTotal": 123,
  "budgets": TotalBudgetStatus,
  "connectionStatus": ClientConnectionServicesStatus,
  "dateCreated": "xyz789",
  "dateUpdated": "abc123",
  "domain": "xyz789",
  "facebookAds": FacebookAdsConnection,
  "globalConnectionStatus": GlobalConnectionStatusENUM,
  "googleAds": GoogleAds,
  "googleAnalytics": GoogleAnalytics,
  "googleAnalytics4": googleAnalytics4,
  "googleMyBusiness": GoogleMyBusiness,
  "googleSearchConsole": GoogleSearchConsole,
  "id": ID,
  "insightTotal": 123,
  "instagramAds": InstagramAds,
  "isArchived": false,
  "isDeleted": true,
  "kpiTotal": 123,
  "kpis": TotalKPIStatus,
  "labels": [Label],
  "linkedInAds": linkedInAds,
  "logo": "xyz789",
  "microsoftAds": microsoftAds,
  "name": "abc123",
  "revisions": 123,
  "sortKey": "xyz789",
  "tiktokAds": tiktokAds,
  "twitterAds": twitterAds
}

ClientConnectionCreateInput

Input Field Description
accountId - String!
authId - String!
clientId - String!
cognitoUserId - String
facebookAds - FacebookAdsInput
googleAds - GoogleAdsInput
googleAnalytics - GoogleAnalyticsInput
googleAnalytics4 - GoogleAnalytics4Input
googleMyBusiness - GoogleMyBusinessInput
googleSearchConsole - GoogleSearchConsoleInput
instagramAds - InstagramAdsInput
linkedInAds - LinkedInAdsInput
microsoftAds - microsoftAdsInput
tiktokAds - TiktokAdsInput
twitterAds - TwitterAdsInput
Example
{
  "accountId": "xyz789",
  "authId": "xyz789",
  "clientId": "abc123",
  "cognitoUserId": "abc123",
  "facebookAds": FacebookAdsInput,
  "googleAds": GoogleAdsInput,
  "googleAnalytics": GoogleAnalyticsInput,
  "googleAnalytics4": GoogleAnalytics4Input,
  "googleMyBusiness": GoogleMyBusinessInput,
  "googleSearchConsole": GoogleSearchConsoleInput,
  "instagramAds": InstagramAdsInput,
  "linkedInAds": LinkedInAdsInput,
  "microsoftAds": microsoftAdsInput,
  "tiktokAds": TiktokAdsInput,
  "twitterAds": TwitterAdsInput
}

ClientConnectionCreateResponse

Field Name Description
accountId - String
clientList - [String]
facebookAds - FacebookAdsConnection
googleAds - GoogleAds
googleAnalytics - GoogleAnalytics
googleAnalytics4 - googleAnalytics4
googleMyBusiness - GoogleMyBusiness
googleSearchConsole - GoogleSearchConsole
instagramAds - InstagramAds
linkedInAds - linkedInAds
microsoftAds - microsoftAds
sortKeyAuth - String
tiktokAds - tiktokAds
twitterAds - twitterAds
Example
{
  "accountId": "abc123",
  "clientList": ["xyz789"],
  "facebookAds": FacebookAdsConnection,
  "googleAds": GoogleAds,
  "googleAnalytics": GoogleAnalytics,
  "googleAnalytics4": googleAnalytics4,
  "googleMyBusiness": GoogleMyBusiness,
  "googleSearchConsole": GoogleSearchConsole,
  "instagramAds": InstagramAds,
  "linkedInAds": linkedInAds,
  "microsoftAds": microsoftAds,
  "sortKeyAuth": "xyz789",
  "tiktokAds": tiktokAds,
  "twitterAds": twitterAds
}

ClientConnectionDeleteResponse

Field Name Description
accountId - String
Example
{"accountId": "abc123"}

ClientConnectionResponse

Field Name Description
accountId - String
connectionStatus - ClientConnectionServicesStatus
facebookAds - FacebookAdsConnection
googleAds - GoogleAds
googleAnalytics - GoogleAnalytics
googleAnalytics4 - googleAnalytics4
googleMyBusiness - GoogleMyBusiness
googleSearchConsole - GoogleSearchConsole
instagramAds - InstagramAds
linkedInAds - linkedInAds
microsoftAds - microsoftAds
sortKey - String
tiktokAds - tiktokAds
twitterAds - twitterAds
Example
{
  "accountId": "xyz789",
  "connectionStatus": ClientConnectionServicesStatus,
  "facebookAds": FacebookAdsConnection,
  "googleAds": GoogleAds,
  "googleAnalytics": GoogleAnalytics,
  "googleAnalytics4": googleAnalytics4,
  "googleMyBusiness": GoogleMyBusiness,
  "googleSearchConsole": GoogleSearchConsole,
  "instagramAds": InstagramAds,
  "linkedInAds": linkedInAds,
  "microsoftAds": microsoftAds,
  "sortKey": "abc123",
  "tiktokAds": tiktokAds,
  "twitterAds": twitterAds
}

ClientConnectionServiceStatus

Field Name Description
status - CLIENT_STATUS
Example
{"status": CLIENT_STATUS}

ClientConnectionServicesStatus

Field Name Description
facebookAds - ClientConnectionServiceStatus
googleAds - ClientConnectionServiceStatus
googleAnalytics - ClientConnectionServiceStatus
googleAnalytics4 - ClientConnectionServiceStatus
googleAuthConnectionError - Boolean
googleMyBusiness - ClientConnectionServiceStatus
googleSearchConsole - ClientConnectionServiceStatus
instagramAds - ClientConnectionServiceStatus
linkedInAds - ClientConnectionServiceStatus
microsoftAds - ClientConnectionServiceStatus
multipleServiceError - Boolean
newClientConnectionStatus - Boolean
tiktokAds - ClientConnectionServiceStatus
twitterAds - ClientConnectionServiceStatus
Example
{
  "facebookAds": ClientConnectionServiceStatus,
  "googleAds": ClientConnectionServiceStatus,
  "googleAnalytics": ClientConnectionServiceStatus,
  "googleAnalytics4": ClientConnectionServiceStatus,
  "googleAuthConnectionError": true,
  "googleMyBusiness": ClientConnectionServiceStatus,
  "googleSearchConsole": ClientConnectionServiceStatus,
  "instagramAds": ClientConnectionServiceStatus,
  "linkedInAds": ClientConnectionServiceStatus,
  "microsoftAds": ClientConnectionServiceStatus,
  "multipleServiceError": false,
  "newClientConnectionStatus": false,
  "tiktokAds": ClientConnectionServiceStatus,
  "twitterAds": ClientConnectionServiceStatus
}

ClientInput

Field Name Description
accountId - String!
cognitoUserId - String!
domain - String!
isLoadingSample - Boolean
labels - [String]
name - String!
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "domain": "abc123",
  "isLoadingSample": false,
  "labels": ["xyz789"],
  "name": "abc123"
}

ClientList

Field Name Description
items - [Client]
nextToken - String
Example
{"items": [Client], "nextToken": "abc123"}

ClientTransactionInput

Input Field Description
accountId - String!
cognitoUserId - String!
revisions - Int!
sortKey - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "abc123",
  "revisions": 123,
  "sortKey": "xyz789"
}

ClientUploadInput

Input Field Description
accountId - String!
clientId - String!
cognitoUserId - String
logo - LogoInput!
Example
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "cognitoUserId": "abc123",
  "logo": LogoInput
}

ClientUploadResponse

Field Name Description
id - String
url - String
Example
{"id": "abc123", "url": "abc123"}

Clients

Field Name Description
count - Int
isClientSubscriptionValid - Boolean
isNearSubscriptionLimit - Boolean
items - [Client]
nextToken - String
totalAnomaliesUnderAccount - Int
totalBudgetsUnderAccount - Int
totalKPISUnderAccount - Int
Example
{
  "count": 123,
  "isClientSubscriptionValid": true,
  "isNearSubscriptionLimit": true,
  "items": [Client],
  "nextToken": "xyz789",
  "totalAnomaliesUnderAccount": 987,
  "totalBudgetsUnderAccount": 123,
  "totalKPISUnderAccount": 987
}

ClientsForLabel

Field Name Description
accountId - String
hasLabel - Boolean
name - String
sortKey - String
Example
{"accountId": "abc123", "hasLabel": true, "name": "abc123", "sortKey": "abc123"}

Comment

Comment details

Field Name Description
accountId - String Jepto Account Id
commentMethod - CommentMethod
commentTimestamp - String
commentTo - String
dateCreated - String
dateUpdated - String
deletedBy - String
isDeleted - Boolean
mentionedUsers - [String]
message - String
revisions - Int
sortKey - String
type - CommentType
updatedBy - String
user - User
userId - String
Example
{
  "accountId": "xyz789",
  "commentMethod": CommentMethod,
  "commentTimestamp": "xyz789",
  "commentTo": "xyz789",
  "dateCreated": "xyz789",
  "dateUpdated": "xyz789",
  "deletedBy": "xyz789",
  "isDeleted": false,
  "mentionedUsers": ["xyz789"],
  "message": "xyz789",
  "revisions": 123,
  "sortKey": "abc123",
  "type": CommentType,
  "updatedBy": "xyz789",
  "user": User,
  "userId": "abc123"
}

CommentInput

Field Name Description
accountId - String!
cognitoUserId - String
commentMethod - CommentMethod!
commentTimestamp - String
commentTo - String!
dateCreated - String
dateUpdated - String
deletedBy - String
isDeleted - Boolean
mentionedUsers - [String]
message - String!
revisions - Int
sortKey - String
type - CommentType!
updatedBy - String
userId - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "abc123",
  "commentMethod": CommentMethod,
  "commentTimestamp": "xyz789",
  "commentTo": "abc123",
  "dateCreated": "abc123",
  "dateUpdated": "abc123",
  "deletedBy": "abc123",
  "isDeleted": true,
  "mentionedUsers": ["xyz789"],
  "message": "abc123",
  "revisions": 987,
  "sortKey": "abc123",
  "type": CommentType,
  "updatedBy": "xyz789",
  "userId": "xyz789"
}

CommentList

List of Comments

Field Name Description
count - Int Count of items
items - [Comment] Array of comments
Example
{"count": 987, "items": [Comment]}

CommentMethod

Enum Value Description

APP

SLACK

ZAPIER

CommentPagination

Input Field Description
lastCommentTimestamp - String
limit - Int
Example
{"lastCommentTimestamp": "xyz789", "limit": 123}

CommentType

Enum Value Description

COMMENT

NOTE

Connections

Field Name Description
url - String
Example
{"url": "abc123"}

ConnectionsInput

Field Name Description
accountEid - String
service - [SERVICE]
type - TYPE
Example
{
  "accountEid": "xyz789",
  "service": [SERVICE],
  "type": TYPE
}

CreatePasswordInput

Input Field Description
password - String!
Example
{"password": "abc123"}

DATA_WAREHOUSE_TYPE

Enum Value Description

GMB_PRO

GSC_PRO

NULL

DESTINATION

Enum Value Description

GOOGLE_BIG_QUERY

GOOGLE_BIG_QUERY_MANAGED

DataAccessControl

Field Name Description
accessLevel - String
accessRole - [String]
accountId - String
authEmail - String
authId - String
dateCreated - String
dateUpdated - String
invitedUser - String
isDeleted - Boolean
projectId - String
projectName - String
provider - ACCESS_CONTROL_PROVIDER
revisions - Int
service - SERVICE
sortKey - String
status - String
userId - String
Example
{
  "accessLevel": "xyz789",
  "accessRole": ["abc123"],
  "accountId": "abc123",
  "authEmail": "abc123",
  "authId": "xyz789",
  "dateCreated": "xyz789",
  "dateUpdated": "abc123",
  "invitedUser": "abc123",
  "isDeleted": true,
  "projectId": "abc123",
  "projectName": "abc123",
  "provider": ACCESS_CONTROL_PROVIDER,
  "revisions": 123,
  "service": SERVICE,
  "sortKey": "abc123",
  "status": "xyz789",
  "userId": "abc123"
}

DataAccessControlInput

Field Name Description
accessLevel - String!
accessRole - [String]!
accountId - String!
authEmail - String
authId - String
cognitoUserId - String!
invitedUser - String!
projectId - String!
projectName - String!
provider - ACCESS_CONTROL_PROVIDER!
revisions - Int
service - SERVICE!
userId - String!
Example
{
  "accessLevel": "abc123",
  "accessRole": ["abc123"],
  "accountId": "abc123",
  "authEmail": "xyz789",
  "authId": "xyz789",
  "cognitoUserId": "xyz789",
  "invitedUser": "abc123",
  "projectId": "abc123",
  "projectName": "xyz789",
  "provider": ACCESS_CONTROL_PROVIDER,
  "revisions": 987,
  "service": SERVICE,
  "userId": "xyz789"
}

DataAccessControls

Field Name Description
items - [DataAccessControl]
nextToken - String
Example
{"items": [DataAccessControl], "nextToken": "abc123"}

DataDeleteAccessControlInput

Field Name Description
accessRole - [String]!
accountId - String!
authId - String
cognitoUserId - String!
invitedUser - String!
projectId - String!
projectName - String!
provider - String!
revisions - Int!
sortKey - String!
Example
{
  "accessRole": ["xyz789"],
  "accountId": "xyz789",
  "authId": "xyz789",
  "cognitoUserId": "xyz789",
  "invitedUser": "abc123",
  "projectId": "abc123",
  "projectName": "abc123",
  "provider": "xyz789",
  "revisions": 987,
  "sortKey": "abc123"
}

DataPipeLine

Field Name Description
accountId - String
appliedExtensions - [DataPipelineAppliedExtension]
changeHistory - String
configuration - DataPipeLineConfiguration
creditUsed - Int
dateCreated - String
dateLastSyncCompleted - String
dateUpdated - String
destination - Destination
errorDetails - PipelineErrorDetails
executionName - String
extensionCount - Int
funnelTerms - AWSJSON
hasInitAnalysis - Boolean
isArchived - Boolean
isDeleted - Boolean
isTitleAutoGenerated - Boolean
jobType - String
log - [DataPipeLineLog]
notifyConfig - NotifyConfig
notifyEmail - Boolean
notifySlack - Boolean
notifyZapier - Boolean
report - AWSJSON
revisions - Int
sortKey - String
source - DataSource
status - String
title - String
totalRowsLoaded - Int
Example
{
  "accountId": "abc123",
  "appliedExtensions": [DataPipelineAppliedExtension],
  "changeHistory": "abc123",
  "configuration": DataPipeLineConfiguration,
  "creditUsed": 987,
  "dateCreated": "abc123",
  "dateLastSyncCompleted": "xyz789",
  "dateUpdated": "abc123",
  "destination": Destination,
  "errorDetails": PipelineErrorDetails,
  "executionName": "xyz789",
  "extensionCount": 987,
  "funnelTerms": AWSJSON,
  "hasInitAnalysis": false,
  "isArchived": true,
  "isDeleted": true,
  "isTitleAutoGenerated": false,
  "jobType": "xyz789",
  "log": [DataPipeLineLog],
  "notifyConfig": NotifyConfig,
  "notifyEmail": false,
  "notifySlack": true,
  "notifyZapier": true,
  "report": AWSJSON,
  "revisions": 987,
  "sortKey": "xyz789",
  "source": DataSource,
  "status": "xyz789",
  "title": "xyz789",
  "totalRowsLoaded": 123
}

DataPipeLineConfiguration

Field Name Description
historicalSyncTimeFrame - String
webhookUrl - AWSURL
Example
{
  "historicalSyncTimeFrame": "abc123",
  "webhookUrl": AWSURL
}

DataPipeLineConfigurationInput

Input Field Description
historicalSyncTimeFrame - String
webhookUrl - AWSURL
Example
{
  "historicalSyncTimeFrame": "abc123",
  "webhookUrl": AWSURL
}

DataPipeLineInput

Input Field Description
accountId - String!
cognitoUserId - String!
configuration - DataPipeLineConfigurationInput
destination - DestinationInput
isArchived - Boolean
isDeleted - Boolean
isTitleAutoGenerated - Boolean
jobType - String
notifyConfig - notifyConfigInput
notifyEmail - Boolean
notifySlack - Boolean
notifyZapier - Boolean
revisions - Int
sortKey - String
source - DataSourceInput
title - String
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "abc123",
  "configuration": DataPipeLineConfigurationInput,
  "destination": DestinationInput,
  "isArchived": true,
  "isDeleted": false,
  "isTitleAutoGenerated": true,
  "jobType": "xyz789",
  "notifyConfig": notifyConfigInput,
  "notifyEmail": false,
  "notifySlack": false,
  "notifyZapier": true,
  "revisions": 123,
  "sortKey": "xyz789",
  "source": DataSourceInput,
  "title": "xyz789"
}

DataPipeLineLog

Field Name Description
exception - [DataPipeLineLogException]
extract - DataPipeLineLogStatus
load - DataPipeLineLogStatus
report - DataPipeLineReportStatus
scheduleRun - String
Example
{
  "exception": [DataPipeLineLogException],
  "extract": DataPipeLineLogStatus,
  "load": DataPipeLineLogStatus,
  "report": DataPipeLineReportStatus,
  "scheduleRun": "xyz789"
}

DataPipeLineLogException

Field Name Description
index - String
message - String
status - String
Example
{"index": "abc123", "message": "abc123", "status": "xyz789"}

DataPipeLineLogStatus

Field Name Description
date - String
status - String
Example
{"date": "xyz789", "status": "abc123"}

DataPipeLineReportStatus

Field Name Description
csvUrl - String
error - Int
skipped - Int
success - Int
Example
{"csvUrl": "abc123", "error": 123, "skipped": 123, "success": 123}

DataPipeLines

Field Name Description
items - [DataPipeLine]
nextToken - String
Example
{"items": [DataPipeLine], "nextToken": "abc123"}

DataPipelineAppliedExtension

Field Name Description
config - [DataPipelineAppliedExtensionConfig]
count - Int
id - String
Example
{
  "config": [DataPipelineAppliedExtensionConfig],
  "count": 987,
  "id": "abc123"
}

DataPipelineAppliedExtensionConfig

Field Name Description
property - String
Example
{"property": "abc123"}

DataPipelineProject

Field Name Description
id - String
name - String
Example
{"id": "abc123", "name": "xyz789"}

DataPipelineProjects

Field Name Description
items - [DataPipelineProject]
nextToken - String
Example
{"items": [DataPipelineProject], "nextToken": "abc123"}

DataSource

Field Name Description
account - String
accountId - String
authId - String
config - AWSJSON
sourceType - SOURCE_TYPE
timezone - String
Example
{
  "account": "xyz789",
  "accountId": "xyz789",
  "authId": "abc123",
  "config": AWSJSON,
  "sourceType": SOURCE_TYPE,
  "timezone": "abc123"
}

DataSourceInput

Input Field Description
account - String
accountId - String
authId - String
config - AWSJSON
sortKey - String
sourceType - SOURCE_TYPE
timezone - String
Example
{
  "account": "xyz789",
  "accountId": "abc123",
  "authId": "xyz789",
  "config": AWSJSON,
  "sortKey": "abc123",
  "sourceType": SOURCE_TYPE,
  "timezone": "xyz789"
}

DataWarehouse

Field Name Description
facebook - DataWarehouseSettings
gmb - DataWarehouseSettings
gsc - DataWarehouseSettings
Example
{
  "facebook": DataWarehouseSettings,
  "gmb": DataWarehouseSettings,
  "gsc": DataWarehouseSettings
}

DataWarehouseSettings

Field Name Description
dataSourceAlias - String
reportId - String
Example
{"dataSourceAlias": "xyz789", "reportId": "abc123"}

DataWarehouseTrial

Field Name Description
endDate - String
isTrialEnded - Boolean
isTrialStarted - Boolean
startDate - String
Example
{
  "endDate": "xyz789",
  "isTrialEnded": false,
  "isTrialStarted": false,
  "startDate": "abc123"
}

DeleteCommentInput

Input Field Description
accountId - String!
cognitoUserId - String
commentTo - String!
revisions - Int!
sortKey - String!
userId - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "abc123",
  "commentTo": "abc123",
  "revisions": 987,
  "sortKey": "abc123",
  "userId": "abc123"
}

DeleteUserInput

Input Field Description
accountId - String!
cognitoUserId - String
sessionAccountId - String!
sessionSortKey - String!
sortKey - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "xyz789",
  "sessionAccountId": "abc123",
  "sessionSortKey": "abc123",
  "sortKey": "abc123"
}

DeleteUserOutput

Field Name Description
isDeleted - Boolean
Example
{"isDeleted": true}

Destination

Field Name Description
accountId - String
authId - String
config - AWSJSON
destination - DESTINATION
Example
{
  "accountId": "abc123",
  "authId": "xyz789",
  "config": AWSJSON,
  "destination": DESTINATION
}

DestinationInput

Input Field Description
accountId - String
authId - String
cognitoUserId - String
config - AWSJSON
destination - DESTINATION
Example
{
  "accountId": "xyz789",
  "authId": "abc123",
  "cognitoUserId": "abc123",
  "config": AWSJSON,
  "destination": DESTINATION
}

DrivesByAccount

Field Name Description
accountId - String
authId - String
email - String
items - [ItemDrivesByAccount]
Example
{
  "accountId": "abc123",
  "authId": "xyz789",
  "email": "xyz789",
  "items": [ItemDrivesByAccount]
}

EditAccountInput

Input Field Description
accountId - String
cognitoUserId - String!
domain - String
logo - String
name - String
revisions - Int!
sortKey - String
timezone - String
weekStart - String
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "domain": "abc123",
  "logo": "xyz789",
  "name": "xyz789",
  "revisions": 123,
  "sortKey": "abc123",
  "timezone": "xyz789",
  "weekStart": "xyz789"
}

EmailNotificationPreference

Field Name Description
monthlyReport - Boolean
weeklyReport - Boolean
Example
{"monthlyReport": false, "weeklyReport": false}

ErrorDetailsInput

Input Field Description
details - String
message - String
Example
{"details": "xyz789", "message": "abc123"}

ErrorHandlerInput

Input Field Description
accountId - String
cognitoUserId - String
error - ErrorDetailsInput
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "error": ErrorDetailsInput
}

ErrorHandlerOutput

Field Name Description
accountId - String
Example
{"accountId": "abc123"}

Extension

Field Name Description
addOnId - String
authorImage - String
authorLink - String
content - String
extensionAuthor - String
extensionImage - String
extensionName - String
funnelTerms - AWSJSON
id - String
learnMore - String
primaryImage - String
service - SERVICE
summary - String
termsConditionLink - String
Example
{
  "addOnId": "xyz789",
  "authorImage": "xyz789",
  "authorLink": "xyz789",
  "content": "xyz789",
  "extensionAuthor": "abc123",
  "extensionImage": "abc123",
  "extensionName": "xyz789",
  "funnelTerms": AWSJSON,
  "id": "xyz789",
  "learnMore": "abc123",
  "primaryImage": "abc123",
  "service": SERVICE,
  "summary": "abc123",
  "termsConditionLink": "xyz789"
}

ExtensionProperty

Field Name Description
pipelineId - String!
selectedProperties - [selectedPropertyExtensionInput]
Example
{
  "pipelineId": "abc123",
  "selectedProperties": [selectedPropertyExtensionInput]
}

FacebookAccount

Field Name Description
accountId - String
accountName - String
Example
{"accountId": "abc123", "accountName": "xyz789"}

FacebookAds

Field Name Description
accounts - [FacebookAccount]
businessId - String
businessName - String
currency - String
hasActiveJob - Boolean
jobIds - [String]
timezone - String
Example
{
  "accounts": [FacebookAccount],
  "businessId": "abc123",
  "businessName": "abc123",
  "currency": "xyz789",
  "hasActiveJob": false,
  "jobIds": ["xyz789"],
  "timezone": "xyz789"
}

FacebookAdsAccounts

Field Name Description
items - [FacebookAds]
Example
{"items": [FacebookAds]}

FacebookAdsConnection

Field Name Description
accountId - String
accountName - String
businessId - String
businessName - String
currency - String
email - String
hasActiveJob - Boolean
jobIds - [String]
timezone - String
Example
{
  "accountId": "abc123",
  "accountName": "xyz789",
  "businessId": "abc123",
  "businessName": "abc123",
  "currency": "abc123",
  "email": "xyz789",
  "hasActiveJob": false,
  "jobIds": ["xyz789"],
  "timezone": "abc123"
}

FacebookAdsInput

Input Field Description
accountId - String!
accountName - String!
businessId - String!
businessName - String!
currency - String
email - String!
Example
{
  "accountId": "xyz789",
  "accountName": "abc123",
  "businessId": "xyz789",
  "businessName": "xyz789",
  "currency": "abc123",
  "email": "abc123"
}

FacebookCampaigns

Field Name Description
id - String
name - String
status - String
Example
{"id": "xyz789", "name": "xyz789", "status": "abc123"}

Float

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Example
123.45

FundingInstrument

Field Name Description
description - String
fundingInstrumentId - String
Example
{"description": "xyz789", "fundingInstrumentId": "abc123"}

GA4Properties

Field Name Description
accountId - String
accountName - String
properties - [GA4Property]
Example
{
  "accountId": "abc123",
  "accountName": "abc123",
  "properties": [GA4Property]
}

GA4Property

Field Name Description
currencyCode - String
propertyId - String
propertyName - String
timeZone - String
Example
{
  "currencyCode": "xyz789",
  "propertyId": "abc123",
  "propertyName": "abc123",
  "timeZone": "xyz789"
}

GAMetrics

Field Name Description
items - [Metrics]
Example
{"items": [Metrics]}

GASegments

Field Name Description
items - [Segments]
status - String
statusCode - Int
Example
{
  "items": [Segments],
  "status": "abc123",
  "statusCode": 987
}

GAdsCampaign

Field Name Description
option - String
value - String
Example
{"option": "xyz789", "value": "xyz789"}

GAdsCampaignInput

Input Field Description
option - String
value - String
Example
{"option": "xyz789", "value": "xyz789"}

GAdsFilter

Field Name Description
campaign - GAdsCampaign
label - GAdsLabel
Example
{
  "campaign": GAdsCampaign,
  "label": GAdsLabel
}

GAdsFilterInput

Input Field Description
campaign - GAdsCampaignInput
label - GAdsLabelInput
Example
{
  "campaign": GAdsCampaignInput,
  "label": GAdsLabelInput
}

GAdsLabel

Field Name Description
option - String
value - [String]
Example
{"option": "xyz789", "value": ["abc123"]}

GAdsLabelInput

Field Name Description
option - String
value - [String]
Example
{"option": "abc123", "value": ["abc123"]}

GRAPH_TYPE

Enum Value Description

CUMULATIVE

SERIES

GcpProject

Field Name Description
id - String
name - String
Example
{"id": "xyz789", "name": "abc123"}

GenericAdsAccount

Field Name Description
accountId - String
accountName - String
Example
{"accountId": "xyz789", "accountName": "abc123"}

GenericKeys

Field Name Description
accountId - String
sortKey - String
Example
{"accountId": "abc123", "sortKey": "xyz789"}

GlobalConnectionStatusENUM

Enum Value Description

ACTIVE

CONNECT

ERROR

GmbAccount

Field Name Description
accountId - String
accountName - String
Example
{"accountId": "xyz789", "accountName": "abc123"}

GmbAccounts

Field Name Description
accountId - String
items - [GmbAccount]
Example
{"accountId": "xyz789", "items": [GmbAccount]}

GmbEmail

Field Name Description
email - String
sortKey - String
Example
{"email": "abc123", "sortKey": "xyz789"}

GmbEmails

Field Name Description
accountId - String
items - [GmbEmail]
Example
{"accountId": "abc123", "items": [GmbEmail]}

GmbLocation

Field Name Description
locationId - String
locationName - String
Example
{"locationId": "abc123", "locationName": "xyz789"}

GmbLocations

Field Name Description
accountId - String
gmbAccountId - String
items - [GmbLocation]
Example
{
  "accountId": "abc123",
  "gmbAccountId": "xyz789",
  "items": [GmbLocation]
}

GoogleAds

Field Name Description
accountId - String
accountName - String
currency - String
email - String
hasActiveJob - Boolean
jobIds - [String]
mcc - String
mccName - String
timezone - String
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "currency": "abc123",
  "email": "abc123",
  "hasActiveJob": false,
  "jobIds": ["abc123"],
  "mcc": "xyz789",
  "mccName": "abc123",
  "timezone": "abc123"
}

GoogleAdsAccounts

Field Name Description
items - [GoogleAdsMccAccount]
Example
{"items": [GoogleAdsMccAccount]}

GoogleAdsClient

Field Name Description
clientId - String
clientName - String
Example
{"clientId": "xyz789", "clientName": "abc123"}

GoogleAdsInput

Input Field Description
accountId - String!
accountName - String!
email - String!
mcc - String
mccName - String
Example
{
  "accountId": "abc123",
  "accountName": "abc123",
  "email": "abc123",
  "mcc": "xyz789",
  "mccName": "abc123"
}

GoogleAdsMccAccount

Field Name Description
clients - [GoogleAdsClient]
mccId - String
mccName - String
Example
{
  "clients": [GoogleAdsClient],
  "mccId": "abc123",
  "mccName": "xyz789"
}

GoogleAdsMccAccountParent

Field Name Description
accountLabels - [String]
canManageClients - String
currencyCode - String
customerId - String
dateTimeZone - String
excludeHiddenAccounts - String
name - String
testAccount - String
Example
{
  "accountLabels": ["xyz789"],
  "canManageClients": "abc123",
  "currencyCode": "abc123",
  "customerId": "abc123",
  "dateTimeZone": "xyz789",
  "excludeHiddenAccounts": "xyz789",
  "name": "abc123",
  "testAccount": "abc123"
}

GoogleAnalytics

Field Name Description
accountId - String
accountName - String
currency - String
email - String
hasActiveJob - Boolean
jobIds - [String]
propertyId - String
propertyName - String
timezone - String
viewId - String
viewName - String
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "currency": "xyz789",
  "email": "abc123",
  "hasActiveJob": false,
  "jobIds": ["abc123"],
  "propertyId": "abc123",
  "propertyName": "abc123",
  "timezone": "abc123",
  "viewId": "xyz789",
  "viewName": "xyz789"
}

GoogleAnalytics4Input

Input Field Description
accountId - String!
accountName - String!
email - String!
propertyId - String!
propertyName - String!
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "email": "xyz789",
  "propertyId": "abc123",
  "propertyName": "xyz789"
}

GoogleAnalyticsInput

Input Field Description
accountId - String!
accountName - String!
email - String!
propertyId - String!
propertyName - String!
viewId - String!
viewName - String!
Example
{
  "accountId": "abc123",
  "accountName": "xyz789",
  "email": "abc123",
  "propertyId": "xyz789",
  "propertyName": "xyz789",
  "viewId": "xyz789",
  "viewName": "abc123"
}

GoogleAnalyticsProperties

Field Name Description
accountId - String
accountName - String
properties - [GoogleAnalyticsProperty]
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "properties": [GoogleAnalyticsProperty]
}

GoogleAnalyticsProperty

Field Name Description
profiles - [GoogleAnalyticsPropertyProfiles]
propertyId - String
propertyName - String
Example
{
  "profiles": [GoogleAnalyticsPropertyProfiles],
  "propertyId": "xyz789",
  "propertyName": "abc123"
}

GoogleAnalyticsPropertyProfiles

Field Name Description
profileId - String
profileName - String
Example
{"profileId": "abc123", "profileName": "abc123"}

GoogleDriveAccounts

Field Name Description
accountId - String
authId - String
email - String
Example
{"accountId": "abc123", "authId": "abc123", "email": "xyz789"}

GoogleMyBusiness

Field Name Description
accountId - String
accountName - String
currency - String
email - String
hasActiveJob - Boolean
jobIds - [String]
locationId - String
locationName - String
timezone - String
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "currency": "abc123",
  "email": "abc123",
  "hasActiveJob": true,
  "jobIds": ["abc123"],
  "locationId": "abc123",
  "locationName": "xyz789",
  "timezone": "xyz789"
}

GoogleMyBusinessInput

Input Field Description
accountId - String!
email - String!
locationId - String!
Example
{"accountId": "xyz789", "email": "xyz789", "locationId": "xyz789"}

GoogleSearchConsole

Field Name Description
currency - String
email - String
hasActiveJob - Boolean
jobIds - [String]
propertyType - String
propertyUrl - String
timezone - String
Example
{
  "currency": "xyz789",
  "email": "xyz789",
  "hasActiveJob": false,
  "jobIds": ["xyz789"],
  "propertyType": "abc123",
  "propertyUrl": "abc123",
  "timezone": "xyz789"
}

GoogleSearchConsoleInput

Input Field Description
email - String!
propertyType - String!
propertyUrl - String!
Example
{"email": "xyz789", "propertyType": "xyz789", "propertyUrl": "abc123"}

GoogleSearchConsoleProperties

Field Name Description
domain - [GoogleSearchConsoleProperty]
urlPrefix - [GoogleSearchConsoleProperty]
Example
{
  "domain": [GoogleSearchConsoleProperty],
  "urlPrefix": [GoogleSearchConsoleProperty]
}

GoogleSearchConsoleProperty

Field Name Description
permissionLevel - String
siteUrl - String
Example
{"permissionLevel": "abc123", "siteUrl": "abc123"}

GoogleSpreadsheetInput

Field Name Description
calculation - String
dateColumn - String
driveId - String
driveLabel - String
email - String
metricColumn - String
spreadsheetId - String
spreadsheetLabel - String
timezone - String
validDates - [SpreadsheetColumnInput]
validMetrics - [SpreadsheetColumnInput]
worksheetId - String
worksheetLabel - String
Example
{
  "calculation": "xyz789",
  "dateColumn": "abc123",
  "driveId": "xyz789",
  "driveLabel": "abc123",
  "email": "abc123",
  "metricColumn": "abc123",
  "spreadsheetId": "xyz789",
  "spreadsheetLabel": "abc123",
  "timezone": "xyz789",
  "validDates": [SpreadsheetColumnInput],
  "validMetrics": [SpreadsheetColumnInput],
  "worksheetId": "abc123",
  "worksheetLabel": "abc123"
}

GoogleSpreadsheetOutput

Field Name Description
calculation - String
dateColumn - String
driveId - String
driveLabel - String
email - String
metricColumn - String
spreadsheetId - String
spreadsheetLabel - String
timezone - String
validDates - [SpreadsheetColumnOutput]
validMetrics - [SpreadsheetColumnOutput]
worksheetId - String
worksheetLabel - String
Example
{
  "calculation": "xyz789",
  "dateColumn": "abc123",
  "driveId": "abc123",
  "driveLabel": "abc123",
  "email": "abc123",
  "metricColumn": "xyz789",
  "spreadsheetId": "xyz789",
  "spreadsheetLabel": "xyz789",
  "timezone": "xyz789",
  "validDates": [SpreadsheetColumnOutput],
  "validMetrics": [SpreadsheetColumnOutput],
  "worksheetId": "abc123",
  "worksheetLabel": "xyz789"
}

GscMetricMovement

Field Name Description
label - String
value - String
Example
{"label": "xyz789", "value": "xyz789"}

ID

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Example
object

INSIGHTS_JOBTYPE

Enum Value Description

ANOMALY

AUTOMATION

KPI

INSIGHTS_METHOD

Enum Value Description

APP

SLACK

SYSTEM

ZAPIER

InputAccountPreference

Input Field Description
accountId - String!
budgets - InputBudgetPreference
cognitoUserId - String
dataWarehouse - InputDataWarehouse
insights - InputInsightsPreference
kpis - InputKpiPreference
revision - Int!
Example
{
  "accountId": "xyz789",
  "budgets": InputBudgetPreference,
  "cognitoUserId": "xyz789",
  "dataWarehouse": InputDataWarehouse,
  "insights": InputInsightsPreference,
  "kpis": InputKpiPreference,
  "revision": 987
}

InputAddOn

Input Field Description
id - String
quantity - Int
Example
{"id": "abc123", "quantity": 987}

InputBudgetPreference

Input Field Description
monthlyEndTolerance - Float
monthlyStartTolerance - Float
Example
{"monthlyEndTolerance": 987.65, "monthlyStartTolerance": 123.45}

InputCommentNotificationPreference

Input Field Description
createdJob - Boolean
mention - Boolean
watchList - Boolean
Example
{"createdJob": true, "mention": true, "watchList": true}

InputDataWarehouse

Example
{
  "facebook": InputDataWarehouseSubSettings,
  "gmb": InputDataWarehouseSubSettings,
  "gsc": InputDataWarehouseSubSettings
}

InputDataWarehouseSubSettings

Input Field Description
dataSourceAlias - String
reportId - String
Example
{"dataSourceAlias": "abc123", "reportId": "abc123"}

InputGetPages

Input Field Description
accountId - String!
clientId - String!
cognitoUserId - String
Example
{"accountId": "abc123", "clientId": "abc123", "cognitoUserId": "xyz789"}

InputInsightsPreference

Input Field Description
autoResolve - Int
Example
{"autoResolve": 123}

InputKpiPreference

Input Field Description
facebookAdsRollingAvg - Float
googleAdsRollingAvg - Float
googleAnalytics4RollingAvg - Float
googleMyBusinessRollingAvg - Float
googleSheetsRollingAvg - Float
instagramAdsRollingAvg - Float
linkedInAdsRollingAvg - Float
microsoftAdsRollingAvg - Float
tiktokAdsRollingAvg - Float
twitterAdsRollingAvg - Float
Example
{
  "facebookAdsRollingAvg": 123.45,
  "googleAdsRollingAvg": 123.45,
  "googleAnalytics4RollingAvg": 123.45,
  "googleMyBusinessRollingAvg": 123.45,
  "googleSheetsRollingAvg": 987.65,
  "instagramAdsRollingAvg": 123.45,
  "linkedInAdsRollingAvg": 987.65,
  "microsoftAdsRollingAvg": 123.45,
  "tiktokAdsRollingAvg": 123.45,
  "twitterAdsRollingAvg": 123.45
}

InputPage

Input Field Description
accountId - String!
clientId - String!
cognitoUserId - String
id - String
isTracking - Boolean
url - String!
Example
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "cognitoUserId": "abc123",
  "id": "xyz789",
  "isTracking": true,
  "url": "xyz789"
}

InputPlannerMapDetails

Input Field Description
endDate - String
spend - String
startDate - String
target - String
Example
{
  "endDate": "xyz789",
  "spend": "xyz789",
  "startDate": "abc123",
  "target": "abc123"
}

InputSQS

Input Field Description
id - String
Example
{"id": "xyz789"}

InsightAction

Enum Value Description

acknowledge

delete

new

resolve

unacknowledge

unresolve

InsightPreference

Field Name Description
autoResolve - Int
Example
{"autoResolve": 987}

InsightTransactionInput

Input Field Description
accountId - String!
cognitoUserId - String
sortKey - String!
Example
{"accountId": "abc123", "cognitoUserId": "xyz789", "sortKey": "xyz789"}

InsightUpdateSubscriptionInput

Field Name Description
count - Int
id - String
items - [InsightsInput]
Example
{"count": 123, "id": "xyz789", "items": [InsightsInput]}

Insights

Field Name Description
accountId - String
acknowledgeDateTime - String
acknowledgedBy - ID
acknowledgedMethod - INSIGHTS_METHOD
chartImage - String
clientId - String
commentCount - Int
comments - InsightsComment
configuration - insightsConfiguration
createdBy - String
createdByJobType - INSIGHTS_JOBTYPE
dateCreated - String
dateUpdated - String
description - String
externalId - String
fullReportUrl - String
graphData - InsightsGraph
insightRelatedCount - Int
isAcknowledged - Boolean
isArchived - Boolean
isDeleted - Boolean
isPartialReport - Boolean
isResolved - Boolean
jobIcon - String
jobId - String
jobStatus - String
jobTitle - String
jobType - String
reference - Int
relatedCountOnCreation - Int
report - AWSJSON
resolveDateTime - String
resolvedBy - ID
resolvedMethod - INSIGHTS_METHOD
revisions - Int
service - SERVICE
slackMessage - SlackMessage
sortKey - String
summary - AWSJSON
title - String
trigger - String
watchList - [String]
Example
{
  "accountId": "xyz789",
  "acknowledgeDateTime": "abc123",
  "acknowledgedBy": ID,
  "acknowledgedMethod": INSIGHTS_METHOD,
  "chartImage": "abc123",
  "clientId": "abc123",
  "commentCount": 123,
  "comments": InsightsComment,
  "configuration": insightsConfiguration,
  "createdBy": "abc123",
  "createdByJobType": INSIGHTS_JOBTYPE,
  "dateCreated": "abc123",
  "dateUpdated": "xyz789",
  "description": "abc123",
  "externalId": "xyz789",
  "fullReportUrl": "abc123",
  "graphData": InsightsGraph,
  "insightRelatedCount": 987,
  "isAcknowledged": true,
  "isArchived": true,
  "isDeleted": false,
  "isPartialReport": true,
  "isResolved": true,
  "jobIcon": "xyz789",
  "jobId": "xyz789",
  "jobStatus": "abc123",
  "jobTitle": "xyz789",
  "jobType": "abc123",
  "reference": 123,
  "relatedCountOnCreation": 123,
  "report": AWSJSON,
  "resolveDateTime": "abc123",
  "resolvedBy": ID,
  "resolvedMethod": INSIGHTS_METHOD,
  "revisions": 987,
  "service": SERVICE,
  "slackMessage": SlackMessage,
  "sortKey": "xyz789",
  "summary": AWSJSON,
  "title": "xyz789",
  "trigger": "abc123",
  "watchList": ["abc123"]
}

InsightsComment

Field Name Description
valueHere - String
Example
{"valueHere": "abc123"}

InsightsCommentInput

Input Field Description
valueHere - String
Example
{"valueHere": "xyz789"}

InsightsConnection

Field Name Description
count - Int
id - String
items - [Insights]
nextToken - String
scannedCount - Int
Example
{
  "count": 987,
  "id": "abc123",
  "items": [Insights],
  "nextToken": "xyz789",
  "scannedCount": 123
}

InsightsCount

Field Name Description
count - Int
text - String
Example
{"count": 987, "text": "abc123"}

InsightsGraph

Field Name Description
anomalyGraphData - AnomalyGraphData
automationGraphData - AutomationGraphData
Example
{
  "anomalyGraphData": AnomalyGraphData,
  "automationGraphData": AutomationGraphData
}

InsightsGraphInput

Input Field Description
anomalyGraphData - AnomalyGraphDataInput
automationGraphData - AutomationGraphDataInput
Example
{
  "anomalyGraphData": AnomalyGraphDataInput,
  "automationGraphData": AutomationGraphDataInput
}

InsightsInput

Field Name Description
accountId - String
acknowledgeDateTime - String
acknowledgedBy - ID
acknowledgedMethod - INSIGHTS_METHOD
chartImage - String
clientId - String
comments - InsightsCommentInput
configuration - insightsConfigurationInput
createdBy - String
createdByJobType - INSIGHTS_JOBTYPE
dateCreated - String
dateUpdated - String
description - String
executionName - String
externalId - String
graphData - InsightsGraphInput
insightRelatedCount - Int
insightTimestamp - String
isAcknowledged - Boolean
isArchived - Boolean
isDeleted - Boolean
isResolved - Boolean
jobIcon - String
jobId - String
jobStatus - String
jobTitle - String
jobType - String
reference - Int
relatedCountOnCreation - Int
report - AWSJSON
resolveDateTime - String
resolvedBy - ID
resolvedMethod - INSIGHTS_METHOD
service - SERVICE
slackMessage - SlackMessageInput
sortKey - String
summary - AWSJSON
title - String
trigger - String
watchList - [String]
Example
{
  "accountId": "abc123",
  "acknowledgeDateTime": "xyz789",
  "acknowledgedBy": ID,
  "acknowledgedMethod": INSIGHTS_METHOD,
  "chartImage": "xyz789",
  "clientId": "xyz789",
  "comments": InsightsCommentInput,
  "configuration": insightsConfigurationInput,
  "createdBy": "abc123",
  "createdByJobType": INSIGHTS_JOBTYPE,
  "dateCreated": "abc123",
  "dateUpdated": "xyz789",
  "description": "abc123",
  "executionName": "abc123",
  "externalId": "abc123",
  "graphData": InsightsGraphInput,
  "insightRelatedCount": 123,
  "insightTimestamp": "xyz789",
  "isAcknowledged": true,
  "isArchived": true,
  "isDeleted": true,
  "isResolved": true,
  "jobIcon": "xyz789",
  "jobId": "abc123",
  "jobStatus": "xyz789",
  "jobTitle": "xyz789",
  "jobType": "abc123",
  "reference": 987,
  "relatedCountOnCreation": 987,
  "report": AWSJSON,
  "resolveDateTime": "abc123",
  "resolvedBy": ID,
  "resolvedMethod": INSIGHTS_METHOD,
  "service": SERVICE,
  "slackMessage": SlackMessageInput,
  "sortKey": "abc123",
  "summary": AWSJSON,
  "title": "xyz789",
  "trigger": "xyz789",
  "watchList": ["xyz789"]
}

InsightsReport

Field Name Description
valueHere - String
Example
{"valueHere": "abc123"}

InsightsTotal

Field Name Description
total - Int
Example
{"total": 123}

InstagramAds

Field Name Description
accountId - String
accountName - String
businessId - String
businessName - String
currency - String
email - String
hasActiveJob - Boolean
jobIds - [String]
timezone - String
Example
{
  "accountId": "xyz789",
  "accountName": "abc123",
  "businessId": "abc123",
  "businessName": "xyz789",
  "currency": "abc123",
  "email": "xyz789",
  "hasActiveJob": false,
  "jobIds": ["abc123"],
  "timezone": "abc123"
}

InstagramAdsInput

Input Field Description
accountId - String!
accountName - String!
businessId - String!
businessName - String!
currency - String
email - String!
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "businessId": "abc123",
  "businessName": "abc123",
  "currency": "abc123",
  "email": "xyz789"
}

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Example
123

ItemAction

Enum Value Description

archive

delete

new

resolve

unarchive

update

ItemDrivesByAccount

Field Name Description
id - String
label - String
Example
{"id": "abc123", "label": "xyz789"}

KPI

Field Name Description
accountId - String
advancedSettings - AWSJSON
changeHistory - String
client - Client
clientId - String
clientName - String
commentCount - Int
comments - [Comment]

Arguments

lastCommentTimestamp - String

limit - Int

configuration - KPIConfiguration
connectionStatus - String
dateCreated - String
dateUpdated - String
history - AWSJSON
id - String
isArchived - Boolean
isDeleted - Boolean
jobStatus - REPORT_STATUS
jobType - String
notifyConfig - NotifyConfig
notifySchedEmail - String
notifySchedSlack - String
notifySchedWebhook - String
report - KPIReport
revisions - Int
schedEmail - String
schedSlack - String
schedWebhook - String
service - SERVICE
sortKey - String
title - String
user - User
userId - String
watchList - [String]
webhookEvents - [WEBHOOK_ENUM]
webhookURL - String
Example
{
  "accountId": "xyz789",
  "advancedSettings": AWSJSON,
  "changeHistory": "xyz789",
  "client": Client,
  "clientId": "abc123",
  "clientName": "xyz789",
  "commentCount": 123,
  "comments": [Comment],
  "configuration": KPIConfiguration,
  "connectionStatus": "abc123",
  "dateCreated": "abc123",
  "dateUpdated": "xyz789",
  "history": AWSJSON,
  "id": "abc123",
  "isArchived": false,
  "isDeleted": true,
  "jobStatus": REPORT_STATUS,
  "jobType": "xyz789",
  "notifyConfig": NotifyConfig,
  "notifySchedEmail": "xyz789",
  "notifySchedSlack": "xyz789",
  "notifySchedWebhook": "xyz789",
  "report": KPIReport,
  "revisions": 123,
  "schedEmail": "abc123",
  "schedSlack": "abc123",
  "schedWebhook": "abc123",
  "service": SERVICE,
  "sortKey": "xyz789",
  "title": "xyz789",
  "user": User,
  "userId": "xyz789",
  "watchList": ["abc123"],
  "webhookEvents": [WEBHOOK_ENUM],
  "webhookURL": "abc123"
}

KPIAdsMetrics

Field Name Description
items - [KPIMetrics]
Example
{"items": [KPIMetrics]}

KPIConfiguration

Field Name Description
advancedSettings - AWSJSON
allCampaigns - Boolean
campaignIds - [String]
changepoints - String
comparisonPeriod - COMPARISON_PERIOD
currency - String
duration - Int
filters - GAdsFilter
googleSpreadsheet - GoogleSpreadsheetOutput
graphType - GRAPH_TYPE
holidays - KPIHolidayTreatmentOutput
isReversed - Boolean
isTitleAutoGenerated - Boolean
metricId - String
metricName - String
missingValueHandling - String
period - KPI_PERIOD
seasonalities - SeasonalitiesOutput
segmentId - String
segmentName - String
startDate - String
targetComparisonPeriod - COMPARISON_PERIOD
targetCustomPeriod - String
targetMetricId - String
targetMetricName - String
targetPeriod - KPI_PERIOD
targetSegmentId - String
targetSegmentName - String
targetType - KPI_TARGET_TYPE
targetValue - Float
type - String
value - Float
Example
{
  "advancedSettings": AWSJSON,
  "allCampaigns": false,
  "campaignIds": ["xyz789"],
  "changepoints": "abc123",
  "comparisonPeriod": COMPARISON_PERIOD,
  "currency": "abc123",
  "duration": 987,
  "filters": GAdsFilter,
  "googleSpreadsheet": GoogleSpreadsheetOutput,
  "graphType": GRAPH_TYPE,
  "holidays": KPIHolidayTreatmentOutput,
  "isReversed": true,
  "isTitleAutoGenerated": false,
  "metricId": "abc123",
  "metricName": "xyz789",
  "missingValueHandling": "abc123",
  "period": KPI_PERIOD,
  "seasonalities": SeasonalitiesOutput,
  "segmentId": "abc123",
  "segmentName": "xyz789",
  "startDate": "abc123",
  "targetComparisonPeriod": COMPARISON_PERIOD,
  "targetCustomPeriod": "xyz789",
  "targetMetricId": "xyz789",
  "targetMetricName": "xyz789",
  "targetPeriod": KPI_PERIOD,
  "targetSegmentId": "xyz789",
  "targetSegmentName": "abc123",
  "targetType": KPI_TARGET_TYPE,
  "targetValue": 123.45,
  "type": "xyz789",
  "value": 123.45
}

KPIConfigurationInput

Field Name Description
advancedSettings - AWSJSON
allCampaigns - Boolean
campaignIds - [String]
changepoints - String
comparisonPeriod - COMPARISON_PERIOD
currency - String
duration - Int
filters - GAdsFilterInput
googleSpreadsheet - GoogleSpreadsheetInput
graphType - GRAPH_TYPE
holidays - KPIHolidayTreatmentInput
isReversed - Boolean
isTitleAutoGenerated - Boolean
metricId - String
metricName - String
missingValueHandling - String
period - String
seasonalities - SeasonalitiesInput
segmentId - String
segmentName - String
startDate - String
targetComparisonPeriod - COMPARISON_PERIOD
targetCustomPeriod - String
targetMetricId - String
targetMetricName - String
targetPeriod - KPI_PERIOD
targetSegmentId - String
targetSegmentName - String
targetType - KPI_TARGET_TYPE
targetValue - Float
type - String
value - Float
Example
{
  "advancedSettings": AWSJSON,
  "allCampaigns": false,
  "campaignIds": ["abc123"],
  "changepoints": "abc123",
  "comparisonPeriod": COMPARISON_PERIOD,
  "currency": "abc123",
  "duration": 987,
  "filters": GAdsFilterInput,
  "googleSpreadsheet": GoogleSpreadsheetInput,
  "graphType": GRAPH_TYPE,
  "holidays": KPIHolidayTreatmentInput,
  "isReversed": false,
  "isTitleAutoGenerated": false,
  "metricId": "xyz789",
  "metricName": "abc123",
  "missingValueHandling": "xyz789",
  "period": "xyz789",
  "seasonalities": SeasonalitiesInput,
  "segmentId": "xyz789",
  "segmentName": "xyz789",
  "startDate": "abc123",
  "targetComparisonPeriod": COMPARISON_PERIOD,
  "targetCustomPeriod": "xyz789",
  "targetMetricId": "xyz789",
  "targetMetricName": "xyz789",
  "targetPeriod": KPI_PERIOD,
  "targetSegmentId": "abc123",
  "targetSegmentName": "abc123",
  "targetType": KPI_TARGET_TYPE,
  "targetValue": 123.45,
  "type": "abc123",
  "value": 123.45
}

KPIConnection

Field Name Description
items - [KPI]
Example
{"items": [KPI]}

KPIGAdsConfigInput

Input Field Description
advancedSettings - AWSJSON
allCampaigns - Boolean!
campaignIds - [String!]
filters - GAdsFilterInput
graphType - GRAPH_TYPE
isTitleAutoGenerated - Boolean!
targetComparisonPeriod - COMPARISON_PERIOD
targetMetricId - String!
targetMetricName - String
targetPeriod - KPI_PERIOD!
targetType - KPI_TARGET_TYPE!
targetValue - Float!
Example
{
  "advancedSettings": AWSJSON,
  "allCampaigns": true,
  "campaignIds": ["xyz789"],
  "filters": GAdsFilterInput,
  "graphType": GRAPH_TYPE,
  "isTitleAutoGenerated": true,
  "targetComparisonPeriod": COMPARISON_PERIOD,
  "targetMetricId": "abc123",
  "targetMetricName": "xyz789",
  "targetPeriod": KPI_PERIOD,
  "targetType": KPI_TARGET_TYPE,
  "targetValue": 987.65
}

KPIGAdsInput

Input Field Description
accountId - String!
authEmail - String!
clientId - String!
cognitoUserId - String!
configuration - KPIGAdsConfigInput
isPreview - Boolean!
notifyConfig - notifyConfigInput
notifySchedEmail - String
notifySchedSlack - String
schedEmail - String
schedSlack - String
service - SERVICE!
title - String
Example
{
  "accountId": "xyz789",
  "authEmail": "xyz789",
  "clientId": "xyz789",
  "cognitoUserId": "abc123",
  "configuration": KPIGAdsConfigInput,
  "isPreview": false,
  "notifyConfig": notifyConfigInput,
  "notifySchedEmail": "xyz789",
  "notifySchedSlack": "abc123",
  "schedEmail": "abc123",
  "schedSlack": "xyz789",
  "service": SERVICE,
  "title": "xyz789"
}

KPIGAdsPreviewConfigurationInput

Input Field Description
accountId - String!
authEmail - String!
clientId - String!
configuration - KPIGAdsConfigInput
isPreview - Boolean!
service - SERVICE!
Example
{
  "accountId": "abc123",
  "authEmail": "xyz789",
  "clientId": "abc123",
  "configuration": KPIGAdsConfigInput,
  "isPreview": true,
  "service": SERVICE
}

KPIGAdsPreviewReportInput

Field Name Description
calculated - Boolean
currency - String
currentDateEnd - String
currentDateStart - String
currentDaysElapsed - Int
currentDaysRemaining - Int
currentPacing - Float
currentPacingDirection - String
currentPercentage - Float
currentValue - Float
currentValueAverage - Float
endDate - String
graphData - AWSJSON
hasSampling - Boolean
history - [KPIPreviewReportHistory]
period - String
predictionDateEnd - String
predictionDateStart - String
predictionPercentage - Float
predictionValue - Float
predictionValueAverage - Float
previousDateEnd - String
previousDateStart - String
previousValue - Float
rollingAverage - Float
rollingAveragePercentage - Float
samplingPercent - Int
seasonalComponents - AWSJSON
startDate - String
status - String
symbol - KPIGAdsSymbol
targetDate - String
targetMet - Boolean
targetValue - Float
unit - String
Example
{
  "calculated": true,
  "currency": "abc123",
  "currentDateEnd": "xyz789",
  "currentDateStart": "abc123",
  "currentDaysElapsed": 123,
  "currentDaysRemaining": 123,
  "currentPacing": 987.65,
  "currentPacingDirection": "xyz789",
  "currentPercentage": 987.65,
  "currentValue": 987.65,
  "currentValueAverage": 123.45,
  "endDate": "abc123",
  "graphData": AWSJSON,
  "hasSampling": false,
  "history": [KPIPreviewReportHistory],
  "period": "abc123",
  "predictionDateEnd": "xyz789",
  "predictionDateStart": "xyz789",
  "predictionPercentage": 123.45,
  "predictionValue": 123.45,
  "predictionValueAverage": 123.45,
  "previousDateEnd": "xyz789",
  "previousDateStart": "abc123",
  "previousValue": 987.65,
  "rollingAverage": 987.65,
  "rollingAveragePercentage": 987.65,
  "samplingPercent": 123,
  "seasonalComponents": AWSJSON,
  "startDate": "xyz789",
  "status": "abc123",
  "symbol": KPIGAdsSymbol,
  "targetDate": "abc123",
  "targetMet": false,
  "targetValue": 123.45,
  "unit": "xyz789"
}

KPIGAdsPreviewReportResultInput

Input Field Description
id - ID!
message - String
report - KPIGAdsPreviewReportInput
stage - PREVIEW_STAGE!
status - KPIPreviewStatus!
Example
{
  "id": ID,
  "message": "xyz789",
  "report": KPIGAdsPreviewReportInput,
  "stage": PREVIEW_STAGE,
  "status": KPIPreviewStatus
}

KPIGAdsPreviewResponse

Field Name Description
executionArn - String
id - ID!
jobStatus - REPORT_STATUS
message - String
report - KPIGAdsReport
stage - PREVIEW_STAGE!
status - KPIPreviewStatus
Example
{
  "executionArn": "xyz789",
  "id": ID,
  "jobStatus": REPORT_STATUS,
  "message": "xyz789",
  "report": KPIGAdsReport,
  "stage": PREVIEW_STAGE,
  "status": KPIPreviewStatus
}

KPIGAdsReport

Field Name Description
calculated - Boolean
currency - String
currentDateEnd - String
currentDateStart - String
currentDaysElapsed - Int
currentDaysRemaining - Int
currentPacing - Float
currentPacingDirection - String
currentPercentage - Float
currentValue - Float
currentValueAverage - Float
endDate - String
graphData - graphDataReport
hasSampling - Boolean
history - [KPIHistory]
isReversed - Boolean
period - String
predictionDateEnd - String
predictionDateStart - String
predictionPercentage - Float
predictionValue - Float
predictionValueAverage - Float
previousDateEnd - String
previousDateStart - String
previousValue - Float
rollingAverage - Float
rollingAveragePercentage - Float
samplingPercent - Int
seasonalComponents - AWSJSON
startDate - String
status - String
symbol - KPIGAdsSymbol
targetDate - String
targetMet - Boolean
targetValue - Float
unit - String
Example
{
  "calculated": false,
  "currency": "abc123",
  "currentDateEnd": "xyz789",
  "currentDateStart": "xyz789",
  "currentDaysElapsed": 987,
  "currentDaysRemaining": 123,
  "currentPacing": 123.45,
  "currentPacingDirection": "abc123",
  "currentPercentage": 123.45,
  "currentValue": 123.45,
  "currentValueAverage": 987.65,
  "endDate": "xyz789",
  "graphData": graphDataReport,
  "hasSampling": true,
  "history": [KPIHistory],
  "isReversed": false,
  "period": "xyz789",
  "predictionDateEnd": "xyz789",
  "predictionDateStart": "xyz789",
  "predictionPercentage": 123.45,
  "predictionValue": 987.65,
  "predictionValueAverage": 123.45,
  "previousDateEnd": "xyz789",
  "previousDateStart": "abc123",
  "previousValue": 123.45,
  "rollingAverage": 987.65,
  "rollingAveragePercentage": 987.65,
  "samplingPercent": 987,
  "seasonalComponents": AWSJSON,
  "startDate": "xyz789",
  "status": "abc123",
  "symbol": KPIGAdsSymbol,
  "targetDate": "abc123",
  "targetMet": true,
  "targetValue": 123.45,
  "unit": "xyz789"
}

KPIGAdsSymbol

Enum Value Description

CURRENCY

NONE

PERCENTAGE

KPIGSpreadsheetPreviewReportResultInput

Input Field Description
id - ID!
message - String
report - KPIGSpreadsheetReportInput
stage - PREVIEW_STAGE!
status - KPIPreviewStatus!
Example
{
  "id": ID,
  "message": "xyz789",
  "report": KPIGSpreadsheetReportInput,
  "stage": PREVIEW_STAGE,
  "status": KPIPreviewStatus
}

KPIGSpreadsheetPreviewResult

Field Name Description
executionArn - String
id - ID!
jobStatus - REPORT_STATUS
message - String
report - KPIGSpreadsheetReport
stage - PREVIEW_STAGE!
status - KPIPreviewStatus
Example
{
  "executionArn": "xyz789",
  "id": ID,
  "jobStatus": REPORT_STATUS,
  "message": "abc123",
  "report": KPIGSpreadsheetReport,
  "stage": PREVIEW_STAGE,
  "status": KPIPreviewStatus
}

KPIGSpreadsheetReport

Field Name Description
calculated - Boolean
currency - String
currentDateEnd - String
currentDateStart - String
currentDaysElapsed - Int
currentDaysRemaining - Int
currentPacing - Float
currentPacingDirection - String
currentPercentage - Float
currentValue - Float
currentValueAverage - Float
endDate - String
graphData - AWSJSON
hasSampling - Boolean
history - [KPIHistory]
isReversed - Boolean
period - String
predictionDateEnd - String
predictionDateStart - String
predictionPercentage - Float
predictionValue - Float
predictionValueAverage - Float
previousDateEnd - String
previousDateStart - String
previousValue - Float
rollingAverage - Float
rollingAveragePercentage - Float
samplingPercent - Int
seasonalComponents - AWSJSON
startDate - String
status - String
symbol - KPIGAdsSymbol
targetDate - String
targetMet - Boolean
targetValue - Float
unit - String
Example
{
  "calculated": true,
  "currency": "xyz789",
  "currentDateEnd": "abc123",
  "currentDateStart": "abc123",
  "currentDaysElapsed": 987,
  "currentDaysRemaining": 123,
  "currentPacing": 987.65,
  "currentPacingDirection": "abc123",
  "currentPercentage": 987.65,
  "currentValue": 987.65,
  "currentValueAverage": 123.45,
  "endDate": "abc123",
  "graphData": AWSJSON,
  "hasSampling": true,
  "history": [KPIHistory],
  "isReversed": true,
  "period": "abc123",
  "predictionDateEnd": "abc123",
  "predictionDateStart": "xyz789",
  "predictionPercentage": 987.65,
  "predictionValue": 987.65,
  "predictionValueAverage": 987.65,
  "previousDateEnd": "xyz789",
  "previousDateStart": "abc123",
  "previousValue": 987.65,
  "rollingAverage": 123.45,
  "rollingAveragePercentage": 123.45,
  "samplingPercent": 987,
  "seasonalComponents": AWSJSON,
  "startDate": "abc123",
  "status": "xyz789",
  "symbol": KPIGAdsSymbol,
  "targetDate": "xyz789",
  "targetMet": false,
  "targetValue": 123.45,
  "unit": "xyz789"
}

KPIGSpreadsheetReportInput

Field Name Description
calculated - Boolean
chartImage - String
currency - String
currentDateEnd - String
currentDateStart - String
currentDaysElapsed - Int
currentDaysRemaining - Int
currentDaysRemainingPercentage - Int
currentPacing - Float
currentPacingDirection - String
currentPercentage - Float
currentValue - Float
currentValueAverage - Float
endDate - String
graphData - AWSJSON
hasSampling - Boolean
history - [KPIPreviewReportHistory]
isReversed - Boolean
period - String
predictionDateEnd - String
predictionDateStart - String
predictionPercentage - Float
predictionValue - Float
predictionValueAverage - Float
previousDateEnd - String
previousDateStart - String
previousValue - Float
rollingAverage - Float
rollingAveragePercentage - Float
samplingPercent - Int
seasonalComponents - AWSJSON
startDate - String
status - String
symbol - String
targetDate - String
targetMet - Boolean
targetValue - Float
unit - String
Example
{
  "calculated": false,
  "chartImage": "abc123",
  "currency": "xyz789",
  "currentDateEnd": "abc123",
  "currentDateStart": "abc123",
  "currentDaysElapsed": 123,
  "currentDaysRemaining": 987,
  "currentDaysRemainingPercentage": 123,
  "currentPacing": 123.45,
  "currentPacingDirection": "abc123",
  "currentPercentage": 987.65,
  "currentValue": 123.45,
  "currentValueAverage": 987.65,
  "endDate": "xyz789",
  "graphData": AWSJSON,
  "hasSampling": true,
  "history": [KPIPreviewReportHistory],
  "isReversed": true,
  "period": "xyz789",
  "predictionDateEnd": "xyz789",
  "predictionDateStart": "xyz789",
  "predictionPercentage": 123.45,
  "predictionValue": 987.65,
  "predictionValueAverage": 123.45,
  "previousDateEnd": "abc123",
  "previousDateStart": "abc123",
  "previousValue": 987.65,
  "rollingAverage": 123.45,
  "rollingAveragePercentage": 987.65,
  "samplingPercent": 987,
  "seasonalComponents": AWSJSON,
  "startDate": "xyz789",
  "status": "abc123",
  "symbol": "abc123",
  "targetDate": "abc123",
  "targetMet": false,
  "targetValue": 987.65,
  "unit": "abc123"
}

KPIHistory

Field Name Description
actual - Float
name - String
previous - Float
range - String
status - Boolean
target - String
Example
{
  "actual": 987.65,
  "name": "abc123",
  "previous": 123.45,
  "range": "abc123",
  "status": true,
  "target": "xyz789"
}

KPIHistoryDetails

Field Name Description
actual - Float!
name - String!
previous - Float!
range - String!
status - String!
target - String!
Example
{
  "actual": 123.45,
  "name": "abc123",
  "previous": 123.45,
  "range": "abc123",
  "status": "abc123",
  "target": "xyz789"
}

KPIHistoryDetailsInput

Input Field Description
actual - Float!
name - String!
previous - Float!
range - String!
status - String!
target - String!
Example
{
  "actual": 123.45,
  "name": "abc123",
  "previous": 987.65,
  "range": "xyz789",
  "status": "xyz789",
  "target": "abc123"
}

KPIHolidayTreatmentInput

Input Field Description
country - String
priorScale - Int
Example
{"country": "xyz789", "priorScale": 123}

KPIHolidayTreatmentOutput

Field Name Description
country - String
priorScale - Int
Example
{"country": "abc123", "priorScale": 987}

KPIInput

Field Name Description
accountId - String
authEmail - String
clientId - String
cognitoUserId - String
configuration - KPIConfigurationInput
executionArn - String
isTitleAutoGenerated - Boolean
kpiSortKey - String
notifyConfig - notifyConfigInput
notifySchedEmail - String
notifySchedSlack - String
notifySchedWebhook - String
revisions - Int
schedEmail - String
schedSlack - String
schedWebhook - String
service - SERVICE
sortKey - String
title - String
webhookEvents - [WEBHOOK_ENUM]
webhookURL - String
Example
{
  "accountId": "abc123",
  "authEmail": "xyz789",
  "clientId": "xyz789",
  "cognitoUserId": "xyz789",
  "configuration": KPIConfigurationInput,
  "executionArn": "abc123",
  "isTitleAutoGenerated": false,
  "kpiSortKey": "abc123",
  "notifyConfig": notifyConfigInput,
  "notifySchedEmail": "xyz789",
  "notifySchedSlack": "abc123",
  "notifySchedWebhook": "xyz789",
  "revisions": 123,
  "schedEmail": "abc123",
  "schedSlack": "xyz789",
  "schedWebhook": "abc123",
  "service": SERVICE,
  "sortKey": "abc123",
  "title": "xyz789",
  "webhookEvents": [WEBHOOK_ENUM],
  "webhookURL": "abc123"
}

KPIItems

Field Name Description
items - [KPI]
nextToken - String
Example
{"items": [KPI], "nextToken": "abc123"}

KPIMAdsPreviewReportInput

Field Name Description
calculated - Boolean
currency - String
currentDateEnd - String
currentDateStart - String
currentDaysElapsed - Int
currentDaysRemaining - Int
currentPacing - Float
currentPacingDirection - String
currentPercentage - Float
currentValue - Float
currentValueAverage - Float
endDate - String
graphData - AWSJSON
hasSampling - Boolean
history - [KPIPreviewReportHistory]
period - String
predictionDateEnd - String
predictionDateStart - String
predictionPercentage - Float
predictionValue - Float
predictionValueAverage - Float
previousDateEnd - String
previousDateStart - String
previousValue - Float
rollingAverage - Float
rollingAveragePercentage - Float
samplingPercent - Int
seasonalComponents - AWSJSON
startDate - String
status - String
symbol - KPIGAdsSymbol
targetDate - String
targetMet - Boolean
targetValue - Float
unit - String
Example
{
  "calculated": true,
  "currency": "xyz789",
  "currentDateEnd": "xyz789",
  "currentDateStart": "xyz789",
  "currentDaysElapsed": 987,
  "currentDaysRemaining": 123,
  "currentPacing": 987.65,
  "currentPacingDirection": "xyz789",
  "currentPercentage": 987.65,
  "currentValue": 987.65,
  "currentValueAverage": 123.45,
  "endDate": "xyz789",
  "graphData": AWSJSON,
  "hasSampling": false,
  "history": [KPIPreviewReportHistory],
  "period": "abc123",
  "predictionDateEnd": "abc123",
  "predictionDateStart": "xyz789",
  "predictionPercentage": 123.45,
  "predictionValue": 987.65,
  "predictionValueAverage": 987.65,
  "previousDateEnd": "abc123",
  "previousDateStart": "abc123",
  "previousValue": 987.65,
  "rollingAverage": 987.65,
  "rollingAveragePercentage": 123.45,
  "samplingPercent": 987,
  "seasonalComponents": AWSJSON,
  "startDate": "xyz789",
  "status": "xyz789",
  "symbol": KPIGAdsSymbol,
  "targetDate": "abc123",
  "targetMet": false,
  "targetValue": 123.45,
  "unit": "abc123"
}

KPIMAdsPreviewReportResultInput

Input Field Description
id - ID!
message - String
report - KPIMAdsPreviewReportInput
stage - PREVIEW_STAGE!
status - KPIPreviewStatus!
Example
{
  "id": ID,
  "message": "xyz789",
  "report": KPIMAdsPreviewReportInput,
  "stage": PREVIEW_STAGE,
  "status": KPIPreviewStatus
}

KPIMAdsPreviewResponse

Field Name Description
executionArn - String
id - ID!
jobStatus - REPORT_STATUS
message - String
report - KPIMAdsReport
stage - PREVIEW_STAGE!
status - KPIPreviewStatus
Example
{
  "executionArn": "abc123",
  "id": ID,
  "jobStatus": REPORT_STATUS,
  "message": "abc123",
  "report": KPIMAdsReport,
  "stage": PREVIEW_STAGE,
  "status": KPIPreviewStatus
}

KPIMAdsReport

Field Name Description
calculated - Boolean
currency - String
currentDateEnd - String
currentDateStart - String
currentDaysElapsed - Int
currentDaysRemaining - Int
currentPacing - Float
currentPacingDirection - String
currentPercentage - Float
currentValue - Float
currentValueAverage - Float
endDate - String
graphData - graphDataReport
hasSampling - Boolean
history - [KPIHistory]
isReversed - Boolean
period - String
predictionDateEnd - String
predictionDateStart - String
predictionPercentage - Float
predictionValue - Float
predictionValueAverage - Float
previousDateEnd - String
previousDateStart - String
previousValue - Float
rollingAverage - Float
rollingAveragePercentage - Float
samplingPercent - Int
seasonalComponents - AWSJSON
startDate - String
status - String
symbol - KPIGAdsSymbol
targetDate - String
targetMet - Boolean
targetValue - Float
unit - String
Example
{
  "calculated": true,
  "currency": "xyz789",
  "currentDateEnd": "abc123",
  "currentDateStart": "abc123",
  "currentDaysElapsed": 123,
  "currentDaysRemaining": 123,
  "currentPacing": 123.45,
  "currentPacingDirection": "abc123",
  "currentPercentage": 987.65,
  "currentValue": 987.65,
  "currentValueAverage": 987.65,
  "endDate": "abc123",
  "graphData": graphDataReport,
  "hasSampling": false,
  "history": [KPIHistory],
  "isReversed": true,
  "period": "xyz789",
  "predictionDateEnd": "abc123",
  "predictionDateStart": "abc123",
  "predictionPercentage": 987.65,
  "predictionValue": 123.45,
  "predictionValueAverage": 987.65,
  "previousDateEnd": "xyz789",
  "previousDateStart": "abc123",
  "previousValue": 123.45,
  "rollingAverage": 123.45,
  "rollingAveragePercentage": 123.45,
  "samplingPercent": 123,
  "seasonalComponents": AWSJSON,
  "startDate": "abc123",
  "status": "abc123",
  "symbol": KPIGAdsSymbol,
  "targetDate": "xyz789",
  "targetMet": true,
  "targetValue": 123.45,
  "unit": "abc123"
}

KPIMetrics

Field Name Description
calculated - Boolean
chartOptions - [String]
formula - KPIMetricsFormula
group - String
id - String
isReversed - Boolean
key - String
name - String
requiredMetrics - [String]
symbol - String
timeResolutions - [String]
value - String
Example
{
  "calculated": false,
  "chartOptions": ["abc123"],
  "formula": KPIMetricsFormula,
  "group": "xyz789",
  "id": "xyz789",
  "isReversed": true,
  "key": "abc123",
  "name": "xyz789",
  "requiredMetrics": ["xyz789"],
  "symbol": "abc123",
  "timeResolutions": ["xyz789"],
  "value": "abc123"
}

KPIMetricsFormula

Field Name Description
equation - String
operator1 - String
operator2 - String
Example
{"equation": "abc123", "operator1": "abc123", "operator2": "xyz789"}

KPIPreviewConfigurationInput

Input Field Description
accessToken - String
accountId - ID!
appEnv - APP_ENV
authEmail - String!
clientId - ID!
configuration - KPITargetConfigInput!
isPreview - Boolean!
service - SERVICE!
Example
{
  "accessToken": "xyz789",
  "accountId": ID,
  "appEnv": APP_ENV,
  "authEmail": "abc123",
  "clientId": ID,
  "configuration": KPITargetConfigInput,
  "isPreview": false,
  "service": SERVICE
}

KPIPreviewReportHistory

Input Field Description
actual - Float
name - String
previous - Float
range - String
status - Boolean
target - String
Example
{
  "actual": 123.45,
  "name": "xyz789",
  "previous": 123.45,
  "range": "xyz789",
  "status": true,
  "target": "abc123"
}

KPIPreviewReportInput

Field Name Description
currency - String
currentBreakdown - [String]
currentDateEnd - String
currentDateStart - String
currentDaysElapsed - Int
currentDaysRemaining - Int
currentPacing - Float
currentPacingDirection - String
currentPercentage - Float
currentValue - Float
currentValueAverage - Float
currentValueRemaining - Float
endDate - String
graphDataCumulative - KPIReportDataCumulativeInput
graphDataSeries - KPIReportDataSeriesInput
graphType - String
hasSampling - Boolean
history - [KPIHistoryDetailsInput]
period - String
predictionBreakdown - [String]
predictionDateEnd - String
predictionDateStart - String
predictionPercentage - Float
predictionValue - Float
predictionValueAverage - Float
previousBreakdown - [String]
previousDateEnd - String
previousDateStart - String
previousPercentage - Float
previousValue - Float
rollingAverage - Float
rollingAveragePercentage - Float
samplingPercent - Int
seasonalComponents - AWSJSON
startDate - String
status - String
symbol - String
targetBreakdown - [String]
targetDate - String
targetType - String
targetValue - Float
unit - String
Example
{
  "currency": "abc123",
  "currentBreakdown": ["abc123"],
  "currentDateEnd": "xyz789",
  "currentDateStart": "xyz789",
  "currentDaysElapsed": 987,
  "currentDaysRemaining": 123,
  "currentPacing": 123.45,
  "currentPacingDirection": "xyz789",
  "currentPercentage": 987.65,
  "currentValue": 987.65,
  "currentValueAverage": 123.45,
  "currentValueRemaining": 987.65,
  "endDate": "xyz789",
  "graphDataCumulative": KPIReportDataCumulativeInput,
  "graphDataSeries": KPIReportDataSeriesInput,
  "graphType": "abc123",
  "hasSampling": true,
  "history": [KPIHistoryDetailsInput],
  "period": "abc123",
  "predictionBreakdown": ["abc123"],
  "predictionDateEnd": "xyz789",
  "predictionDateStart": "abc123",
  "predictionPercentage": 987.65,
  "predictionValue": 987.65,
  "predictionValueAverage": 987.65,
  "previousBreakdown": ["abc123"],
  "previousDateEnd": "abc123",
  "previousDateStart": "abc123",
  "previousPercentage": 987.65,
  "previousValue": 123.45,
  "rollingAverage": 987.65,
  "rollingAveragePercentage": 123.45,
  "samplingPercent": 987,
  "seasonalComponents": AWSJSON,
  "startDate": "abc123",
  "status": "xyz789",
  "symbol": "xyz789",
  "targetBreakdown": ["xyz789"],
  "targetDate": "xyz789",
  "targetType": "abc123",
  "targetValue": 987.65,
  "unit": "xyz789"
}

KPIPreviewReportResultInput

Input Field Description
errorMessage - AWSJSON
id - ID!
message - String
report - KPIPreviewReportInput
stage - PREVIEW_STAGE!
status - KPIPreviewStatus!
Example
{
  "errorMessage": AWSJSON,
  "id": ID,
  "message": "xyz789",
  "report": KPIPreviewReportInput,
  "stage": PREVIEW_STAGE,
  "status": KPIPreviewStatus
}

KPIPreviewResponse

Field Name Description
errorMessage - AWSJSON
executionArn - String
id - ID!
jobStatus - REPORT_STATUS
message - String
report - KPIReport
stage - PREVIEW_STAGE!
status - KPIPreviewStatus!
Example
{
  "errorMessage": AWSJSON,
  "executionArn": "abc123",
  "id": ID,
  "jobStatus": REPORT_STATUS,
  "message": "abc123",
  "report": KPIReport,
  "stage": PREVIEW_STAGE,
  "status": KPIPreviewStatus
}

KPIPreviewStatus

Enum Value Description

COMPLETE

ERROR

PENDING

RESOURCE_EXHAUSTED

SUCCESS

TIMEOUT

KPIReport

Field Name Description
calculated - Boolean
chartImage - String
currency - String
currentBreakdown - [String]
currentDateEnd - String
currentDateStart - String
currentDaysElapsed - Int
currentDaysRemaining - Int
currentDaysRemainingPercentage - Float
currentPacing - Float
currentPacingDirection - String
currentPercentage - Float
currentValue - Float
currentValueAverage - Float
currentValueRemaining - Float
dateCreated - String
dateUpdated - String
endDate - String
graphData - graphDataReport
graphDataCumulative - KPIReportDataCumulative
graphDataImage - String
graphDataSeries - KPIReportDataSeries
graphType - String
hasSampling - Boolean
history - [KPIHistoryDetails]
period - String
predictionBreakdown - [String]
predictionDateEnd - String
predictionDateStart - String
predictionPercentage - Float
predictionValue - Float
predictionValueAverage - Float
previousBreakdown - [String]
previousDateEnd - String
previousDateStart - String
previousPercentage - Float
previousValue - Float
rollingAverage - Float
rollingAveragePercentage - Float
samplingPercent - Float
seasonalComponents - AWSJSON
startDate - String
status - String
symbol - String
targetBreakdown - [String]
targetDate - String
targetMet - Boolean
targetType - String
targetValue - Float
unit - String
Example
{
  "calculated": false,
  "chartImage": "xyz789",
  "currency": "xyz789",
  "currentBreakdown": ["abc123"],
  "currentDateEnd": "xyz789",
  "currentDateStart": "xyz789",
  "currentDaysElapsed": 987,
  "currentDaysRemaining": 987,
  "currentDaysRemainingPercentage": 987.65,
  "currentPacing": 987.65,
  "currentPacingDirection": "xyz789",
  "currentPercentage": 987.65,
  "currentValue": 987.65,
  "currentValueAverage": 987.65,
  "currentValueRemaining": 123.45,
  "dateCreated": "abc123",
  "dateUpdated": "abc123",
  "endDate": "abc123",
  "graphData": graphDataReport,
  "graphDataCumulative": KPIReportDataCumulative,
  "graphDataImage": "abc123",
  "graphDataSeries": KPIReportDataSeries,
  "graphType": "xyz789",
  "hasSampling": true,
  "history": [KPIHistoryDetails],
  "period": "xyz789",
  "predictionBreakdown": ["abc123"],
  "predictionDateEnd": "xyz789",
  "predictionDateStart": "abc123",
  "predictionPercentage": 987.65,
  "predictionValue": 123.45,
  "predictionValueAverage": 123.45,
  "previousBreakdown": ["abc123"],
  "previousDateEnd": "xyz789",
  "previousDateStart": "abc123",
  "previousPercentage": 987.65,
  "previousValue": 987.65,
  "rollingAverage": 987.65,
  "rollingAveragePercentage": 123.45,
  "samplingPercent": 987.65,
  "seasonalComponents": AWSJSON,
  "startDate": "xyz789",
  "status": "abc123",
  "symbol": "abc123",
  "targetBreakdown": ["xyz789"],
  "targetDate": "abc123",
  "targetMet": true,
  "targetType": "abc123",
  "targetValue": 987.65,
  "unit": "xyz789"
}

KPIReportDataCumulative

Field Name Description
Example
{}

KPIReportDataCumulativeInput

Field Name Description
Example
{}

KPIReportDataSeries

Field Name Description
Example
{}

KPIReportDataSeriesInput

Input Field Description
rollingAveragePercentage - Float
Example
{"rollingAveragePercentage": 987.65}

KPISpreadhseetPreviewResponse

Field Name Description
executionArn - String
id - ID!
jobStatus - REPORT_STATUS
message - String
report - KPIGAdsReport
stage - PREVIEW_STAGE!
status - KPIPreviewStatus
Example
{
  "executionArn": "abc123",
  "id": ID,
  "jobStatus": REPORT_STATUS,
  "message": "abc123",
  "report": KPIGAdsReport,
  "stage": PREVIEW_STAGE,
  "status": KPIPreviewStatus
}

KPISpreadsheetConfigInput

Input Field Description
advancedSettings - AWSJSON
changepoints - String
currency - String
duration - Int
googleSpreadsheet - GoogleSpreadsheetInput
graphType - GRAPH_TYPE!
holidays - KPIHolidayTreatmentInput
isReversed - Boolean
missingValueHandling - String
seasonalities - SeasonalitiesInput
startDate - String
targetComparisonPeriod - COMPARISON_PERIOD
targetPeriod - KPI_PERIOD
targetType - KPI_TARGET_TYPE
targetValue - Int
Example
{
  "advancedSettings": AWSJSON,
  "changepoints": "xyz789",
  "currency": "xyz789",
  "duration": 123,
  "googleSpreadsheet": GoogleSpreadsheetInput,
  "graphType": GRAPH_TYPE,
  "holidays": KPIHolidayTreatmentInput,
  "isReversed": true,
  "missingValueHandling": "xyz789",
  "seasonalities": SeasonalitiesInput,
  "startDate": "abc123",
  "targetComparisonPeriod": COMPARISON_PERIOD,
  "targetPeriod": KPI_PERIOD,
  "targetType": KPI_TARGET_TYPE,
  "targetValue": 123
}

KPISpreadsheetPreviewConfigurationInput

Input Field Description
accountId - ID!
authEmail - String!
clientId - ID!
configuration - KPISpreadsheetConfigInput
isPreview - Boolean!
service - SERVICE!
Example
{
  "accountId": ID,
  "authEmail": "xyz789",
  "clientId": ID,
  "configuration": KPISpreadsheetConfigInput,
  "isPreview": false,
  "service": SERVICE
}

KPITargetConfigInput

Input Field Description
advancedSettings - AWSJSON
allCampaigns - Boolean
campaignIds - [String!]
filters - AWSJSON
graphType - GRAPH_TYPE
isTitleAutoGenerated - Boolean!
targetComparisonPeriod - COMPARISON_PERIOD!
targetMetricId - String!
targetMetricName - String!
targetPeriod - KPI_PERIOD!
targetSegmentId - String
targetSegmentName - String
targetType - KPI_TARGET_TYPE!
targetValue - Float!
Example
{
  "advancedSettings": AWSJSON,
  "allCampaigns": false,
  "campaignIds": ["xyz789"],
  "filters": AWSJSON,
  "graphType": GRAPH_TYPE,
  "isTitleAutoGenerated": false,
  "targetComparisonPeriod": COMPARISON_PERIOD,
  "targetMetricId": "xyz789",
  "targetMetricName": "abc123",
  "targetPeriod": KPI_PERIOD,
  "targetSegmentId": "xyz789",
  "targetSegmentName": "abc123",
  "targetType": KPI_TARGET_TYPE,
  "targetValue": 987.65
}

KPITransactionInput

Input Field Description
accountId - String!
clientId - String!
cognitoUserId - String!
kpiSortKey - String!
revisions - Int!
Example
{
  "accountId": "abc123",
  "clientId": "abc123",
  "cognitoUserId": "xyz789",
  "kpiSortKey": "abc123",
  "revisions": 987
}

KPI_PERIOD

Enum Value Description

CUSTOM

MONTHLY

WEEKLY

KPI_REPORT_TYPE

Enum Value Description

KPI

KPI_TARGET_TYPE

Enum Value Description

ABSOLUTE

PERCENTAGE

KpiPreference

Field Name Description
facebookAdsRollingAvg - Float
googleAdsRollingAvg - Float
googleAnalytics4RollingAvg - Float
googleMyBusinessRollingAvg - Float
googleSheetsRollingAvg - Float
instagramAdsRollingAvg - Float
linkedInAdsRollingAvg - Float
microsoftAdsRollingAvg - Float
tiktokAdsRollingAvg - Float
twitterAdsRollingAvg - Float
Example
{
  "facebookAdsRollingAvg": 123.45,
  "googleAdsRollingAvg": 123.45,
  "googleAnalytics4RollingAvg": 987.65,
  "googleMyBusinessRollingAvg": 123.45,
  "googleSheetsRollingAvg": 123.45,
  "instagramAdsRollingAvg": 987.65,
  "linkedInAdsRollingAvg": 987.65,
  "microsoftAdsRollingAvg": 123.45,
  "tiktokAdsRollingAvg": 987.65,
  "twitterAdsRollingAvg": 123.45
}

Label

Field Name Description
id - String
label - String
Example
{"id": "abc123", "label": "abc123"}

LabelFilterInput

Input Field Description
option - String!
value - [String!]
Example
{"option": "xyz789", "value": ["abc123"]}

LinkedInAdsAccounts

Field Name Description
items - [GenericAdsAccount]
Example
{"items": [GenericAdsAccount]}

LinkedInAdsInput

Input Field Description
accountId - String!
accountName - String!
email - String!
Example
{"accountId": "xyz789", "accountName": "xyz789", "email": "abc123"}

ListCommentInput

Input Field Description
accountId - String!
commentTo - String!
pagination - CommentPagination
Example
{
  "accountId": "abc123",
  "commentTo": "abc123",
  "pagination": CommentPagination
}

Location

Field Name Description
locationId - String
locationName - String
Example
{"locationId": "xyz789", "locationName": "xyz789"}

LocationGroup

Field Name Description
accountId - String
accountName - String
locations - [Location]
Example
{
  "accountId": "abc123",
  "accountName": "abc123",
  "locations": [Location]
}

LogoInput

Input Field Description
imageData - String!
key - String!
Example
{"imageData": "abc123", "key": "abc123"}

MISSING_VALUE_HANDLING_OPTIONS

Enum Value Description

FILL_WITH_PREVIOUS_VALUE

FILL_WITH_ZERO

Metrics

Field Name Description
group - String
key - String
name - String
value - String
Example
{"group": "xyz789", "key": "xyz789", "name": "abc123", "value": "abc123"}

MicrosoftAdsAccount

Field Name Description
accounts - [MicrosoftAdsCustomerAccount]
customerId - String
customerName - String
Example
{
  "accounts": [MicrosoftAdsCustomerAccount],
  "customerId": "xyz789",
  "customerName": "xyz789"
}

MicrosoftAdsAccounts

Field Name Description
items - [MicrosoftAdsAccount]
Example
{"items": [MicrosoftAdsAccount]}

MicrosoftAdsCustomerAccount

Field Name Description
accountId - String
accountName - String
Example
{"accountId": "abc123", "accountName": "abc123"}

NotifyConfig

Field Name Description
slackChannel - [String]
userId - [String]
Example
{"slackChannel": ["xyz789"], "userId": ["abc123"]}

OAUTH_TYPE

Enum Value Description

FACEBOOK

GOOGLE

GOOGLE_CLOUD_PLATFORM

GOOGLE_DRIVE

INSTAGRAM

LINKEDIN

MICROSOFT

SLACK

TIKTOK

TWITTER

OPERATION_TYPE

Enum Value Description

KPI_ARCHIVE

KPI_CREATE

KPI_DELETE

KPI_UNARCHIVE

KPI_UPDATE

OutputInclusion

Field Name Description
adjustment - String
currentAddons - Int
currentPlan - Int
error - Boolean
isIncluded - Boolean
newPlan - Int
title - String
used - Int
Example
{
  "adjustment": "xyz789",
  "currentAddons": 987,
  "currentPlan": 987,
  "error": true,
  "isIncluded": true,
  "newPlan": 987,
  "title": "xyz789",
  "used": 123
}

OutputLabel

Field Name Description
accountId - String
clientList - [String]
label - String
revisions - Int
selected - Boolean
sortKey - String
Example
{
  "accountId": "xyz789",
  "clientList": ["xyz789"],
  "label": "abc123",
  "revisions": 987,
  "selected": true,
  "sortKey": "abc123"
}

OutputLineItem

Field Name Description
amount - Float
currency - String
description - String
isDiscount - Boolean
quantity - Int
unitAmount - Float
Example
{
  "amount": 123.45,
  "currency": "xyz789",
  "description": "xyz789",
  "isDiscount": false,
  "quantity": 987,
  "unitAmount": 123.45
}

OutputPage

Field Name Description
pages - AWSJSON
Example
{"pages": AWSJSON}

OutputRenameJobTitle

Field Name Description
sortKey - String
title - String
Example
{"sortKey": "abc123", "title": "xyz789"}

PIPELINE_ALLOWED_ACTION

Enum Value Description

NONE

RECONNECT

RESYNC

RETRY

PIPELINE_ERROR_LEVEL

Enum Value Description

ACCOUNT

CLIENT

DATASET

JOB

PROJECT

TABLE

PIPELINE_ERROR_TYPE

Enum Value Description

DESTINATION

INVALID_ARGUMENT

SOURCE

PIPELINE_TYPES

Enum Value Description

FACEBOOK

GMB

GSC

PREVIEW_STAGE

Enum Value Description

DETECT_ANOMALIES

FETCH_DATA

FETCH_FADS

FETCH_GA

FETCH_GADS

FETCH_GSHEET

FETCH_MADS

PREDICTION

REPORT

PipelineErrorDetails

Field Name Description
allowedAction - PIPELINE_ALLOWED_ACTION
errorDate - String
errorLevel - PIPELINE_ERROR_LEVEL
errorMessage - String
errorType - PIPELINE_ERROR_TYPE
helpLink - String
Example
{
  "allowedAction": PIPELINE_ALLOWED_ACTION,
  "errorDate": "abc123",
  "errorLevel": PIPELINE_ERROR_LEVEL,
  "errorMessage": "abc123",
  "errorType": PIPELINE_ERROR_TYPE,
  "helpLink": "xyz789"
}

PipelineExtension

Field Name Description
accountId - String
extensionId - String
pipelineId - String
properties - [PipelineExtensionProperties]
Example
{
  "accountId": "abc123",
  "extensionId": "xyz789",
  "pipelineId": "xyz789",
  "properties": [PipelineExtensionProperties]
}

PipelineExtensionInput

Input Field Description
accountId - String!
addOnId - String!
cognitoUserId - String!
extensionId - String!
extensionProperties - ExtensionProperty
funnelTerms - AWSJSON
Example
{
  "accountId": "xyz789",
  "addOnId": "abc123",
  "cognitoUserId": "abc123",
  "extensionId": "abc123",
  "extensionProperties": ExtensionProperty,
  "funnelTerms": AWSJSON
}

PipelineExtensionProperties

Field Name Description
brandTerm - AWSJSON
include - Boolean
property - String
Example
{
  "brandTerm": AWSJSON,
  "include": false,
  "property": "xyz789"
}

PredictionDaysData

Field Name Description
percentage - Float
value - String
Example
{"percentage": 123.45, "value": "xyz789"}

PublishActionInput

Input Field Description
action - String
id - String
item - InsightsInput
itemType - ActionItemType
Example
{
  "action": "abc123",
  "id": "abc123",
  "item": InsightsInput,
  "itemType": ActionItemType
}

PublishActionResponse

Field Name Description
action - String
id - String
item - Insights
itemType - ActionItemType
Example
{
  "action": "xyz789",
  "id": "xyz789",
  "item": Insights,
  "itemType": ActionItemType
}

PublishCommentInput

Input Field Description
action - String
id - String
item - CommentInput
itemType - ActionItemType
Example
{
  "action": "xyz789",
  "id": "xyz789",
  "item": CommentInput,
  "itemType": ActionItemType
}

PublishCommentResponse

Field Name Description
action - String
id - String
item - Comment
itemType - ActionItemType
Example
{
  "action": "xyz789",
  "id": "xyz789",
  "item": Comment,
  "itemType": ActionItemType
}

PublishItemUpdateInput

Input Field Description
action - ItemAction
id - String
item - AWSJSON
itemType - ActionItemType
Example
{
  "action": ItemAction,
  "id": "xyz789",
  "item": AWSJSON,
  "itemType": ActionItemType
}

PurchaseExtensionAddOnInput

Input Field Description
accountId - String!
addOnId - String!
cognitoUserId - String!
extensionId - String
invoiceImmediately - Boolean
quantity - Int!
Example
{
  "accountId": "xyz789",
  "addOnId": "abc123",
  "cognitoUserId": "xyz789",
  "extensionId": "xyz789",
  "invoiceImmediately": true,
  "quantity": 987
}

PurchaseExtensionInput

Input Field Description
accountId - String!
addOnId - String!
cognitoUserId - String
extensionId - String!
extensionProperties - ExtensionProperty
invoiceImmediately - Boolean
quantity - Int
Example
{
  "accountId": "abc123",
  "addOnId": "xyz789",
  "cognitoUserId": "xyz789",
  "extensionId": "abc123",
  "extensionProperties": ExtensionProperty,
  "invoiceImmediately": false,
  "quantity": 987
}

PurchaseExtensionOutput

Field Name Description
creditsApplied - Float
description - String
details - [AddOnPack]
immediateCharges - AWSJSON
proratedCharge - Float
renewalDate - String
tax - Float
total - Float
Example
{
  "creditsApplied": 123.45,
  "description": "abc123",
  "details": [AddOnPack],
  "immediateCharges": AWSJSON,
  "proratedCharge": 123.45,
  "renewalDate": "abc123",
  "tax": 123.45,
  "total": 987.65
}

REPORT_STATUS

Enum Value Description

CRITICAL

ERROR

INFO

ON_TRACK

WARNING

ReSyncDataPipeLineInput

Input Field Description
accountId - String!
cognitoUserId - String!
pipelineType - PIPELINE_TYPES
sortKey - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "xyz789",
  "pipelineType": PIPELINE_TYPES,
  "sortKey": "xyz789"
}

ReTryDataAnomalyInput

Input Field Description
accountId - String!
cognitoUserId - String!
sortKey - String!
Example
{"accountId": "abc123", "cognitoUserId": "abc123", "sortKey": "xyz789"}

ReTryDataPipeLineInput

Input Field Description
accountId - String!
cognitoUserId - String!
pipelineType - PIPELINE_TYPES
sortKey - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "abc123",
  "pipelineType": PIPELINE_TYPES,
  "sortKey": "abc123"
}

RemoveOwnershipInput

Input Field Description
accountId - String
cognitoUserId - String
isPrimary - Boolean
sortKey - String
Example
{
  "accountId": "abc123",
  "cognitoUserId": "xyz789",
  "isPrimary": false,
  "sortKey": "xyz789"
}

RenameJobTitleInput

Input Field Description
accountId - String!
cognitoUserId - String!
sortKey - String!
title - String!
type - String
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "sortKey": "abc123",
  "title": "abc123",
  "type": "abc123"
}

ResendInviteInput

Input Field Description
accountId - String!
email - String!
name - String!
Example
{"accountId": "abc123", "email": "abc123", "name": "abc123"}

S3Object

Field Name Description
bucket - String!
key - String!
region - String!
Example
{"bucket": "xyz789", "key": "abc123", "region": "xyz789"}

S3ObjectInput

Input Field Description
bucket - String!
key - String!
region - String!
Example
{"bucket": "abc123", "key": "abc123", "region": "abc123"}

SERVICE

Enum Value Description

FACEBOOK_ADS

GOOGLE_ADS

GOOGLE_ANALYTICS

GOOGLE_ANALYTICS4

GOOGLE_BIG_QUERY

GOOGLE_MY_BUSINESS

GOOGLE_SEARCH_CONSOLE

GOOGLE_SHEETS

INSTAGRAM_ADS

LINKEDIN_ADS

MICROSOFT_ADS

TIKTOK_ADS

TWITTER_ADS

WEB

WEBSITE

SOURCE_TYPE

Enum Value Description

FACEBOOK

GMB

GSC

SaveFilterInput

Field Name Description
accountId - String!
cognitoUserId - String!
savedFilters - [labelInput]
Example
{
  "accountId": "abc123",
  "cognitoUserId": "xyz789",
  "savedFilters": [labelInput]
}

SaveUserPreferencesInput

Input Field Description
accountId - String!
cognitoUserId - String!
preferences - inputPreferences
Example
{
  "accountId": "abc123",
  "cognitoUserId": "xyz789",
  "preferences": inputPreferences
}

SearchInsights

Field Name Description
active - Int
items - [Insights]
nextToken - String
resolved - Int
Example
{
  "active": 987,
  "items": [Insights],
  "nextToken": "xyz789",
  "resolved": 123
}

SeasonalitiesInput

Input Field Description
mode - String
priorScale - Int
Example
{"mode": "xyz789", "priorScale": 987}

SeasonalitiesOutput

Field Name Description
mode - String
priorScale - Int
Example
{"mode": "xyz789", "priorScale": 123}

Segments

Field Name Description
key - String
name - String
value - String
Example
{"key": "abc123", "name": "xyz789", "value": "abc123"}

SlackChannelList

Field Name Description
id - String
name - String
Example
{"id": "abc123", "name": "xyz789"}

SlackMessage

Field Name Description
message - String
Example
{"message": "abc123"}

SlackMessageInput

Input Field Description
message - String
Example
{"message": "abc123"}

SpreadsheetByDriveId

Field Name Description
accountId - String
driveId - String
items - [Spreadsheets]
Example
{
  "accountId": "xyz789",
  "driveId": "xyz789",
  "items": [Spreadsheets]
}

SpreadsheetColumn

Field Name Description
column - String
currency - String
label - String
Example
{"column": "xyz789", "currency": "abc123", "label": "abc123"}

SpreadsheetColumnInput

Input Field Description
column - String
currency - String
label - String
Example
{"column": "xyz789", "currency": "abc123", "label": "abc123"}

SpreadsheetColumnOutput

Field Name Description
column - String
currency - String
label - String
Example
{"column": "xyz789", "currency": "xyz789", "label": "abc123"}

SpreadsheetConnection

Field Name Description
accountId - String
clientId - String
driveId - String
email - String
spreadsheetId - String
spreadsheetLabel - String
timezone - String
validDates - [SpreadsheetColumn]
validMetrics - [SpreadsheetColumn]
worksheetId - String
worksheetLabel - String
Example
{
  "accountId": "xyz789",
  "clientId": "abc123",
  "driveId": "xyz789",
  "email": "xyz789",
  "spreadsheetId": "abc123",
  "spreadsheetLabel": "abc123",
  "timezone": "xyz789",
  "validDates": [SpreadsheetColumn],
  "validMetrics": [SpreadsheetColumn],
  "worksheetId": "abc123",
  "worksheetLabel": "xyz789"
}

SpreadsheetConnectionInput

Field Name Description
accountId - String!
authId - String!
clientId - String!
cognitoUserId - String
driveId - String!
email - String!
spreadsheetId - String
validDates - [SpreadsheetColumnInput]
validMetrics - [SpreadsheetColumnInput]
worksheetId - String!
worksheetLabel - String!
Example
{
  "accountId": "abc123",
  "authId": "abc123",
  "clientId": "xyz789",
  "cognitoUserId": "xyz789",
  "driveId": "xyz789",
  "email": "xyz789",
  "spreadsheetId": "abc123",
  "validDates": [SpreadsheetColumnInput],
  "validMetrics": [SpreadsheetColumnInput],
  "worksheetId": "abc123",
  "worksheetLabel": "abc123"
}

Spreadsheets

Field Name Description
id - String
label - String
Example
{"id": "xyz789", "label": "xyz789"}

StatusCode

Field Name Description
statusCode - Int!
Example
{"statusCode": 987}

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Subscription

Field Name Description
onArchiveClient - Client

Arguments

accountId - ID!

onCreateClient - Client

Arguments

accountId - ID!

onDeleteClient - Client

Arguments

accountId - ID!

onGetBudgetSpreadsheetPreviewResult - BudgetPreviewResponse

Arguments

id - ID!

onUnArchiveClient - Client

Arguments

accountId - ID!

Example
{
  "onArchiveClient": Client,
  "onCreateClient": Client,
  "onDeleteClient": Client,
  "onGetBudgetSpreadsheetPreviewResult": BudgetPreviewResponse,
  "onUnArchiveClient": Client
}

SubscriptionInvoiceEstimate

Field Name Description
currency - String
description - String
inclusion - [OutputInclusion]
lineItems - [SubscriptionInvoiceEstimateItem]
total - String
Example
{
  "currency": "xyz789",
  "description": "xyz789",
  "inclusion": [OutputInclusion],
  "lineItems": [SubscriptionInvoiceEstimateItem],
  "total": "abc123"
}

SubscriptionInvoiceEstimateItem

Field Name Description
amount - String
currency - String
description - String
entityType - String
isDiscount - Boolean
quantity - Float
unitAmount - String
Example
{
  "amount": "xyz789",
  "currency": "abc123",
  "description": "xyz789",
  "entityType": "xyz789",
  "isDiscount": true,
  "quantity": 987.65,
  "unitAmount": "abc123"
}

TIME_PERIOD

Enum Value Description

DAILY

HOURLY

TYPE

Enum Value Description

GOOGLE

SLACK

TestWebhookInput

Input Field Description
accountId - String!
cognitoUserId - String!
source - WebhookSource!
sourceType - WebhookSourceType!
webhookURL - String!
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "xyz789",
  "source": WebhookSource,
  "sourceType": WebhookSourceType,
  "webhookURL": "xyz789"
}

TestWebhookOutput

Field Name Description
message - AWSJSON
status - Int
Example
{"message": AWSJSON, "status": 123}

TiktokAdsAccounts

Field Name Description
items - [GenericAdsAccount]
Example
{"items": [GenericAdsAccount]}

TiktokAdsInput

Input Field Description
accountId - String!
accountName - String!
email - String!
Example
{"accountId": "xyz789", "accountName": "xyz789", "email": "abc123"}

TimeZoneList

Field Name Description
enum - [String]
Example
{"enum": ["xyz789"]}

TimeZones

Field Name Description
timeZone - String
Example
{"timeZone": "xyz789"}

TotalBudgetStatus

Field Name Description
critical - Int
on_track - Int
warning - Int
Example
{"critical": 123, "on_track": 123, "warning": 123}

TotalKPIStatus

Field Name Description
critical - Int
on_track - Int
warning - Int
Example
{"critical": 123, "on_track": 123, "warning": 123}

TransferOwnershipInput

Input Field Description
accountId - String!
cognitoUserId - String!
isPrimary - Boolean!
password - String!
sortKey - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "xyz789",
  "isPrimary": true,
  "password": "xyz789",
  "sortKey": "abc123"
}

TwitterAccounts

Field Name Description
accountId - String
accountName - String
fundingInstruments - [FundingInstrument]
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "fundingInstruments": [FundingInstrument]
}

TwitterAdsAccounts

Field Name Description
items - [TwitterAccounts]
Example
{"items": [TwitterAccounts]}

TwitterAdsInput

Input Field Description
accountId - String!
accountName - String!
description - String
email - String
fundingInstrumentId - String!
Example
{
  "accountId": "abc123",
  "accountName": "xyz789",
  "description": "abc123",
  "email": "xyz789",
  "fundingInstrumentId": "xyz789"
}

UpdateBudgetInput

Field Name Description
accountId - String!
authEmail - String
budgetSortKey - String
clientId - String!
cognitoUserId - String!
configuration - BudgetConfigurationInput!
executionArn - String
isTitleAutoGenerated - Boolean!
notifyConfig - notifyConfigInput
notifySchedEmail - String
notifySchedSlack - String
notifySchedWebhook - String
revisions - Int!
schedEmail - String
schedSlack - String
schedWebhook - String
service - SERVICE!
title - String!
webhookEvents - [WEBHOOK_ENUM]
webhookURL - String
Example
{
  "accountId": "xyz789",
  "authEmail": "abc123",
  "budgetSortKey": "abc123",
  "clientId": "xyz789",
  "cognitoUserId": "abc123",
  "configuration": BudgetConfigurationInput,
  "executionArn": "abc123",
  "isTitleAutoGenerated": false,
  "notifyConfig": notifyConfigInput,
  "notifySchedEmail": "xyz789",
  "notifySchedSlack": "abc123",
  "notifySchedWebhook": "xyz789",
  "revisions": 123,
  "schedEmail": "xyz789",
  "schedSlack": "xyz789",
  "schedWebhook": "xyz789",
  "service": SERVICE,
  "title": "xyz789",
  "webhookEvents": [WEBHOOK_ENUM],
  "webhookURL": "abc123"
}

UpdateBudgetPlannerInput

Field Name Description
accountId - String!
cognitoUserId - String
plannerData - [InputPlannerMapDetails]
sortKey - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "abc123",
  "plannerData": [InputPlannerMapDetails],
  "sortKey": "abc123"
}

UpdateClientInput

Field Name Description
accountId - String!
cognitoUserId - String!
domain - String!
isLoadingSample - Boolean
labels - [labelInput]
name - String!
revisions - Int!
sortKey - String!
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "abc123",
  "domain": "xyz789",
  "isLoadingSample": true,
  "labels": [labelInput],
  "name": "abc123",
  "revisions": 987,
  "sortKey": "abc123"
}

UpdateCommentInput

Field Name Description
accountId - String!
cognitoUserId - String
commentMethod - CommentMethod!
commentTimestamp - String
commentTo - String!
dateCreated - String
dateUpdated - String
isDeleted - Boolean
mentionedUsers - [String]
message - String!
revisions - Int!
sortKey - String!
type - CommentType!
userId - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "xyz789",
  "commentMethod": CommentMethod,
  "commentTimestamp": "xyz789",
  "commentTo": "abc123",
  "dateCreated": "xyz789",
  "dateUpdated": "xyz789",
  "isDeleted": true,
  "mentionedUsers": ["abc123"],
  "message": "xyz789",
  "revisions": 123,
  "sortKey": "xyz789",
  "type": CommentType,
  "userId": "abc123"
}

UpdateKPIInput

Field Name Description
accountId - String
authEmail - String
clientId - String
cognitoUserId - String
configuration - KPIConfigurationInput
executionArn - String
isTitleAutoGenerated - Boolean
kpiSortKey - String
notifyConfig - notifyConfigInput
notifySchedEmail - String
notifySchedSlack - String
notifySchedWebhook - String
revisions - Int
schedEmail - String
schedSlack - String
schedWebhook - String
service - SERVICE
title - String
webhookEvents - [WEBHOOK_ENUM]
webhookURL - String
Example
{
  "accountId": "xyz789",
  "authEmail": "abc123",
  "clientId": "abc123",
  "cognitoUserId": "abc123",
  "configuration": KPIConfigurationInput,
  "executionArn": "abc123",
  "isTitleAutoGenerated": false,
  "kpiSortKey": "abc123",
  "notifyConfig": notifyConfigInput,
  "notifySchedEmail": "abc123",
  "notifySchedSlack": "abc123",
  "notifySchedWebhook": "xyz789",
  "revisions": 987,
  "schedEmail": "abc123",
  "schedSlack": "abc123",
  "schedWebhook": "xyz789",
  "service": SERVICE,
  "title": "abc123",
  "webhookEvents": [WEBHOOK_ENUM],
  "webhookURL": "abc123"
}

UpdateLabelInput

Field Name Description
accountId - String!
clientList - [String]
cognitoUserId - String!
label - String!
revisions - Int!
sortKey - String!
Example
{
  "accountId": "xyz789",
  "clientList": ["abc123"],
  "cognitoUserId": "xyz789",
  "label": "xyz789",
  "revisions": 987,
  "sortKey": "abc123"
}

UpvotyToken

Field Name Description
token - String
Example
{"token": "xyz789"}

User

Field Name Description
acceptedInvite - Boolean
accountId - String!
dateCreated - String
dateLastLogin - String
dateUpdated - String
email - String
firstName - String
hash - String
isDeleted - Boolean
isPrimary - Boolean
lastName - String
logo - String
password - String
preferences - UserPreferencesOutput
savedFilters - [Label]
sortKey - String
status - String
userId - String!
Example
{
  "acceptedInvite": false,
  "accountId": "xyz789",
  "dateCreated": "abc123",
  "dateLastLogin": "xyz789",
  "dateUpdated": "xyz789",
  "email": "xyz789",
  "firstName": "abc123",
  "hash": "xyz789",
  "isDeleted": false,
  "isPrimary": true,
  "lastName": "xyz789",
  "logo": "xyz789",
  "password": "xyz789",
  "preferences": UserPreferencesOutput,
  "savedFilters": [Label],
  "sortKey": "abc123",
  "status": "xyz789",
  "userId": "abc123"
}

UserConnection

Field Name Description
items - [User]
nextToken - String
scannedCount - Int
Example
{
  "items": [User],
  "nextToken": "xyz789",
  "scannedCount": 987
}

UserCreateInput

Input Field Description
accountId - String!
cognitoUserId - String
email - String!
firstName - String!
lastName - String
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "abc123",
  "email": "xyz789",
  "firstName": "xyz789",
  "lastName": "abc123"
}

UserInput

Input Field Description
accountId - String!
cognitoUserId - String
firstName - String!
lastName - String
sortKey - String
Example
{
  "accountId": "abc123",
  "cognitoUserId": "xyz789",
  "firstName": "xyz789",
  "lastName": "xyz789",
  "sortKey": "abc123"
}

UserInviteInput

Input Field Description
accountId - String!
cognitoUserId - String
email - String!
newPassword - String!
sortKey - String!
tempPassword - String!
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "abc123",
  "email": "abc123",
  "newPassword": "xyz789",
  "sortKey": "abc123",
  "tempPassword": "abc123"
}

UserInviteOutput

Field Name Description
acceptedInvite - Boolean
accountId - String!
dateCreated - String
dateUpdated - String
email - String
firstName - String
isDeleted - Boolean
isPrimary - Boolean
lastName - String
logo - String
newPassword - String
sortKey - String
status - String
tempPassword - String
userId - String!
Example
{
  "acceptedInvite": true,
  "accountId": "abc123",
  "dateCreated": "xyz789",
  "dateUpdated": "abc123",
  "email": "xyz789",
  "firstName": "abc123",
  "isDeleted": true,
  "isPrimary": false,
  "lastName": "abc123",
  "logo": "abc123",
  "newPassword": "abc123",
  "sortKey": "abc123",
  "status": "xyz789",
  "tempPassword": "xyz789",
  "userId": "abc123"
}

UserPasswordChangeInput

Input Field Description
accountId - String!
cognitoUserId - String
previousPassword - String!
proposedPassword - String!
sortKey - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "abc123",
  "previousPassword": "abc123",
  "proposedPassword": "abc123",
  "sortKey": "xyz789"
}

UserPasswordChangeOutput

Field Name Description
accountId - String
Example
{"accountId": "xyz789"}

UserPreferences

Field Name Description
accountId - String
preferences - UserPreferencesOutput
sortKey - String
Example
{
  "accountId": "abc123",
  "preferences": UserPreferencesOutput,
  "sortKey": "xyz789"
}

UserPreferencesOutput

Field Name Description
commentNotifications - commentNotificationsPreference
emailNotifications - EmailNotificationPreference
Example
{
  "commentNotifications": commentNotificationsPreference,
  "emailNotifications": EmailNotificationPreference
}

UserResendInviteInput

Input Field Description
accountId - String!
cognitoUserId - String!
email - String!
name - String!
userId - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "abc123",
  "email": "abc123",
  "name": "xyz789",
  "userId": "abc123"
}

UserResendInviteResponse

Field Name Description
accountId - String
email - String
name - String
userId - String
Example
{"accountId": "xyz789", "email": "abc123", "name": "abc123", "userId": "abc123"}

UserUploadInput

Input Field Description
accountId - String!
cognitoUserId - String
logo - LogoInput!
userId - String!
Example
{
  "accountId": "abc123",
  "cognitoUserId": "abc123",
  "logo": LogoInput,
  "userId": "xyz789"
}

UserUploadResponse

Field Name Description
id - String
url - String
Example
{"id": "abc123", "url": "abc123"}

VISIBILITY

Enum Value Description

PRIVATE

PUBLIC

WEBHOOK_ENUM

Enum Value Description

ANY

CRITICAL

ON_TRACK

WARNING

WatchList

Field Name Description
accountId - String
items - [String]
sortKey - String
Example
{"accountId": "xyz789", "items": ["abc123"], "sortKey": "abc123"}

WatchListInput

Field Name Description
accountId - String!
cognitoUserId - String
sortKey - String!
userIds - [String]
Example
{
  "accountId": "xyz789",
  "cognitoUserId": "abc123",
  "sortKey": "abc123",
  "userIds": ["xyz789"]
}

WebhookSource

Enum Value Description

ANOMALY

AUTOMATION

BUDGET

KPI

PIPELINE

WebhookSourceType

Enum Value Description

FACEBOOK

GA

GADS

GMB

GOOGLE_ANALYTICS4

GSC

INSTAGRAM

LINKEDIN

MICROSOFT

SPREADSHEET

TIKTOK

TWITTER

Worksheets

Field Name Description
id - String
label - String
Example
{"id": "abc123", "label": "xyz789"}

WorksheetsBySpreadsheetId

Field Name Description
accountId - String
items - [Worksheets]
spreadsheetId - String
Example
{
  "accountId": "xyz789",
  "items": [Worksheets],
  "spreadsheetId": "abc123"
}

advancedSettings

Field Name Description
exclude - String
followExternalLinks - Boolean
respectRobots - Boolean
textPage - String
Example
{
  "exclude": "xyz789",
  "followExternalLinks": true,
  "respectRobots": true,
  "textPage": "xyz789"
}

advancedSettingsInput

Input Field Description
exclude - String
followExternalLinks - Boolean
respectRobots - Boolean
textPage - String
Example
{
  "exclude": "xyz789",
  "followExternalLinks": false,
  "respectRobots": true,
  "textPage": "xyz789"
}

analysisQueryOutput

Field Name Description
queryResult - AWSJSON
Example
{"queryResult": AWSJSON}

cardDetails

Field Name Description
cardType - String
maskedNumber - String
Example
{"cardType": "xyz789", "maskedNumber": "xyz789"}

commentNotificationsPreference

Field Name Description
createdJob - Boolean
mention - Boolean
watchList - Boolean
Example
{"createdJob": false, "mention": false, "watchList": false}

googleAnalytics4

Field Name Description
accountId - String
accountName - String
currency - String
email - String
hasActiveJob - Boolean
propertyId - String
propertyName - String
timezone - String
Example
{
  "accountId": "abc123",
  "accountName": "xyz789",
  "currency": "xyz789",
  "email": "abc123",
  "hasActiveJob": true,
  "propertyId": "abc123",
  "propertyName": "abc123",
  "timezone": "xyz789"
}

graphDataReport

Field Name Description
Example
{}

inputAcknowledgeInsight

Input Field Description
accountId - String!
acknowledgeMethod - String!
clientId - String!
cognitoUserId - String
email - String!
feature - String!
insightId - String!
isLoadingSample - Boolean
Example
{
  "accountId": "abc123",
  "acknowledgeMethod": "xyz789",
  "clientId": "abc123",
  "cognitoUserId": "abc123",
  "email": "abc123",
  "feature": "xyz789",
  "insightId": "xyz789",
  "isLoadingSample": false
}

inputAddInsightExternalId

Input Field Description
accountId - String!
clientId - String!
cognitoUserId - String
externalId - String!
insightId - String!
isLoadingSample - Boolean
jobType - INSIGHTS_JOBTYPE!
Example
{
  "accountId": "xyz789",
  "clientId": "abc123",
  "cognitoUserId": "xyz789",
  "externalId": "xyz789",
  "insightId": "abc123",
  "isLoadingSample": true,
  "jobType": INSIGHTS_JOBTYPE
}

inputAutomationConnection

Input Field Description
accountId - String!
appEnv - String
authId - String!
clientId - String!
cognitoUserId - String
googleMyBusiness - inputGoogleMyBusiness
Example
{
  "accountId": "abc123",
  "appEnv": "xyz789",
  "authId": "xyz789",
  "clientId": "abc123",
  "cognitoUserId": "xyz789",
  "googleMyBusiness": inputGoogleMyBusiness
}

inputGoogleMyBusiness

Input Field Description
accountId - String!
accountName - String!
email - String!
locationId - String!
locationName - String
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "email": "xyz789",
  "locationId": "xyz789",
  "locationName": "abc123"
}

inputPreferences

Input Field Description
commentNotifications - InputCommentNotificationPreference
emailNotifications - summaryReportInput
Example
{
  "commentNotifications": InputCommentNotificationPreference,
  "emailNotifications": summaryReportInput
}

inputResolveUnresolveInsight

Input Field Description
accountId - String!
clientId - String!
cognitoUserId - String
email - String!
feature - String!
insightId - String!
isLoadingSample - Boolean
isResolved - Boolean!
resolvedMethod - String!
Example
{
  "accountId": "abc123",
  "clientId": "abc123",
  "cognitoUserId": "xyz789",
  "email": "abc123",
  "feature": "abc123",
  "insightId": "xyz789",
  "isLoadingSample": false,
  "isResolved": false,
  "resolvedMethod": "abc123"
}

inputZapierWebhookSubscribe

Input Field Description
accountId - String!
clientId - String
cognitoUserId - String
event - String!
item - String!
itemId - String
type - String!
url - String!
Example
{
  "accountId": "xyz789",
  "clientId": "xyz789",
  "cognitoUserId": "xyz789",
  "event": "xyz789",
  "item": "abc123",
  "itemId": "xyz789",
  "type": "abc123",
  "url": "abc123"
}

inputZapierWebhookUnSubscribe

Input Field Description
accountId - String!
clientId - String
cognitoUserId - String
event - String!
item - String!
itemId - String
type - String!
url - String!
Example
{
  "accountId": "xyz789",
  "clientId": "abc123",
  "cognitoUserId": "xyz789",
  "event": "abc123",
  "item": "abc123",
  "itemId": "xyz789",
  "type": "abc123",
  "url": "xyz789"
}

insightActionOutput

Field Name Description
id - String!
Example
{"id": "xyz789"}

insightsConfiguration

Field Name Description
advancedSettings - advancedSettings
comparisonWindow - Int
country - String
device - String
dimension - String
filters - Boolean
firstOccurrence - Boolean
goals - Boolean
isTitleAutoGenerated - Boolean
labelName - String
lastReportDate - String
metric - [String]
movement - String
searchType - String
status - [Int]
targetDirection - String
targetFrequency - String
targetLongTerm - Boolean
targetMaxAnom - Float
targetMedian - Float
targetMetricId - String
targetMetricName - String
targetPeriod - KPI_PERIOD
targetSegmentId - String
targetSegmentName - String
targetSensitivity - Float
targetThreshold - String
targetTimePeriod - String
trigger - [Int]
value - String
viewSettings - Boolean
Example
{
  "advancedSettings": advancedSettings,
  "comparisonWindow": 987,
  "country": "xyz789",
  "device": "xyz789",
  "dimension": "xyz789",
  "filters": true,
  "firstOccurrence": true,
  "goals": true,
  "isTitleAutoGenerated": false,
  "labelName": "abc123",
  "lastReportDate": "abc123",
  "metric": ["xyz789"],
  "movement": "abc123",
  "searchType": "xyz789",
  "status": [123],
  "targetDirection": "xyz789",
  "targetFrequency": "abc123",
  "targetLongTerm": true,
  "targetMaxAnom": 987.65,
  "targetMedian": 987.65,
  "targetMetricId": "abc123",
  "targetMetricName": "abc123",
  "targetPeriod": KPI_PERIOD,
  "targetSegmentId": "abc123",
  "targetSegmentName": "xyz789",
  "targetSensitivity": 123.45,
  "targetThreshold": "abc123",
  "targetTimePeriod": "abc123",
  "trigger": [987],
  "value": "abc123",
  "viewSettings": false
}

insightsConfigurationInput

Field Name Description
advancedSettings - advancedSettingsInput
allCampaigns - Boolean
campaignIds - [String]
comparisonWindow - Int
country - String
device - String
dimension - String
duration - Int
filters - Boolean
firstOccurrence - Boolean
goals - Boolean
graphType - GRAPH_TYPE
isTitleAutoGenerated - Boolean
labelName - String
lastReportDate - String
metric - [String]
movement - String
period - BUDGET_PERIOD
rollOverAmount - Float
rollOverStatus - Boolean
searchType - String
startDate - String
status - [Int]
target - Float
targetDirection - String
targetFrequency - String
targetLongTerm - Boolean
targetMaxAnom - Float
targetMedian - Float
targetMetricId - String
targetMetricName - String
targetSegmentId - String
targetSegmentName - String
targetSensitivity - Float
targetThreshold - String
targetTimePeriod - String
threshold - Int
title - String
trigger - [Int]
value - String
viewSettings - Boolean
Example
{
  "advancedSettings": advancedSettingsInput,
  "allCampaigns": false,
  "campaignIds": ["abc123"],
  "comparisonWindow": 123,
  "country": "abc123",
  "device": "abc123",
  "dimension": "xyz789",
  "duration": 987,
  "filters": false,
  "firstOccurrence": true,
  "goals": true,
  "graphType": GRAPH_TYPE,
  "isTitleAutoGenerated": true,
  "labelName": "abc123",
  "lastReportDate": "xyz789",
  "metric": ["xyz789"],
  "movement": "xyz789",
  "period": BUDGET_PERIOD,
  "rollOverAmount": 123.45,
  "rollOverStatus": true,
  "searchType": "abc123",
  "startDate": "abc123",
  "status": [123],
  "target": 987.65,
  "targetDirection": "abc123",
  "targetFrequency": "xyz789",
  "targetLongTerm": false,
  "targetMaxAnom": 987.65,
  "targetMedian": 123.45,
  "targetMetricId": "xyz789",
  "targetMetricName": "xyz789",
  "targetSegmentId": "abc123",
  "targetSegmentName": "abc123",
  "targetSensitivity": 987.65,
  "targetThreshold": "abc123",
  "targetTimePeriod": "xyz789",
  "threshold": 987,
  "title": "abc123",
  "trigger": [123],
  "value": "xyz789",
  "viewSettings": false
}

labelInput

Input Field Description
id - String
label - String
Example
{"id": "xyz789", "label": "xyz789"}

linkedInAds

Field Name Description
accountId - String
accountName - String
currency - String
email - String
hasActiveJob - Boolean
jobIds - [String]
timezone - String
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "currency": "abc123",
  "email": "abc123",
  "hasActiveJob": false,
  "jobIds": ["xyz789"],
  "timezone": "xyz789"
}

listGA4Accounts

Field Name Description
items - [GenericAdsAccount]
Example
{"items": [GenericAdsAccount]}

microsoftAds

Field Name Description
accountId - String
accountName - String
currency - String
customerId - String
customerName - String
email - String
hasActiveJob - Boolean
jobIds - [String]
labels - microsoftAdsLabel
timezone - String
Example
{
  "accountId": "abc123",
  "accountName": "xyz789",
  "currency": "xyz789",
  "customerId": "abc123",
  "customerName": "abc123",
  "email": "xyz789",
  "hasActiveJob": true,
  "jobIds": ["xyz789"],
  "labels": microsoftAdsLabel,
  "timezone": "xyz789"
}

microsoftAdsInput

Input Field Description
accountId - String!
accountName - String!
customerId - String!
customerName - String!
email - String
labels - microsoftAdsLabelInput
Example
{
  "accountId": "xyz789",
  "accountName": "abc123",
  "customerId": "xyz789",
  "customerName": "abc123",
  "email": "abc123",
  "labels": microsoftAdsLabelInput
}

microsoftAdsLabel

Field Name Description
colorCode - String
description - String
id - Int
name - String
Example
{"colorCode": "abc123", "description": "abc123", "id": 123, "name": "xyz789"}

microsoftAdsLabelInput

Input Field Description
colorCode - String
description - String
id - Int
name - String
Example
{"colorCode": "xyz789", "description": "abc123", "id": 123, "name": "xyz789"}

notifyConfigInput

Field Name Description
slackChannel - [String]
userId - [String]
Example
{"slackChannel": ["abc123"], "userId": ["abc123"]}

outputAddInsightExternalId

Field Name Description
sortKey - String
title - String
Example
{"sortKey": "abc123", "title": "abc123"}

outputZapierWebhookSubscribe

Field Name Description
accountId - String
successful - Boolean
Example
{"accountId": "xyz789", "successful": false}

outputZapierWebhookUnSubscribe

Field Name Description
accountId - String
isDeleted - Boolean
Example
{"accountId": "abc123", "isDeleted": true}

plannerMapDetails

Field Name Description
endDate - String
spend - String
startDate - String
target - String
Example
{
  "endDate": "abc123",
  "spend": "abc123",
  "startDate": "xyz789",
  "target": "abc123"
}

publishItemUpdateOutput

Field Name Description
action - ItemAction
id - String
item - AWSJSON
itemType - ActionItemType
Example
{
  "action": ItemAction,
  "id": "xyz789",
  "item": AWSJSON,
  "itemType": ActionItemType
}

publishUserAuthenticationInput

Input Field Description
accountId - String
cognitoUserId - String
id - String
isAuthorise - Boolean
Example
{
  "accountId": "abc123",
  "cognitoUserId": "xyz789",
  "id": "abc123",
  "isAuthorise": false
}

selectedPropertyExtensionInput

Input Field Description
brandTerm - AWSJSON
include - Boolean
property - String
Example
{
  "brandTerm": AWSJSON,
  "include": true,
  "property": "xyz789"
}

summaryReportInput

Input Field Description
monthlyReport - Boolean
weeklyReport - Boolean
Example
{"monthlyReport": true, "weeklyReport": true}

tiktokAds

Field Name Description
accountId - String
accountName - String
currency - String
email - String
hasActiveJob - Boolean
jobIds - [String]
timezone - String
Example
{
  "accountId": "xyz789",
  "accountName": "xyz789",
  "currency": "abc123",
  "email": "xyz789",
  "hasActiveJob": true,
  "jobIds": ["xyz789"],
  "timezone": "abc123"
}

twitterAds

Field Name Description
accountId - String
accountName - String
currency - String
description - String
email - String
fundingInstrumentId - String
hasActiveJob - Boolean
jobIds - [String]
timezone - String
Example
{
  "accountId": "abc123",
  "accountName": "xyz789",
  "currency": "xyz789",
  "description": "abc123",
  "email": "xyz789",
  "fundingInstrumentId": "abc123",
  "hasActiveJob": false,
  "jobIds": ["xyz789"],
  "timezone": "abc123"
}

updateFirstPromoterResponse

Field Name Description
success - Boolean
Example
{"success": false}

updateLabelClientListInput

Field Name Description
accountId - String!
clientList - [String]
cognitoUserId - String!
label - String
labelId - String
revisions - Int!
Example
{
  "accountId": "xyz789",
  "clientList": ["abc123"],
  "cognitoUserId": "xyz789",
  "label": "xyz789",
  "labelId": "xyz789",
  "revisions": 123
}

userAuthenticationOutput

Field Name Description
accountId - String
id - String
isAuthorise - Boolean
Example
{"accountId": "xyz789", "id": "xyz789", "isAuthorise": false}