Gathering detailed insights and metrics for klaviyo-api
Gathering detailed insights and metrics for klaviyo-api
Gathering detailed insights and metrics for klaviyo-api
Gathering detailed insights and metrics for klaviyo-api
npm install klaviyo-api
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
56 Stars
26 Commits
17 Forks
9 Watching
8 Branches
5 Contributors
Updated on 11 Nov 2024
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
-25.9%
5,126
Compared to previous day
Last week
-0.4%
30,523
Compared to previous week
Last month
-2.3%
126,352
Compared to previous month
Last year
232.8%
895,071
Compared to previous year
3
6
SDK version: 13.0.0
Revision: 2024-10-15
CONTRIBUTING.md
document.MIGRATION.md
file.CHANGELOG.md
.This SDK is a thin wrapper around our API. See our API Reference for full documentation on API behavior.
This SDK exactly mirrors the organization and naming convention of the above language-agnostic resources, with a few namespace changes to make it fit better with Typescript
This SDK is organized into the following resources:
You can install this library using npm
.
npm install klaviyo-api@13.0.0
Alternatively, you can also run this using this repo as source code, simply download this repo then connect to your app putting the path in your package.json or via npm link
path: add this line to your apps package.json
1"klaviyo-api": "< path to downloaded source code >"
npm link:
run npm link
in your local copy of this repo's directory
run npm link <"path to this repo">
first in your consuming app's directory
Sample file:
If you want to test out the repo but don't have a consuming app, you can run our sample typescript file, make whatever edits you want to sample.ts
in the sample
folder and use
npm run sample --pk=<YOUR PRIVATE KEY HERE>
1import { ApiKeySession, ProfilesApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const profilesApi = new ProfilesApi(session)
createProfile
operation:1import { 2 ApiKeySession, 3 ProfileCreateQuery, 4 ProfileEnum, 5 ProfilesApi, 6} from 'klaviyo-api' 7 8const session = new ApiKeySession("< YOUR API KEY HERE >") 9const profilesApi = new ProfilesApi(session) 10 11let profile: ProfileCreateQuery = { 12 data: { 13 type: ProfileEnum.Profile, 14 attributes: { 15 email: "typescript_test_1@klaviyo-demo.com" 16 } 17 } 18} 19 20 21profilesApi.createProfile(profile).then(result => { 22 console.log(result) 23}).catch(error => { 24 console.log(error) 25}); 26
Constructing an API object also has optional property RetryOptions
, this acts as a light wrapper with some different defaults around the exponential-backoff
library
you can override - maxRetryAttempts - timeMultiple - startingDelay
1const retryOptions: RetryOptions = new RetryOptions({numOfAttempts: 3, timeMultiple: 5, startingDelay: 500)
2const session = new ApiKeySession("< YOUR API KEY HERE >", retryOptions)
if you have used exponential backoff before you can bypass the all the settings by just setting the options with a BackoffOptions
object
1const retryOptions: RetryOptions = new RetryOptions() 2retryOptions.options = { "BUILD YOUR OWN BackoffOptions object here" }
There is also an optional Klaviyo
import that has all the Apis and Auth, if you prefer that method for organization.
1import { Klaviyo } from 'klaviyo-api' 2 3const profilesApi = new Klaviyo.ProfilesApi(new Klaviyo.Auth.ApiKeySession("< YOUR API KEY HERE >", retryOptions))
Failed api calls throw an AxiosError.
The two most commonly useful error items are probably
- error.response.status
- error.response.statusText
Here is an example of logging those errors to the console
1profilesApi.createProfile(profile).then(result => { 2 console.log(result.body) 3}).catch(error => { 4 console.log(error.response.status) 5 console.log(error.response.statusText) 6});
The ImageApi
exposes uploadImageFromFile()
1import fs from 'fs' 2import {ApiKeySession, ImageApi } from 'klaviyo-api' 3 4const session = new ApiKeySession("< YOUR API KEY HERE >") 5const imageApi = new ImagesApi(session) 6imageApi.uploadImageFromFile(fs.createReadStream("./test_image.jpeg")).then(result => { 7 console.log(result.body) 8}).catch(error => { 9 console.log(error) 10}
If you only connect to one Klaviyo account you may find it useful to access preconfigured objects.
Set a global key, If you were using ConfigWrapper
this also sets the GlobalApiKeySettings
1import { GlobalApiKeySettings } from 'klaviyo-api' 2 3new GlobalApiKeySettings("< YOUR API KEY HERE >")
Now you can use the shortened names ProfilesApi
can be referenced with Profiles
1import { Profiles, GlobalApiKeySettings } from 'klaviyo-api' 2 3new GlobalApiKeySettings("< YOUR API KEY HERE >") 4 5Profiles.getProfiles().then(result => { 6 console.log(result.body) 7}).catch(error => { 8 console.log(error.response.status) 9 console.log(error.response.statusText) 10});
For users creating integrations or managing multiple Klaviyo accounts, Klaviyo's OAuth authentication will make these tasks easier.
First, configure an integration. If you haven't set up an integration, learn about it in this guide
The klaviyo-api
package can keep your access token
up to date. If you have already developed a system for refreshing tokens or would like a more minimalist option, skip to OAuthBasicSession
For the OAuthApi to be storage agnostic, this interface must be implemented for the OAuthApi
to retrieve and save you access
and refresh
tokens.
Implement the retrieve
and save
functions outlined in the interface. If you need help getting started, check out the storageHelpers.ts
in the Klaviyo Example Typescript Integration
Your implementation needs to include two methods:
save
is called after creating a new access token
via the authorization flow or after refreshing the access token
.
Your code needs to update (and insert if you are going to be using createTokens()
) the new access
or refresh
token information into storage
to keep track of which of your integration users' access information you are referencing, the customerIdentifier
is a unique value to help with lookup later.
1save(customerIdentifier: string, tokens: CreatedTokens): Promise<void> | void
retrieve
leverages the customerIdentifier
to look up the saved token information and returns it for the OAuthApi
to use
1retrieve(customerIdentifier: string): Promise<RetrievedTokens> | RetrievedTokens
1import { TokenStorage } from 'klaviyo-api'; 2class <Your Token Storage Class Name Here> implements TokenStorage
This class holds the information about your specific integration. It takes three inputs:
clientId
- This is the id of your integration. Retrieve it from your integration's settings pageclientSecret
- This is the secret for your integration. The secret is generated upon the creation of your integration.tokenStorage
- This is an instance of your implementation of TokenStorage
and is called automatically when creating and refreshing access tokens
1import { OAuthApi } from 'klaviyo-api'; 2 3const oauthApi = new OAuthApi("<client id>", "<client secret>", <instance of your TokenStorage implimentation>)
OAuthSession
To make an API call, you need to create an OAuthSession
instance. This session object is the OAuth equivalent of ApiKeySession
and is used similarly.
It takes two properties
customerIdentifier
- This is how the session is going to grab a user's authentication information and let your implementation of TokenStorage
know where to save any update access token
oauthApi
- This is the instance of OAuthApi
created above. It will dictate how the session saves
and retrieves
the access tokens
retryOptions
- OPTIONAL - the RetryOptions
instance outlines your desired exponential backoff retry options, outlined in Retry Options above1import { OAuthSession, ProfilesApi } from 'klaviyo-api'; 2 3const session = new OAuthSession(customerIdentifier, oauthApi) 4 5//Pass the session into the API you want to use 6const profileApi = new ProfilesApi(session)
OAuthBasicSession
If you don't want to deal with any of the helpers above or don't want klaviyo-api
to refresh your tokens for you, this is the alternative.
The OAuthBasicSession
takes up to two parameters
accessToken
- The token is used in the API calls' authenticationretryOptions
- OPTIONAL - the RetryOptions
instance outlines your desired exponential backoff retry options, outlined in Retry Options above1import { OAuthBasicSession } from 'klaviyo-api'; 2 3const session = new OAuthBasicSession("<access token>") 4 5//Pass the session into the API you want to use 6const profileApi = new ProfilesApi(session)
Remember to check for 401
errors. A 401 means that your token is probably expired.
KlaviyoTokenError
If an error occurred during an API call, check the error type with isKlaviyoTokenError
. The name property will reflect which step the error occurred, reflecting whether it happened during creating, refreshing, saving, or retrieving the name
tokens. The cause
property will hold the error object of whatever specific error occurred.
Build The authorization flow in the same application as with the rest of your integrations business logic or separately. There is no requirement that the authorization flow has to be backend and can be implemented entirely in a frontend application (in that case, you can ignore this section, as this repo shouldn't use this for frontend code)
To understand the authorization flow, there are two major resources to help:
If you implement your authorization flow on a node server, you can use these exposed helper functions.
The OAuthApi class also exposes helpful Authorization flow utilities.
generateAuthorizeUrl
- This helps correctly format the Klaviyo /oauth/authorize
URL the application needs to redirect to so a user can approve your integration.
state
- This is the only way to identify which user just authorized your application (or failed to). state
is passed back via query parameter to your redirectUrl
.scope
- The permissions the created access tokens
will have. The user will be displayed these scopes during the authorization flow. For these permissions to work, also add them to your app settings in Klaviyo herecodeChallenge
- This is the value generated above by the generateCode
function.redirectUrl
- This is the URL that Klaviyo will redirect the user to once Authorization is completed (even if it is denied or has an error).
Remember to whitelist this redirect URL in your integration's settings in Klaviyo.1 import { OAuthApi } from 'klaviyo-api' 2 3 const oauthApi = new OAuthApi("<client id>", "<client secret>", <TokenStorage implementation instance>) 4 oauthApi.generateAuthorizeUrl( 5 state, // It's suggested to use your internal identifier for the Klaviyo account that is authorizing 6 scopes, 7 codeChallenge, 8 redirectUrl 9 )
createTokens
- Uses Klaviyo /oauth/token/
endpoint to create access
and refresh
tokens
customerIdentifier
- This ID is NOT sent to Klaviyo's API. If the /token
API call this method wraps is successful, the created tokens will be passed into your save
method along with this customerIdentifier
in your implementation of TokenStorage
.codeVerifier
- The verifier code must match the challenge code in the authorized URL redirect.authorizationCode
- A User approving your integration creates this temporary authorization code. Your specified redirect URL receives this under a code
query parameter.redirectUrl
- The endpoint set in generateAuthorizeUrl
. Whitelist the URL in your application settings.1 import { OAuthApi } from 'klaviyo-api' 2 3 const oauthApi = new OAuthApi("<client id>", "<client secret>", <TokenStorage implementation instance>) 4 await oauthApi.createTokens( 5 customerIdentifier, 6 codeVerifier, 7 authorizationCode, 8 redirectUrl 9 )
OAuthCallbackQueryParams
For typescript users, this object is an interface representing the possible query parameters sent to your redirect endpoint
All the PKCE helper functions live within the Pkce
namespace. Read about PKCE here
1import { Pkce } from 'klaviyo-api'
The Pkce
namespace holds two different helper utilities
generateCodes
- This method will create the codeVerifier
and codeChallenge
needed later in the authorization flow.
1import { Pkce } from 'klaviyo-api' 2 3const pkceCodes = new Pkce.generateCodes() 4// the two codes can be accessed by 5const codeVerifier: string = pkceCodes.codeVerifier 6const codeChallenge: string = pkceCodes.codeChallenge
CodeStorage
- This is an OPTIONAL interface to help keep your code organized, to relate a customerIdentifier
to their generated PKCE code
1import { Pkce } from 'klaviyo-api' 2class <Your Code Storage Class Here> implements Pkce.CodeStorage
Here we will go over
As a reminder, some optional parameters are named slightly differently from how you would make the call without the SDK docs;
the reason for this is that some query parameter names have variables that make for bad JavaScript names.
For example: page[cursor]
becomes pageCursor
. (In short: remove the non-allowed characters and append words with camelCase).
All the endpoints that return a list of results use cursor-based pagination.
Obtain the cursor value from the call you want to get the next page for, then pass it under the pageCursor
optional parameter. The page cursor looks like WzE2NDA5OTUyMDAsICIzYzRjeXdGTndadyIsIHRydWVd
.
API call:
https://a.klaviyo.com/api/profiles/?page[cursor]=WzE2NTcyMTM4NjQsICIzc042NjRyeHo0ciIsIHRydWVd
SDK call:
1import { ApiKeySession, ProfilesApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const profilesApi = new ProfilesApi(session) 5 6const profileList = await profilesApi.getProfiles({pageCursor: 'WzE2NTcyMTM4NjQsICIzc042NjRyeHo0ciIsIHRydWVd'})
You get the cursor for the next
page from body.link.next
. This returns the entire url of the next call,
but the SDK will accept the entire link and use only the relevant cursor, so no need to do any parsing of the next
link on your end
Here is an example of getting the second next and passing in the page cursor:
1import { ApiKeySession, ProfilesApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const profilesApi = new ProfilesApi(session) 5 6try { 7 const profilesListFirstPage = await profilesApi.getProfiles() 8 const nextPage = profilesListFirstPage.body.links.next 9 const profileListSecondPage = await profilesApi.getProfiles({pageCursor: nextPage}) 10 console.log(profileListSecondPage.body) 11} catch (e) { 12 console.log(e) 13}
There are more page cursors than just next
: first
, last
, next
and prev
. Check the API Reference for all the paging params for a given endpoint.
Some endpoints allow you to set the page size by using the pageSize
parameter.
API call:
https://a.klaviyo.com/api/profiles/?page[size]=20
SDK call:
1import { ApiKeySession, ProfilesApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const profilesApi = new ProfilesApi(session) 5 6const profileList = await profilesApi.getProfiles({pageSize: 20})
Additional fields are used to populate parts of the response that would be null
otherwise.
For example, for the getProfile
, endpoint you can pass in a request to get the predictive analytics of the profile. Using the additionalFields
parameter does impact the rate limit of the endpoint in cases where the related resource is subject to a lower rate limit, so be sure to keep an eye on your usage.
API call:
https://a.klaviyo.com/api/profiles/01GDDKASAP8TKDDA2GRZDSVP4H/?additional-fields[profile]=predictive_analytics
SDK call:
1import { ApiKeySession, ProfilesApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const profilesApi = new ProfilesApi(session) 5 6const profileId = '01GDDKASAP8TKDDA2GRZDSVP4H' 7const profile = await profilesApi.getProfile(profileId, {additionalFieldsProfile: ['predictive_analytics']}) 8 9// If your profile has enough information for predictive analytis it will populate 10console.log(profile.body.data.attributes.predictiveAnalytics)
You can filter responses by passing a string into the optional parameter filter
. Note that when filtering by a property it will be snake_case instead of camelCase, ie. metric_id
Read more about formatting your filter strings in our developer documentation
Here is an example of a filter string for results between two date times: less-than(updated,2023-04-26T00:00:00Z),greater-than(updated,2023-04-19T00:00:00Z)
Here is a code example to filter for profiles with the matching emails:
https://a.klaviyo.com/api/profiles/?filter=any(email,["henry.chan@klaviyo-demo.com","amanda.das@klaviyo-demo.com"]
SDK call:
1import { ApiKeySession, ProfilesApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const profilesApi = new ProfilesApi(session) 5 6const filter = 'any(email,["henry.chan@klaviyo-demo.com","amanda.das@klaviyo-demo.com"])' 7const profileList = await profilesApi.getProfiles({filter})
To help create filters in the correct format, use the FilterBuilder
class
1new FilterBuilder() 2 .equals("email", "sm@klaviyo-demo.com") 3 .build() // outputs equals(email,"sm@klaviyo-demo.com")
Complex filters can be build by adding additional filters to the builder before calling build()
1const date = new Date(2023, 7, 15, 12, 30, 0); 2new FilterBuilder() 3 .any("email", ["sarah.mason@klaviyo-demo.com", "sm@klaviyo-demo.com"]) 4 .greaterThan("created", date) 5 .build(); 6// outputs any(email,["sarah.mason@klaviyo-demo.com","sm@klaviyo-demo.com"]),greater-than(created,2023-08-15T16:30:00.000Z)
If you only want a specific subset of data from a specific query you can use sparse fields to request only the specific properties. The SDK expands the optional sparse fields into their own option, where you can pass a list of the desired items to include.
To get a list of event properties the API call you would use is:
https://a.klaviyo.com/api/events/?fields[event]=event_properties
SDK call:
1import { ApiKeySession, EventsApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const eventsApi = new EventsApi(session) 5 6const eventsList = await eventsApi.getEvents({fieldsEvent: ["event_properties"]})
Your can request the results of specific endpoints to be ordered by a given parameter. The direction of the sort can be reversed by adding a -
in front of the sort key.
For example datetime
will be ascending while -datetime
will be descending.
If you are unsure about the available sort fields, refer to the API Reference page for the endpoint you are using. For a comprehensive list that links to the documentation for each function check the Endpoints section below.
API Call to get events sorted by oldest to newest datetime:
https://a.klaviyo.com/api/events/?sort=-datetime
SDK call:
1import { ApiKeySession, EventsApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const eventsApi = new EventsApi(session) 5 6const events = await eventsApi.getEvents({sort: '-datetime'})
You can add additional information to your API response via additional fields and the includes parameter. This allows you to get information about two or more objects from a single API call. Using the includes parameter often changes the rate limit of the endpoint so be sure to take note.
API call to get profile information and the information about the lists the profile is in:
https://a.klaviyo.com/api/profiles/01GDDKASAP8TKDDA2GRZDSVP4H/?include=lists
SDK call:
1import { ApiKeySession, ProfilesApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const profilesApi = new ProfilesApi(session) 5 6const profileId = '01GDDKASAP8TKDDA2GRZDSVP4H' 7const profile = await profilesApi.getProfile(profileId,{include:["lists"]}) 8 9// Profile information is accessed the same way with 10console.log(profile.body.data) 11// Lists related to the profile with be accessible via the included array 12console.log(profile.body.included)
Note about sparse fields and relationships: you can also request only specific fields for the included object as well.
1import { ApiKeySession, ProfilesApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const profilesApi = new ProfilesApi(session) 5 6const profileId = '01GDDKASAP8TKDDA2GRZDSVP4H' 7// Use the fieldsLists property to request only the list name 8const profile = await profilesApi.getProfile(profileId, {fieldsList: ['name'], include: ["lists"]}) 9 10// Profile information is accessed the same way with 11console.log(profile.body.data) 12// Lists related to the profile with be accessible via the included array 13console.log(profile.body.included)
The Klaviyo API has a series of endpoints to expose the relationships between different Klaviyo Items. You can read more about relationships in our documentation.
Here are some use cases and their examples:
API call to get the list membership for a profile with the given profile ID:
https://a.klaviyo.com/api/profiles/01GDDKASAP8TKDDA2GRZDSVP4H/relationships/lists/
SDK call:
1import { ApiKeySession, ProfilesApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const profilesApi = new ProfilesApi(session) 5 6const profileId = '01GDDKASAP8TKDDA2GRZDSVP4H' 7const profileRelationships = await profilesApi.getProfileRelationshipsLists(profileId)
For another example:
Get all campaigns associated with the given tag_id
.
API call:
https://a.klaviyo.com/api/tags/9c8db7a0-5ab5-4e3c-9a37-a3224fd14382/relationships/campaigns/
SDK call:
1import { ApiKeySession, TagsApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const tagsApi = new TagsApi(session) 5 6const tagId = '9c8db7a0-5ab5-4e3c-9a37-a3224fd14382' 7const relatedCampagins = tagsApi.getTagRelationshipsCampaigns(tagId)
You can use any combination of the features outlines above in conjunction with one another.
API call to get events associated with a specific metric, then return just the event properties sorted by oldest to newest datetime:
API call:
https://a.klaviyo.com/api/events/?fields[event]=event_properties&filter=equals(metric_id,"URDbLg")&sort=-datetime
SDK call:
1import { ApiKeySession, EventsApi } from 'klaviyo-api' 2 3const session = new ApiKeySession("< YOUR API KEY HERE >") 4const eventsApi = new EventsApi(session) 5 6const metricId = 'URDbLg' 7const filter = `equal(metric_id,"${metricId}")` 8const events = await eventsApi.getEvents({fieldsEvent: ['event_properties'], sort: '-datetime', filter})
1AccountsApi.getAccount(id: string, options)
1AccountsApi.getAccounts(options)
Assign Template to Campaign Message
1CampaignsApi.assignTemplateToCampaignMessage(campaignMessageAssignTemplateQuery: CampaignMessageAssignTemplateQuery)
1CampaignsApi.createCampaignMessageAssignTemplate(campaignMessageAssignTemplateQuery: CampaignMessageAssignTemplateQuery)
1CampaignsApi.cancelCampaignSend(id: string, campaignSendJobPartialUpdateQuery: CampaignSendJobPartialUpdateQuery)
1CampaignsApi.updateCampaignSendJob(id: string, campaignSendJobPartialUpdateQuery: CampaignSendJobPartialUpdateQuery)
1CampaignsApi.createCampaign(campaignCreateQuery: CampaignCreateQuery)
1CampaignsApi.createCampaignClone(campaignCloneQuery: CampaignCloneQuery)
1CampaignsApi.cloneCampaign(campaignCloneQuery: CampaignCloneQuery)
1CampaignsApi.deleteCampaign(id: string)
1CampaignsApi.getCampaign(id: string, options)
Get Campaign for Campaign Message
1CampaignsApi.getCampaignForCampaignMessage(id: string, options)
1CampaignsApi.getCampaignMessageCampaign(id: string, options)
Get Campaign ID for Campaign Message
1CampaignsApi.getCampaignIdForCampaignMessage(id: string)
1CampaignsApi.getCampaignMessageRelationshipsCampaign(id: string)
1CampaignsApi.getCampaignMessage(id: string, options)
Get Campaign Recipient Estimation
1CampaignsApi.getCampaignRecipientEstimation(id: string, options)
Get Campaign Recipient Estimation Job
1CampaignsApi.getCampaignRecipientEstimationJob(id: string, options)
1CampaignsApi.getCampaignSendJob(id: string, options)
1CampaignsApi.getCampaignTags(id: string, options)
1CampaignsApi.getCampaigns(filter: string, options)
1CampaignsApi.getMessageIdsForCampaign(id: string)
1CampaignsApi.getCampaignRelationshipsCampaignMessages(id: string)
1CampaignsApi.getMessagesForCampaign(id: string, options)
1CampaignsApi.getCampaignCampaignMessages(id: string, options)
1CampaignsApi.getTagIdsForCampaign(id: string)
1CampaignsApi.getCampaignRelationshipsTags(id: string)
Get Template for Campaign Message
1CampaignsApi.getTemplateForCampaignMessage(id: string, options)
1CampaignsApi.getCampaignMessageTemplate(id: string, options)
Get Template ID for Campaign Message
1CampaignsApi.getTemplateIdForCampaignMessage(id: string)
1CampaignsApi.getCampaignMessageRelationshipsTemplate(id: string)
Refresh Campaign Recipient Estimation
1CampaignsApi.refreshCampaignRecipientEstimation(campaignRecipientEstimationJobCreateQuery: CampaignRecipientEstimationJobCreateQuery)
1CampaignsApi.createCampaignRecipientEstimationJob(campaignRecipientEstimationJobCreateQuery: CampaignRecipientEstimationJobCreateQuery)
1CampaignsApi.sendCampaign(campaignSendJobCreateQuery: CampaignSendJobCreateQuery)
1CampaignsApi.createCampaignSendJob(campaignSendJobCreateQuery: CampaignSendJobCreateQuery)
1CampaignsApi.updateCampaign(id: string, campaignPartialUpdateQuery: CampaignPartialUpdateQuery)
1CampaignsApi.updateCampaignMessage(id: string, campaignMessagePartialUpdateQuery: CampaignMessagePartialUpdateQuery)
1CatalogsApi.addCategoryToCatalogItem(id: string, catalogItemCategoryOp: CatalogItemCategoryOp)
1CatalogsApi.createCatalogItemRelationshipsCategories(id: string, catalogItemCategoryOp: CatalogItemCategoryOp)
1CatalogsApi.createCatalogItemRelationshipsCategory(id: string, catalogItemCategoryOp: CatalogItemCategoryOp)
1CatalogsApi.addItemsToCatalogCategory(id: string, catalogCategoryItemOp: CatalogCategoryItemOp)
1CatalogsApi.createCatalogCategoryRelationshipsItems(id: string, catalogCategoryItemOp: CatalogCategoryItemOp)
1CatalogsApi.createCatalogCategoryRelationshipsItem(id: string, catalogCategoryItemOp: CatalogCategoryItemOp)
Bulk Create Catalog Categories
1CatalogsApi.bulkCreateCatalogCategories(catalogCategoryCreateJobCreateQuery: CatalogCategoryCreateJobCreateQuery)
1CatalogsApi.spawnCreateCategoriesJob(catalogCategoryCreateJobCreateQuery: CatalogCategoryCreateJobCreateQuery)
1CatalogsApi.createCatalogCategoryBulkCreateJob(catalogCategoryCreateJobCreateQuery: CatalogCategoryCreateJobCreateQuery)
1CatalogsApi.bulkCreateCatalogItems(catalogItemCreateJobCreateQuery: CatalogItemCreateJobCreateQuery)
1CatalogsApi.spawnCreateItemsJob(catalogItemCreateJobCreateQuery: CatalogItemCreateJobCreateQuery)
1CatalogsApi.createCatalogItemBulkCreateJob(catalogItemCreateJobCreateQuery: CatalogItemCreateJobCreateQuery)
1CatalogsApi.bulkCreateCatalogVariants(catalogVariantCreateJobCreateQuery: CatalogVariantCreateJobCreateQuery)
1CatalogsApi.spawnCreateVariantsJob(catalogVariantCreateJobCreateQuery: CatalogVariantCreateJobCreateQuery)
1CatalogsApi.createCatalogVariantBulkCreateJob(catalogVariantCreateJobCreateQuery: CatalogVariantCreateJobCreateQuery)
Bulk Delete Catalog Categories
1CatalogsApi.bulkDeleteCatalogCategories(catalogCategoryDeleteJobCreateQuery: CatalogCategoryDeleteJobCreateQuery)
1CatalogsApi.spawnDeleteCategoriesJob(catalogCategoryDeleteJobCreateQuery: CatalogCategoryDeleteJobCreateQuery)
1CatalogsApi.createCatalogCategoryBulkDeleteJob(catalogCategoryDeleteJobCreateQuery: CatalogCategoryDeleteJobCreateQuery)
1CatalogsApi.bulkDeleteCatalogItems(catalogItemDeleteJobCreateQuery: CatalogItemDeleteJobCreateQuery)
1CatalogsApi.spawnDeleteItemsJob(catalogItemDeleteJobCreateQuery: CatalogItemDeleteJobCreateQuery)
1CatalogsApi.createCatalogItemBulkDeleteJob(catalogItemDeleteJobCreateQuery: CatalogItemDeleteJobCreateQuery)
1CatalogsApi.bulkDeleteCatalogVariants(catalogVariantDeleteJobCreateQuery: CatalogVariantDeleteJobCreateQuery)
1CatalogsApi.spawnDeleteVariantsJob(catalogVariantDeleteJobCreateQuery: CatalogVariantDeleteJobCreateQuery)
1CatalogsApi.createCatalogVariantBulkDeleteJob(catalogVariantDeleteJobCreateQuery: CatalogVariantDeleteJobCreateQuery)
Bulk Update Catalog Categories
1CatalogsApi.bulkUpdateCatalogCategories(catalogCategoryUpdateJobCreateQuery: CatalogCategoryUpdateJobCreateQuery)
1CatalogsApi.spawnUpdateCategoriesJob(catalogCategoryUpdateJobCreateQuery: CatalogCategoryUpdateJobCreateQuery)
1CatalogsApi.createCatalogCategoryBulkUpdateJob(catalogCategoryUpdateJobCreateQuery: CatalogCategoryUpdateJobCreateQuery)
1CatalogsApi.bulkUpdateCatalogItems(catalogItemUpdateJobCreateQuery: CatalogItemUpdateJobCreateQuery)
1CatalogsApi.spawnUpdateItemsJob(catalogItemUpdateJobCreateQuery: CatalogItemUpdateJobCreateQuery)
1CatalogsApi.createCatalogItemBulkUpdateJob(catalogItemUpdateJobCreateQuery: CatalogItemUpdateJobCreateQuery)
1CatalogsApi.bulkUpdateCatalogVariants(catalogVariantUpdateJobCreateQuery: CatalogVariantUpdateJobCreateQuery)
1CatalogsApi.spawnUpdateVariantsJob(catalogVariantUpdateJobCreateQuery: CatalogVariantUpdateJobCreateQuery)
1CatalogsApi.createCatalogVariantBulkUpdateJob(catalogVariantUpdateJobCreateQuery: CatalogVariantUpdateJobCreateQuery)
Create Back In Stock Subscription
1CatalogsApi.createBackInStockSubscription(serverBISSubscriptionCreateQuery: ServerBISSubscriptionCreateQuery)
1CatalogsApi.createCatalogCategory(catalogCategoryCreateQuery: CatalogCategoryCreateQuery)
1CatalogsApi.createCatalogItem(catalogItemCreateQuery: CatalogItemCreateQuery)
1CatalogsApi.createCatalogVariant(catalogVariantCreateQuery: CatalogVariantCreateQuery)
1CatalogsApi.deleteCatalogCategory(id: string)
1CatalogsApi.deleteCatalogItem(id: string)
1CatalogsApi.deleteCatalogVariant(id: string)
Get Bulk Create Catalog Items Job
1CatalogsApi.getBulkCreateCatalogItemsJob(jobId: string, options)
1CatalogsApi.getCreateItemsJob(jobId: string, options)
1CatalogsApi.getCatalogItemBulkCreateJob(jobId: string, options)
Get Bulk Create Catalog Items Jobs
1CatalogsApi.getBulkCreateCatalogItemsJobs(options)
1CatalogsApi.getCreateItemsJobs(options)
1CatalogsApi.getCatalogItemBulkCreateJobs(options)
Get Bulk Delete Catalog Items Job
1CatalogsApi.getBulkDeleteCatalogItemsJob(jobId: string, options)
1CatalogsApi.getDeleteItemsJob(jobId: string, options)
1CatalogsApi.getCatalogItemBulkDeleteJob(jobId: string, options)
Get Bulk Delete Catalog Items Jobs
1CatalogsApi.getBulkDeleteCatalogItemsJobs(options)
1CatalogsApi.getDeleteItemsJobs(options)
1CatalogsApi.getCatalogItemBulkDeleteJobs(options)
Get Bulk Update Catalog Items Job
1CatalogsApi.getBulkUpdateCatalogItemsJob(jobId: string, options)
1CatalogsApi.getUpdateItemsJob(jobId: string, options)
1CatalogsApi.getCatalogItemBulkUpdateJob(jobId: string, options)
Get Bulk Update Catalog Items Jobs
1CatalogsApi.getBulkUpdateCatalogItemsJobs(options)
1CatalogsApi.getUpdateItemsJobs(options)
1CatalogsApi.getCatalogItemBulkUpdateJobs(options)
1CatalogsApi.getCatalogCategories(options)
1CatalogsApi.getCatalogCategory(id: string, options)
1CatalogsApi.getCatalogItem(id: string, options)
1CatalogsApi.getCatalogItems(options)
1CatalogsApi.getCatalogVariant(id: string, options)
1CatalogsApi.getCatalogVariants(options)
Get Categories for Catalog Item
1CatalogsApi.getCategoriesForCatalogItem(id: string, options)
1CatalogsApi.getCatalogItemCategories(id: string, options)
Get Category IDs for Catalog Item
1CatalogsApi.getCategoryIdsForCatalogItem(id: string, options)
1CatalogsApi.getCatalogItemRelationshipsCategories(id: string, options)
1CatalogsApi.getCreateCategoriesJob(jobId: string, options)
1CatalogsApi.getCatalogCategoryBulkCreateJob(jobId: string, options)
1CatalogsApi.getCreateCategoriesJobs(options)
1CatalogsApi.getCatalogCategoryBulkCreateJobs(options)
1CatalogsApi.getCreateVariantsJob(jobId: string, options)
1CatalogsApi.getCatalogVariantBulkCreateJob(jobId: string, options)
1CatalogsApi.getCreateVariantsJobs(options)
1CatalogsApi.getCatalogVariantBulkCreateJobs(options)
1CatalogsApi.getDeleteCategoriesJob(jobId: string, options)
1CatalogsApi.getCatalogCategoryBulkDeleteJob(jobId: string, options)
1CatalogsApi.getDeleteCategoriesJobs(options)
1CatalogsApi.getCatalogCategoryBulkDeleteJobs(options)
1CatalogsApi.getDeleteVariantsJob(jobId: string, options)
1CatalogsApi.getCatalogVariantBulkDeleteJob(jobId: string, options)
1CatalogsApi.getDeleteVariantsJobs(options)
1CatalogsApi.getCatalogVariantBulkDeleteJobs(options)
Get Item IDs for Catalog Category
1CatalogsApi.getItemIdsForCatalogCategory(id: string, options)
1CatalogsApi.getCatalogCategoryRelationshipsItems(id: string, options)
Get Items for Catalog Category
1CatalogsApi.getItemsForCatalogCategory(id: string, options)
1CatalogsApi.getCatalogCategoryItems(id: string, options)
1CatalogsApi.getUpdateCategoriesJob(jobId: string, options)
1CatalogsApi.getCatalogCategoryBulkUpdateJob(jobId: string, options)
1CatalogsApi.getUpdateCategoriesJobs(options)
1CatalogsApi.getCatalogCategoryBulkUpdateJobs(options)
1CatalogsApi.getUpdateVariantsJob(jobId: string, options)
1CatalogsApi.getCatalogVariantBulkUpdateJob(jobId: string, options)
1CatalogsApi.getUpdateVariantsJobs(options)
1CatalogsApi.getCatalogVariantBulkUpdateJobs(options)
1CatalogsApi.getVariantsForCatalogItem(id: string, options)
1CatalogsApi.getCatalogItemVariants(id: string, options)
Remove Categories from Catalog Item
1CatalogsApi.removeCategoriesFromCatalogItem(id: string, catalogItemCategoryOp: CatalogItemCategoryOp)
1CatalogsApi.deleteCatalogItemRelationshipsCategories(id: string, catalogItemCategoryOp: CatalogItemCategoryOp)
Remove Items from Catalog Category
1CatalogsApi.removeItemsFromCatalogCategory(id: string, catalogCategoryItemOp: CatalogCategoryItemOp)
1CatalogsApi.deleteCatalogCategoryRelationshipsItems(id: string, catalogCategoryItemOp: CatalogCategoryItemOp)
1CatalogsApi.updateCatalogCategory(id: string, catalogCategoryUpdateQuery: CatalogCategoryUpdateQuery)
1CatalogsApi.updateCatalogItem(id: string, catalogItemUpdateQuery: CatalogItemUpdateQuery)
1CatalogsApi.updateCatalogVariant(id: string, catalogVariantUpdateQuery: CatalogVariantUpdateQuery)
Update Categories for Catalog Item
1CatalogsApi.updateCategoriesForCatalogItem(id: string, catalogItemCategoryOp: CatalogItemCategoryOp)
1CatalogsApi.updateCatalogItemRelationshipsCategories(id: string, catalogItemCategoryOp: CatalogItemCategoryOp)
Update Items for Catalog Category
1CatalogsApi.updateItemsForCatalogCategory(id: string, catalogCategoryItemOp: CatalogCategoryItemOp)
1CatalogsApi.updateCatalogCategoryRelationshipsItems(id: string, catalogCategoryItemOp: CatalogCategoryItemOp)
1CouponsApi.bulkCreateCouponCodes(couponCodeCreateJobCreateQuery: CouponCodeCreateJobCreateQuery)
1CouponsApi.spawnCouponCodeBulkCreateJob(couponCodeCreateJobCreateQuery: CouponCodeCreateJobCreateQuery)
1CouponsApi.createCouponCodeBulkCreateJob(couponCodeCreateJobCreateQuery: CouponCodeCreateJobCreateQuery)
1CouponsApi.createCoupon(couponCreateQuery: CouponCreateQuery)
1CouponsApi.createCouponCode(couponCodeCreateQuery: CouponCodeCreateQuery)
1CouponsApi.deleteCoupon(id: string)
1CouponsApi.deleteCouponCode(id: string)
Get Bulk Create Coupon Code Jobs
1CouponsApi.getBulkCreateCouponCodeJobs(options)
1CouponsApi.getCouponCodeBulkCreateJobs(options)
Get Bulk Create Coupon Codes Job
1CouponsApi.getBulkCreateCouponCodesJob(jobId: string, options)
1CouponsApi.getCouponCodeBulkCreateJob(jobId: string, options)
1CouponsApi.getCodeIdsForCoupon(id: string, options)
1CouponsApi.getCouponCodeRelationshipsCoupon(id: string, options)
1CouponsApi.getCoupon(id: string, options)
1CouponsApi.getCouponCode(id: string, options)
1CouponsApi.getCouponCodes(options)
1CouponsApi.getCouponCodesForCoupon(id: string, options)
1CouponsApi.getCouponCouponCodes(id: string, options)
1CouponsApi.getCouponForCouponCode(id: string, options)
1CouponsApi.getCouponCodeCoupon(id: string, options)
1CouponsApi.getCouponIdForCouponCode(id: string)
1CouponsApi.getCouponRelationshipsCouponCodes(id: string)
1CouponsApi.getCoupons(options)
1CouponsApi.updateCoupon(id: string, couponUpdateQuery: CouponUpdateQuery)
1CouponsApi.updateCouponCode(id: string, couponCodeUpdateQuery: CouponCodeUpdateQuery)
1DataPrivacyApi.requestProfileDeletion(dataPrivacyCreateDeletionJobQuery: DataPrivacyCreateDeletionJobQuery)
1DataPrivacyApi.createDataPrivacyDeletionJob(dataPrivacyCreateDeletionJobQuery: DataPrivacyCreateDeletionJobQuery)
1EventsApi.bulkCreateEvents(eventsBulkCreateJob: EventsBulkCreateJob)
1EventsApi.createEventBulkCreateJob(eventsBulkCreateJob: EventsBulkCreateJob)
1EventsApi.createEvent(eventCreateQueryV2: EventCreateQueryV2)
1EventsApi.getEvent(id: string, options)
1EventsApi.getEventMetric(id: string, options)
1EventsApi.getEventProfile(id: string, options)
1EventsApi.getEvents(options)
1EventsApi.getMetricIdForEvent(id: string)
1EventsApi.getEventRelationshipsMetric(id: string)
1EventsApi.getProfileIdForEvent(id: string)
1EventsApi.getEventRelationshipsProfile(id: string)
1FlowsApi.deleteFlow(id: string)
Get Action ID for Flow Message
1FlowsApi.getActionIdForFlowMessage(id: string)
1FlowsApi.getFlowMessageRelationshipsAction(id: string)
1FlowsApi.getActionIdsForFlow(id: string, options)
1FlowsApi.getFlowRelationshipsFlowActions(id: string, options)
1FlowsApi.getActionsForFlow(id: string, options)
1FlowsApi.getFlowFlowActions(id: string, options)
1FlowsApi.getFlow(id: string, options)
1FlowsApi.getFlowAction(id: string, options)
1FlowsApi.getFlowActionFlow(id: string, options)
1FlowsApi.getFlowIdForFlowAction(id: string)
1FlowsApi.getFlowActionRelationshipsFlow(id: string)
1FlowsApi.getFlowMessage(id: string, options)
1FlowsApi.getFlowMessageAction(id: string, options)
1FlowsApi.getFlowTags(id: string, options)
1FlowsApi.getFlows(options)
Get Message IDs for Flow Action
1FlowsApi.getMessageIdsForFlowAction(id: string, options)
1FlowsApi.getFlowActionRelationshipsMessages(id: string, options)
1FlowsApi.getMessagesForFlowAction(id: string, options)
1FlowsApi.getFlowActionMessages(id: string, options)
1FlowsApi.getTagIdsForFlow(id: string)
1FlowsApi.getFlowRelationshipsTags(id: string)
1FlowsApi.getTemplateForFlowMessage(id: string, options)
1FlowsApi.getFlowMessageTemplate(id: string, options)
Get Template ID for Flow Message
1FlowsApi.getTemplateIdForFlowMessage(id: string)
1FlowsApi.getFlowMessageRelationshipsTemplate(id: string)
1FlowsApi.updateFlow(id: string, flowUpdateQuery: FlowUpdateQuery)
1FormsApi.getForm(id: string, options)
1FormsApi.getFormForFormVersion(id: string, options)
1FormsApi.getFormVersionForm(id: string, options)
1FormsApi.getFormIdForFormVersion(id: string)
1FormsApi.getFormVersionRelationshipsForm(id: string)
1FormsApi.getFormVersion(id: string, options)
1FormsApi.getForms(options)
1FormsApi.getVersionIdsForForm(id: string)
1FormsApi.getFormRelationshipsFormVersions(id: string)
1FormsApi.getVersionsForForm(id: string, options)
1FormsApi.getFormFormVersions(id: string, options)
1ImagesApi.getImage(id: string, options)
1ImagesApi.getImages(options)
1ImagesApi.updateImage(id: string, imagePartialUpdateQuery: ImagePartialUpdateQuery)
1ImagesApi.uploadImageFromFile(file: RequestFile, )
1ImagesApi.createImageUpload(file: RequestFile, )
1ImagesApi.uploadImageFromUrl(imageCreateQuery: ImageCreateQuery)
1ImagesApi.createImage(imageCreateQuery: ImageCreateQuery)
1ListsApi.createList(listCreateQuery: ListCreateQuery)
1ListsApi.createListRelationships(id: string, listMembersAddQuery: ListMembersAddQuery)
1ListsApi.createListRelationshipsProfile(id: string, listMembersAddQuery: ListMembersAddQuery)
1ListsApi.deleteList(id: string)
1ListsApi.deleteListRelationships(id: string, listMembersDeleteQuery: ListMembersDeleteQuery)
1ListsApi.deleteListRelationshipsProfiles(id: string, listMembersDeleteQuery: ListMembersDeleteQuery)
1ListsApi.getList(id: string, options)
1ListsApi.getListFlowTriggers(id: string, options)
1ListsApi.getListProfiles(id: string, options)
Get List Relationships Flow Triggers
1ListsApi.getListRelationshipsFlowTriggers(id: string)
1ListsApi.getListTags(id: string, options)
1ListsApi.getLists(options)
1ListsApi.getProfileIdsForList(id: string, options)
1ListsApi.getListRelationshipsProfiles(id: string, options)
1ListsApi.getTagIdsForList(id: string)
1ListsApi.getListRelationshipsTags(id: string)
1ListsApi.updateList(id: string, listPartialUpdateQuery: ListPartialUpdateQuery)
1MetricsApi.getMetric(id: string, options)
1MetricsApi.getMetricFlowTriggers(id: string, options)
Get Metric for Metric Property
1MetricsApi.getMetricForMetricProperty(id: string, options)
1MetricsApi.getMetricPropertyMetric(id: string, options)
Get Metric ID for Metric Property
1MetricsApi.getMetricIdForMetricProperty(id: string)
1MetricsApi.getMetricPropertyRelationshipsMetric(id: string)
1MetricsApi.getMetricProperty(id: string, options)
Get Metric Relationships Flow Triggers
1MetricsApi.getMetricRelationshipsFlowTriggers(id: string)
1MetricsApi.getMetrics(options)
1MetricsApi.getPropertiesForMetric(id: string, options)
1MetricsApi.getMetricMetricProperties(id: string, options)
1MetricsApi.getPropertyIdsForMetric(id: string)
1MetricsApi.getMetricRelationshipsMetricProperties(id: string)
1MetricsApi.queryMetricAggregates(metricAggregateQuery: MetricAggregateQuery)
1MetricsApi.createMetricAggregate(metricAggregateQuery: MetricAggregateQuery)
1ProfilesApi.bulkSubscribeProfiles(subscriptionCreateJobCreateQuery: SubscriptionCreateJobCreateQuery)
1ProfilesApi.subscribeProfiles(subscriptionCreateJobCreateQuery: SubscriptionCreateJobCreateQuery)
1ProfilesApi.createProfileSubscriptionBulkCreateJob(subscriptionCreateJobCreateQuery: SubscriptionCreateJobCreateQuery)
1ProfilesApi.bulkSuppressProfiles(suppressionCreateJobCreateQuery: SuppressionCreateJobCreateQuery)
1ProfilesApi.suppressProfiles(suppressionCreateJobCreateQuery: SuppressionCreateJobCreateQuery)
1ProfilesApi.createProfileSuppressionBulkCreateJob(suppressionCreateJobCreateQuery: SuppressionCreateJobCreateQuery)
1ProfilesApi.bulkUnsubscribeProfiles(subscriptionDeleteJobCreateQuery: SubscriptionDeleteJobCreateQuery)
1ProfilesApi.unsubscribeProfiles(subscriptionDeleteJobCreateQuery: SubscriptionDeleteJobCreateQuery)
1ProfilesApi.createProfileSubscriptionBulkDeleteJob(subscriptionDeleteJobCreateQuery: SubscriptionDeleteJobCreateQuery)
1ProfilesApi.bulkUnsuppressProfiles(suppressionDeleteJobCreateQuery: SuppressionDeleteJobCreateQuery)
1ProfilesApi.unsuppressProfiles(suppressionDeleteJobCreateQuery: SuppressionDeleteJobCreateQuery)
1ProfilesApi.createProfileSuppressionBulkDeleteJob(suppressionDeleteJobCreateQuery: SuppressionDeleteJobCreateQuery)
1ProfilesApi.createOrUpdateProfile(profileUpsertQuery: ProfileUpsertQuery)
1ProfilesApi.createProfileImport(profileUpsertQuery: ProfileUpsertQuery)
1ProfilesApi.createProfile(profileCreateQuery: ProfileCreateQuery)
1ProfilesApi.createPushToken(pushTokenCreateQuery: PushTokenCreateQuery)
1ProfilesApi.getBulkImportProfilesJob(jobId: string, options)
1ProfilesApi.getBulkProfileImportJob(jobId: string, options)
1ProfilesApi.getProfileBulkImportJob(jobId: string, options)
1ProfilesApi.getBulkImportProfilesJobs(options)
1ProfilesApi.getBulkProfileImportJobs(options)
1ProfilesApi.getProfileBulkImportJobs(options)
Get Bulk Suppress Profiles Job
1ProfilesApi.getBulkSuppressProfilesJob(jobId: string, options)
1ProfilesApi.getProfileSuppressionBulkCreateJob(jobId: string, options)
Get Bulk Suppress Profiles Jobs
1ProfilesApi.getBulkSuppressProfilesJobs(options)
1ProfilesApi.getProfileSuppressionBulkCreateJobs(options)
Get Bulk Unsuppress Profiles Job
1ProfilesApi.getBulkUnsuppressProfilesJob(jobId: string, options)
1ProfilesApi.getProfileSuppressionBulkDeleteJob(jobId: string, options)
Get Bulk Unsuppress Profiles Jobs
1ProfilesApi.getBulkUnsuppressProfilesJobs(options)
1ProfilesApi.getProfileSuppressionBulkDeleteJobs(options)
Get Errors for Bulk Import Profiles Job
1ProfilesApi.getErrorsForBulkImportProfilesJob(id: string, options)
1ProfilesApi.getBulkProfileImportJobImportErrors(id: string, options)
1ProfilesApi.getProfileBulkImportJobImportErrors(id: string, options)
Get List for Bulk Import Profiles Job
1ProfilesApi.getListForBulkImportProfilesJob(id: string, options)
1ProfilesApi.getBulkProfileImportJobLists(id: string, options)
1ProfilesApi.getProfileBulkImportJobLists(id: string, options)
Get List IDs for Bulk Import Profiles Job
1ProfilesApi.getListIdsForBulkImportProfilesJob(id: string)
1ProfilesApi.getBulkProfileImportJobRelationshipsLists(id: string)
1ProfilesApi.getProfileBulkImportJobRelationshipsLists(id: string)
1ProfilesApi.getListIdsForProfile(id: string)
1ProfilesApi.getProfileRelationshipsLists(id: string)
1ProfilesApi.getListsForProfile(id: string, options)
1ProfilesApi.getProfileLists(id: string, options)
1ProfilesApi.getProfile(id: string, options)
Get Profile IDs for Bulk Import Profiles Job
1ProfilesApi.getProfileIdsForBulkImportProfilesJob(id: string, options)
1ProfilesApi.getBulkProfileImportJobRelationshipsProfiles(id: string, options)
1ProfilesApi.getProfileBulkImportJobRelationshipsProfiles(id: string, options)
1ProfilesApi.getProfiles(options)
Get Profiles for Bulk Import Profiles Job
1ProfilesApi.getProfilesForBulkImportProfilesJob(id: string, options)
1ProfilesApi.getBulkProfileImportJobProfiles(id: string, options)
1ProfilesApi.getProfileBulkImportJobProfiles(id: string, options)
1ProfilesApi.getSegmentIdsForProfile(id: string)
1ProfilesApi.getProfileRelationshipsSegments(id: string)
1ProfilesApi.getSegmentsForProfile(id: string, options)
1ProfilesApi.getProfileSegments(id: string, options)
1ProfilesApi.mergeProfiles(profileMergeQuery: ProfileMergeQuery)
1ProfilesApi.createProfileMerge(profileMergeQuery: ProfileMergeQuery)
1ProfilesApi.spawnBulkProfileImportJob(profileImportJobCreateQuery: ProfileImportJobCreateQuery)
1ProfilesApi.bulkImportProfiles(profileImportJobCreateQuery: ProfileImportJobCreateQuery)
1ProfilesApi.createProfileBulkImportJob(profileImportJobCreateQuery: ProfileImportJobCreateQuery)
1ProfilesApi.updateProfile(id: string, profilePartialUpdateQuery: ProfilePartialUpdateQuery)
1ReportingApi.queryCampaignValues(campaignValuesRequestDTO: CampaignValuesRequestDTO, options)
1ReportingApi.createCampaignValueReport(campaignValuesRequestDTO: CampaignValuesRequestDTO, options)
1ReportingApi.queryFlowSeries(flowSeriesRequestDTO: FlowSeriesRequestDTO, options)
1ReportingApi.createFlowSeryReport(flowSeriesRequestDTO: FlowSeriesRequestDTO, options)
1ReportingApi.queryFlowValues(flowValuesRequestDTO: FlowValuesRequestDTO, options)
1ReportingApi.createFlowValueReport(flowValuesRequestDTO: FlowValuesRequestDTO, options)
1ReportingApi.queryFormSeries(formSeriesRequestDTO: FormSeriesRequestDTO)
1ReportingApi.createFormSeryReport(formSeriesRequestDTO: FormSeriesRequestDTO)
1ReportingApi.queryFormValues(formValuesRequestDTO: FormValuesRequestDTO)
1ReportingApi.createFormValueReport(formValuesRequestDTO: FormValuesRequestDTO)
1ReportingApi.querySegmentSeries(segmentSeriesRequestDTO: SegmentSeriesRequestDTO)
1ReportingApi.createSegmentSeryReport(segmentSeriesRequestDTO: SegmentSeriesRequestDTO)
1ReportingApi.querySegmentValues(segmentValuesRequestDTO: SegmentValuesRequestDTO)
1ReportingApi.createSegmentValueReport(segmentValuesRequestDTO: SegmentValuesRequestDTO)
1ReviewsApi.getReview(id: string, options)
1ReviewsApi.getReviews(options)
1SegmentsApi.createSegment(segmentCreateQuery: SegmentCreateQuery)
1SegmentsApi.deleteSegment(id: string)
1SegmentsApi.getProfileIdsForSegment(id: string, options)
1SegmentsApi.getSegmentRelationshipsProfiles(id: string, options)
1SegmentsApi.getProfilesForSegment(id: string, options)
1SegmentsApi.getSegmentProfiles(id: string, options)
1SegmentsApi.getSegment(id: string, options)
1SegmentsApi.getSegmentFlowTriggers(id: string, options)
Get Segment Relationships Flow Triggers
1SegmentsApi.getSegmentRelationshipsFlowTriggers(id: string)
1SegmentsApi.getSegments(options)
1SegmentsApi.getTagIdsForSegment(id: string)
1SegmentsApi.getSegmentRelationshipsTags(id: string)
1SegmentsApi.getTagsForSegment(id: string, options)
1SegmentsApi.getSegmentTags(id: string, options)
1SegmentsApi.updateSegment(id: string, segmentPartialUpdateQuery: SegmentPartialUpdateQuery)
1TagsApi.createTag(tagCreateQuery: TagCreateQuery)
1TagsApi.createTagGroup(tagGroupCreateQuery: TagGroupCreateQuery)
1TagsApi.deleteTag(id: string)
1TagsApi.deleteTagGroup(id: string)
1TagsApi.getCampaignIdsForTag(id: string)
1TagsApi.getTagRelationshipsCampaigns(id: string)
1TagsApi.getFlowIdsForTag(id: string)
1TagsApi.getTagRelationshipsFlows(id: string)
1TagsApi.getListIdsForTag(id: string)
1TagsApi.getTagRelationshipsLists(id: string)
1TagsApi.getSegmentIdsForTag(id: string)
1TagsApi.getTagRelationshipsSegments(id: string)
1TagsApi.getTag(id: string, options)
1TagsApi.getTagGroup(id: string, options)
1TagsApi.getTagGroupForTag(id: string, options)
1TagsApi.getTagTagGroup(id: string, options)
1TagsApi.getTagGroupIdForTag(id: string)
1TagsApi.getTagRelationshipsTagGroup(id: string)
1TagsApi.getTagGroups(options)
1TagsApi.getTagIdsForTagGroup(id: string)
1TagsApi.getTagGroupRelationshipsTags(id: string)
1TagsApi.getTags(options)
1TagsApi.getTagsForTagGroup(id: string, options)
1TagsApi.getTagGroupTags(id: string, options)
1TagsApi.removeTagFromCampaigns(id: string, tagCampaignOp: TagCampaignOp)
1TagsApi.deleteTagRelationshipsCampaigns(id: string, tagCampaignOp: TagCampaignOp)
1TagsApi.removeTagFromFlows(id: string, tagFlowOp: TagFlowOp)
1TagsApi.deleteTagRelationshipsFlows(id: string, tagFlowOp: TagFlowOp)
1TagsApi.removeTagFromLists(id: string, tagListOp: TagListOp)
1TagsApi.deleteTagRelationshipsLists(id: string, tagListOp: TagListOp)
1TagsApi.removeTagFromSegments(id: string, tagSegmentOp: TagSegmentOp)
1TagsApi.deleteTagRelationshipsSegments(id: string, tagSegmentOp: TagSegmentOp)
1TagsApi.tagCampaigns(id: string, tagCampaignOp: TagCampaignOp)
1TagsApi.createTagRelationshipsCampaigns(id: string, tagCampaignOp: TagCampaignOp)
1TagsApi.createTagRelationshipsCampaign(id: string, tagCampaignOp: TagCampaignOp)
1TagsApi.tagFlows(id: string, tagFlowOp: TagFlowOp)
1TagsApi.createTagRelationshipsFlows(id: string, tagFlowOp: TagFlowOp)
1TagsApi.createTagRelationshipsFlow(id: string, tagFlowOp: TagFlowOp)
1TagsApi.tagLists(id: string, tagListOp: TagListOp)
1TagsApi.createTagRelationshipsLists(id: string, tagListOp: TagListOp)
1TagsApi.createTagRelationshipsList(id: string, tagListOp: TagListOp)
1TagsApi.tagSegments(id: string, tagSegmentOp: TagSegmentOp)
1TagsApi.createTagRelationshipsSegments(id: string, tagSegmentOp: TagSegmentOp)
1TagsApi.createTagRelationshipsSegment(id: string, tagSegmentOp: TagSegmentOp)
1TagsApi.updateTag(id: string, tagUpdateQuery: TagUpdateQuery)
1TagsApi.updateTagGroup(id: string, tagGroupUpdateQuery: TagGroupUpdateQuery)
1TemplatesApi.cloneTemplate(templateCloneQuery: TemplateCloneQuery)
1TemplatesApi.createTemplateClone(templateCloneQuery: TemplateCloneQuery)
1TemplatesApi.createTemplate(templateCreateQuery: TemplateCreateQuery)
1TemplatesApi.createUniversalContent(universalContentCreateQuery: UniversalContentCreateQuery)
1TemplatesApi.createTemplateUniversalContent(universalContentCreateQuery: UniversalContentCreateQuery)
1TemplatesApi.deleteTemplate(id: string)
1TemplatesApi.deleteUniversalContent(id: string)
1TemplatesApi.deleteTemplateUniversalContent(id: string)
1TemplatesApi.getAllUniversalContent(options)
1TemplatesApi.getTemplateUniversalContent(options)
1TemplatesApi.getTemplate(id: string, options)
1TemplatesApi.getTemplates(options)
1TemplatesApi.getUniversalContent(id: string, options)
1TemplatesApi.renderTemplate(templateRenderQuery: TemplateRenderQuery)
1TemplatesApi.createTemplateRender(templateRenderQuery: TemplateRenderQuery)
1TemplatesApi.updateTemplate(id: string, templateUpdateQuery: TemplateUpdateQuery)
1TemplatesApi.updateUniversalContent(id: string, universalContentPartialUpdateQuery: UniversalContentPartialUpdateQuery)
1TemplatesApi.updateTemplateUniversalContent(id: string, universalContentPartialUpdateQuery: UniversalContentPartialUpdateQuery)
1TrackingSettingsApi.getTrackingSetting(id: string, options)
1TrackingSettingsApi.getTrackingSettings(options)
1TrackingSettingsApi.updateTrackingSetting(id: string, trackingSettingPartialUpdateQuery: TrackingSettingPartialUpdateQuery)
1WebhooksApi.createWebhook(webhookCreateQuery: WebhookCreateQuery)
1WebhooksApi.deleteWebhook(id: string)
1WebhooksApi.getWebhook(id: string, options)
1WebhooksApi.getWebhookTopic(id: string)
1WebhooksApi.getWebhookTopics()
1WebhooksApi.getWebhooks(options)
1WebhooksApi.updateWebhook(id: string, webhookPartialUpdateQuery: WebhookPartialUpdateQuery)
1 2try { 3 await YOUR_CALL_HERE 4} catch (e) { 5 console.log(e) 6}
In the interest of making the SDK follow conventions, we made the following namespace changes relative to the language agnostic resources up top.
-
are removed in favor of camelCaseFor example:
get-campaigns
becomes getCampaigns
Data Privacy
become DataPrivacy
The parameters follow the same naming conventions as the resource groups and operations.
We stick to the following convention for parameters/arguments
required
in the docs are passed as positional args.apiKey
for any operations, as it is defined upon api instantiation; public key is still required where its used.No vulnerabilities found.
No security vulnerabilities found.