Skip to content

HubSpot: Campaigns schemas

37 HubSpot schemas with complete fields and constraints.

← Campaigns operations · All schemas

Add budget item — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
amountnumberRequired within parentThe monetary value of the budget item, represented as a number.
descriptionstringOptionalA string providing additional details about the budget item.
namestringRequired within parentThe name of the budget item. It is a string that identifies the budget item.
orderintegerRequired within parentAn integer indicating the order or sequence of the budget item.
Format: int32

Add budget item — response body

FieldTypePresenceDescription and constraints
$objectRoot
amountJSONRequired within parent
amount (anyOf 1)numberAlternativeThe financial amount allocated to this budget item, represented as a number.
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
createdAtJSONRequired within parent
createdAt (anyOf 1)integerAlternativeA Unix timestamp in milliseconds indicating when this budget item was created.
Format: int64
createdAt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
descriptionstringOptionalA description of the budget item, represented as a string.
idstringRequired within parentThe unique identifier for this budget item, represented as a string.
namestringRequired within parentThe name of the budget item, represented as a string.
orderJSONRequired within parent
order (anyOf 1)integerAlternativeAn integer representing the order or sequence of this budget item within the campaign.
Format: int32
order (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
updatedAtJSONRequired within parent
updatedAt (anyOf 1)integerAlternativeA Unix timestamp in milliseconds indicating when this budget item was last updated.
Format: int64
updatedAt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Batch archive campaigns — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
inputsarrayRequired within parentAn array of PublicCampaignDeleteInput objects, each representing a campaign to be deleted. Each object must include the campaign's unique identifier.
inputs[]ModelEach itemExpand Batch archive campaigns — request body — body inputs item

Referenced models: Batch archive campaigns — request body — body inputs item

Batch archive campaigns — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentThe unique identifier of the campaign to be deleted. It is a string.

Batch create campaigns — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
inputsarrayRequired within parentAn array of PublicCampaignInput objects, each representing the properties of a campaign to be created. This is a required field.
inputs[]ModelEach itemExpand Create a campaign — request body — body

Referenced models: Create a campaign — request body — body

Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item

FieldTypePresenceDescription and constraints
$objectRootYe olde error
categorystringRequired within parentA string categorizing the type of error.
contextobjectRequired within parentAn object containing additional context about the error, with keys as context names and values as arrays of strings.
Additional keys: see wildcard field
context.*arrayAdditional keys
context.*[]stringEach item
errorsarrayRequired within parentAn array of ErrorDetail objects providing further information about the error.
errors[]ModelEach itemExpand Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item errors item
idstringOptionalA string representing a unique identifier for the error.
linksobjectRequired within parentAn object mapping link names to associated URIs that contain documentation or remediation steps related to the error.
Additional keys: see wildcard field
links.*stringAdditional keys
messagestringRequired within parentA string containing a human-readable message describing the error.
statusstringRequired within parentA string indicating the status of the error.
subCategoryobjectOptionalAn object providing more specific categorization of the error.

Referenced models: Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item errors item

Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item errors item

FieldTypePresenceDescription and constraints
$objectRootRepresents detailed information about an error that occurred in the API. This component is used to provide additional context and specifics about errors, typically as part of an error response.
codestringOptionalThe status code associated with the error detail. This is a string.
contextobjectOptionalContext about the error condition, provided as an object where each key is a context name and the value is an array of strings providing additional information.
Additional keys: see wildcard field
context.*arrayAdditional keys
context.*[]stringEach item
instringOptionalThe name of the field or parameter in which the error was found. This is a string.
messagestringRequired within parentA human readable message describing the error along with remediation steps where appropriate. This is a string.
subCategorystringOptionalA specific category that contains more specific detail about the error. This is a string.

Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Campaign

FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
linksobjectOptionalA map of link names to associated URIs that provide additional information related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of public campaign objects that represent the results of the batch operation.
results[]ModelEach itemExpand Create a campaign — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Create a campaign — response body

Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Campaign With Errors

FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of standard error objects detailing any errors that occurred during the batch operation.
errors[]ModelEach itemExpand Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item
linksobjectOptionalA map of link names to associated URIs, providing additional information or actions related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe number of errors encountered during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of public campaign objects representing the results of the batch operation.
results[]ModelEach itemExpand Create a campaign — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item, Create a campaign — response body

Batch retrieve campaigns — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
inputsarrayRequired within parentAn array of PublicCampaignReadInput objects, each containing the ID of a campaign to be read. This property is required.
inputs[]ModelEach itemExpand Batch retrieve campaigns — request body — body inputs item

Referenced models: Batch retrieve campaigns — request body — body inputs item

Batch retrieve campaigns — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentThe unique identifier for the campaign. It is a string and is required to retrieve the campaign details.

Batch retrieve campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Campaign With Assets

FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
linksobjectOptionalA map of link names to associated URIs, providing additional resources or documentation related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of PublicCampaignWithAssets objects, representing the campaigns involved in the batch operation.
results[]ModelEach itemExpand Retrieve a campaign — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Retrieve a campaign — response body

Batch retrieve campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Campaign With Assets With Errors

FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of errors that occurred during the batch operation, each described by a standard error object.
errors[]ModelEach itemExpand Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item
linksobjectOptionalA map of link names to associated URIs that provide additional information about the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe number of errors that occurred during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of campaigns with their associated assets that were processed in the batch operation.
results[]ModelEach itemExpand Retrieve a campaign — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Batch create campaigns — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item, Retrieve a campaign — response body

Batch update campaigns — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
inputsarrayRequired within parentAn array of PublicCampaignBatchUpdateItem objects, each containing the details required to update a specific campaign.
inputs[]ModelEach itemExpand Batch update campaigns — request body — body inputs item

Referenced models: Batch update campaigns — request body — body inputs item

Batch update campaigns — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentThe unique identifier for the campaign to be updated. It is a string.
propertiesobjectRequired within parentAn object containing key-value pairs of the campaign properties to be updated. Each key is a property name, and each value is the new value for that property, represented as a string.
Additional keys: see wildcard field
properties.*stringAdditional keys

Clone a campaign — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
assetsToCloneobjectRequired within parentA map of asset types to be cloned, where each key is an asset type and the value is an array of asset identifiers. It is an object.
Additional keys: see wildcard field
assetsToClone.*arrayAdditional keys
assetsToClone.*[]stringEach item
audiencestringOptionalThe target audience for the cloned campaign. It is a string.
currencyCodestringOptionalThe currency code for the cloned campaign's budget. It is a string. This value is optional.
endDatestringOptionalThe end date for the cloned campaign. It is a string in ISO 8601 format (YYYY-MM-DD). If omitted, this will match the start date of the source campaign.
namestringRequired within parentThe name for the new cloned campaign. It is a string. The name needs to be unique compared to other campaigns in the portal.
notesstringOptionalAdditional notes or comments about the cloned campaign. It is a string. This value is optional.
shouldCloneDraftNodesbooleanRequired within parentA boolean indicating whether draft nodes should be cloned. By default this is true.
shouldCloneEdgesbooleanRequired within parentA boolean indicating whether edges should be cloned. By default this is true.
shouldCloneStickyNotesbooleanRequired within parentA boolean indicating whether sticky notes should be cloned. By default this is true.
shouldCloneTasksbooleanRequired within parentA boolean indicating whether tasks should be cloned. By default this is true.
shouldCloneTrackingUrlsbooleanRequired within parentA boolean indicating whether tracking URLs should be cloned. By default this is true.
sourceCampaignGuidstringRequired within parentThe unique identifier of the campaign to be cloned. It is a string.
startDatestringOptionalThe start date for the cloned campaign. It is a string in ISO 8601 format (YYYY-MM-DD). If omitted, this will match the start date of the source campaign.

Clone a campaign — response body

FieldTypePresenceDescription and constraints
$objectRoot
campaignGuidstringRequired within parentThe unique identifier for the newly cloned campaign.
statusstringRequired within parentThe status of the cloning operation. Valid values include 'PENDING', 'COMPLETE', 'FAILED', and 'PARTIAL_FAILURE'.
Known values: COMPLETE, FAILED, PARTIAL_FAILURE, PENDING

Create a campaign — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
propertiesobjectRequired within parentAn object containing key-value pairs where each key is a property name and each value is a string representing the property's value. This object holds the various attributes of the campaign.
Additional keys: see wildcard field
properties.*stringAdditional keys

Create a campaign — response body

FieldTypePresenceDescription and constraints
$objectRoot
businessUnitsarrayRequired within parentAn array of business units associated with the campaign, where each business unit is represented by its unique identifier.
businessUnits[]ModelEach itemExpand Create a campaign — response body — business Units item
createdAtstringRequired within parentThe date and time when the campaign was created, in ISO 8601 format.
Format: date-time
idstringRequired within parentThe unique identifier for the campaign.
propertiesobjectRequired within parentA map of custom property names to their values, representing specific attributes of the campaign.
Additional keys: see wildcard field
properties.*stringAdditional keys
updatedAtstringRequired within parentThe date and time when the campaign was last updated, in ISO 8601 format.
Format: date-time

Referenced models: Create a campaign — response body — business Units item

Create a campaign — response body — business Units item

FieldTypePresenceDescription and constraints
$objectRoot
idJSONRequired within parent
id (anyOf 1)integerAlternativeThe unique identifier for the business unit, represented as a 64-bit integer.
Format: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Create spend item — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
amountnumberRequired within parentThe monetary value of the spend item, represented as a number.
descriptionstringOptionalA string providing additional details or context about the spend item.
namestringRequired within parentThe name of the spend item, represented as a string.
orderintegerRequired within parentAn integer indicating the order or sequence of the spend item within a list.
Format: int32

Create spend item — response body

FieldTypePresenceDescription and constraints
$objectRoot
amountJSONRequired within parent
amount (anyOf 1)numberAlternativeThe financial amount associated with the spend item, represented as a number.
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
createdAtJSONRequired within parent
createdAt (anyOf 1)integerAlternativeA Unix timestamp in milliseconds indicating when the spend item was created.
Format: int64
createdAt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
descriptionstringOptionalA string providing additional details about the spend item.
idstringRequired within parentThe unique identifier for the spend item, represented as a string.
namestringRequired within parentThe name of the spend item, represented as a string.
orderJSONRequired within parent
order (anyOf 1)integerAlternativeAn integer indicating the order or sequence of the spend item.
Format: int32
order (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
updatedAtJSONRequired within parent
updatedAt (anyOf 1)integerAlternativeA Unix timestamp in milliseconds indicating when the spend item was last updated.
Format: int64
updatedAt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Retrieve a campaign — response body

FieldTypePresenceDescription and constraints
$objectRoot
assetsobjectRequired within parentA map of asset types to their respective collections of campaign assets, represented by CollectionResponsePublicCampaignAsset objects.
Additional keys: see wildcard field
assets.*ModelAdditional keysExpand Retrieve a campaign — response body — assets value
businessUnitsarrayRequired within parentAn array of business units associated with the campaign, each represented by a PublicBusinessUnit object.
businessUnits[]ModelEach itemExpand Create a campaign — response body — business Units item
createdAtstringRequired within parentThe date and time when the campaign was created, in ISO 8601 format.
Format: date-time
idstringRequired within parentThe unique identifier for the campaign, represented as a string.
propertiesobjectRequired within parentA map of custom property names to their values, where each value is a string.
Additional keys: see wildcard field
properties.*stringAdditional keys
updatedAtstringRequired within parentThe date and time when the campaign was last updated, in ISO 8601 format.
Format: date-time

Referenced models: Create a campaign — response body — business Units item, Retrieve a campaign — response body — assets value

Retrieve a campaign — response body — assets value

FieldTypePresenceDescription and constraints
$objectRoot
pagingModelOptionalExpand Retrieve campaigns — response body — paging
resultsarrayRequired within parentAn array of PublicCampaignAsset objects, each representing an individual campaign asset.
results[]ModelEach itemExpand Retrieve assets — response body — results item

Referenced models: Retrieve campaigns — response body — paging, Retrieve assets — response body — results item

Retrieve asset types — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentAn array of strings representing the collection of results returned by the API. Each item in the array is a string.
results[]stringEach item

Retrieve assets — response body

FieldTypePresenceDescription and constraints
$objectRoot
pagingModelOptionalExpand Retrieve assets — response body — paging
resultsarrayRequired within parentAn array of PublicCampaignAsset objects, each representing a campaign asset.
results[]ModelEach itemExpand Retrieve assets — response body — results item

Referenced models: Retrieve assets — response body — paging, Retrieve assets — response body — results item

Retrieve assets — response body — paging

FieldTypePresenceDescription and constraints
$objectRootPaging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page.
nextModelOptionalExpand Retrieve assets — response body — paging next

Referenced models: Retrieve assets — response body — paging next

Retrieve assets — response body — paging next

FieldTypePresenceDescription and constraints
$objectRootSpecifies the paging information needed to retrieve the next set of results in a paginated API response
afterstringRequired within parentA string token that serves as the paging cursor, indicating the position after the last successfully read resource.
linkstringOptionalA string URL that provides a link to the next page of results.

Retrieve assets — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentThe unique identifier for the campaign asset, represented as a string.
metricsobjectOptionalA collection of performance metrics for the campaign asset, represented as a map where each key is a metric name and each value is a number.
Additional keys: see wildcard field
metrics.*JSONAdditional keys
metrics.* (anyOf 1)numberAlternative
metrics.* (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringOptionalThe name of the campaign asset, represented as a string.

Retrieve budget details — response body

FieldTypePresenceDescription and constraints
$objectRoot
budgetItemsarrayRequired within parentAn array of budget items associated with the campaign, each represented by a PublicBudgetItem object.
budgetItems[]ModelEach itemExpand Add budget item — response body
budgetTotalJSONOptional
budgetTotal (anyOf 1)numberAlternativeThe total amount of the budget allocated for the campaign, expressed as a number.
budgetTotal (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencyCodestringRequired within parentThe currency code used for the budget and spending amounts, represented as a string. Valid values include standard currency codes such as 'USD', 'EUR', 'JPY', etc.
Known values: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, UYI, UYU, UZS, VEF, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XSU, XUA, YER, ZAR, ZMW, ZWL
remainingBudgetJSONOptional
remainingBudget (anyOf 1)numberAlternativeThe remaining budget available for the campaign, calculated as the difference between the budgetTotal and spendTotal, expressed as a number.
remainingBudget (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
spendItemsarrayRequired within parentAn array of spend items associated with the campaign, each represented by a PublicSpendItem object.
spendItems[]ModelEach itemExpand Create spend item — response body
spendTotalJSONOptional
spendTotal (anyOf 1)numberAlternativeThe total amount spent in the campaign, expressed as a number.
spendTotal (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Add budget item — response body, Create spend item — response body

Retrieve campaigns — response body

FieldTypePresenceDescription and constraints
$objectRoot
pagingModelOptionalExpand Retrieve campaigns — response body — paging
resultsarrayRequired within parentAn array of PublicCampaign objects, each representing a campaign with its associated details.
results[]ModelEach itemExpand Create a campaign — response body
totalJSONRequired within parent
total (anyOf 1)integerAlternativeAn integer representing the total number of campaigns available.
Format: int32
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Retrieve campaigns — response body — paging, Create a campaign — response body

Retrieve campaigns — response body — paging

FieldTypePresenceDescription and constraints
$objectRootRepresents the pagination information for navigating through a list of results in the API. It provides details on how to access the previous or next set of results.
nextModelOptionalExpand Retrieve assets — response body — paging next
prevModelOptionalExpand Retrieve campaigns — response body — paging prev

Referenced models: Retrieve assets — response body — paging next, Retrieve campaigns — response body — paging prev

Retrieve campaigns — response body — paging prev

FieldTypePresenceDescription and constraints
$objectRootspecifies the paging information needed to retrieve the previous set of results in a paginated API response
beforestringRequired within parentA string token used to identify the position before the current page in the paginated results.
linkstringOptionalA URL string that provides a link to the previous page of results.

Retrieve contact I Ds — response body

FieldTypePresenceDescription and constraints
$objectRoot
pagingModelOptionalExpand Retrieve assets — response body — paging
resultsarrayRequired within parentAn array of contact references, each representing a contact associated with the campaign. Each item in the array is a ContactReference object.
results[]ModelEach itemExpand Retrieve contact I Ds — response body — results item

Referenced models: Retrieve assets — response body — paging, Retrieve contact I Ds — response body — results item

Retrieve contact I Ds — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentThe unique identifier for the contact reference, represented as a string.

Retrieve metrics — response body

FieldTypePresenceDescription and constraints
$objectRoot
influencedContactsJSONRequired within parent
influencedContacts (anyOf 1)integerAlternativeThe number of contacts that were influenced by the campaign. This is an integer value.
Format: int32
influencedContacts (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
newContactsFirstTouchJSONRequired within parent
newContactsFirstTouch (anyOf 1)integerAlternativeThe number of new contacts that had their first interaction with the campaign. This is an integer value.
Format: int32
newContactsFirstTouch (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
newContactsLastTouchJSONRequired within parent
newContactsLastTouch (anyOf 1)integerAlternativeThe number of new contacts that had their last interaction with the campaign. This is an integer value.
Format: int32
newContactsLastTouch (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
sessionsJSONRequired within parent
sessions (anyOf 1)integerAlternativeThe number of sessions associated with the campaign. This is an integer value.
Format: int32
sessions (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Retrieve revenue report — response body

FieldTypePresenceDescription and constraints
$objectRoot
contactsNumberJSONOptional
contactsNumber (anyOf 1)integerAlternativeAn integer representing the number of contacts associated with the campaign.
Format: int32
contactsNumber (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencyCodestringOptionalA string representing the currency code for the financial amounts, following ISO 4217 standards. Valid values include currency codes like 'USD', 'EUR', 'JPY', etc.
Known values: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, UYI, UYU, UZS, VEF, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XSU, XUA, YER, ZAR, ZMW, ZWL
dealAmountJSONOptional
dealAmount (anyOf 1)numberAlternativeA number representing the total amount from deals associated with the campaign.
dealAmount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
dealsNumberJSONOptional
dealsNumber (anyOf 1)integerAlternativeAn integer indicating the number of deals associated with the campaign.
Format: int32
dealsNumber (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
revenueAmountJSONOptional
revenueAmount (anyOf 1)numberAlternativeA number indicating the total revenue amount attributed to the campaign.
revenueAmount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.