Skip to content

Commit 22aa9d2

Browse files
author
klaviyo-sdk
committed
version 18.0.0
1 parent d287328 commit 22aa9d2

File tree

141 files changed

+5096
-1995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+5096
-1995
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [18.0.0] - revision 2025-04-15
5+
### Added
6+
#### Web Feeds API
7+
8+
- Create, retrieve, update, and/or delete web feeds via the [Web Feeds API](https://developers.klaviyo.com/en/reference/web_feeds_api_overview).
9+
- Create universal content blocks referencing these web feeds with our [Universal Content API](https://developers.klaviyo.com/en/reference/universal_content_api_overview).
10+
11+
#### Custom Metrics API
12+
13+
- Create, retrieve, update, and/or delete custom metrics via the [Custom Metrics API](https://developers.klaviyo.com/en/reference/custom_metrics_api_overview).
14+
- Report on custom metric conversions in our Campaign and Flow [Reporting APIs](https://developers.klaviyo.com/en/reference/reporting_api_overview) (set the custom metric ID as the `conversion_metric_id`).
15+
16+
> 🚧
17+
>
18+
> Standard accounts can only have 1 custom metric. Upgrade to Klaviyo's [Advanced KDP](https://www.klaviyo.com/products/advanced-cdp) or [Marketing Analytics](https://www.klaviyo.com/solutions/analytics) plan to create up to 50 custom metrics. To learn more about these plans, visit our [billing guide](https://help.klaviyo.com/hc/en-us/articles/115000976672).
19+
20+
#### Get and Delete Push Token APIs
21+
22+
- Retrieve and/or delete a given push token via [Get Push Token](https://developers.klaviyo.com/en/reference/get_push_token) and [Delete Push Token APIs](https://developers.klaviyo.com/en/reference/delete_push_token).
23+
- [Include](https://developers.klaviyo.com/en/docs/relationships_#the-include-query-parameter) push tokens on `GET /api/profiles`.
24+
- We've added relationship endpoints for both profiles and push tokens:
25+
- Retrieve push tokens associated with a profile (`GET /api/profiles/{ID}/push-tokens`).
26+
- Get IDs for push tokens associated with a profile (`GET /api/profiles/{ID}/relationships/push-tokens`).
27+
- Retrieve the profile associated with a push token (`GET /api/push-tokens/{ID}/profile`).
28+
- Get ID for the profile associated with a push token (`GET /api/push-tokens/{ID}/relationships/profile`).
29+
30+
### Changed
31+
#### Campaigns API endpoints updated to support options for push notification badges
32+
33+
- Badge count settings are supported on the "campaign-message" resource for push messages.
34+
- The following options for incrementing badge count have been added to the Campaigns API: `increment_one` (increment by 1), `set_count` (increment by a given value), and `set_property` (increment by profile property).
35+
36+
#### Optional AMP MIME-type field for Templates API
37+
38+
- We've added support for creating and updating AMP versions of an email template through an optional `amp` field (under `attributes`) in our Create and Update Template APIs.
39+
- This field requires AMP Email to be enabled. Refer to our [AMP Email setup guide](https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo) for more information.
40+
441
## [17.0.0] - revision 2025-01-15
542
### Changed
643
- ISO strings are now accepted for date fields

README.md

Lines changed: 436 additions & 269 deletions
Large diffs are not rendered by default.

api/accountsApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class AccountsApi {
6666
* Retrieve a single account object by its account ID. You can only request the account by which the private API key was generated.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
6767
* @summary Get Account
6868
* @param id The ID of the account
69-
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2025-01-15/reference/api-overview#sparse-fieldsets
69+
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2025-04-15/reference/api-overview#sparse-fieldsets
7070
*/
7171
public async getAccount (id: string, options: { fieldsAccount?: Array<'test_account' | 'contact_information' | 'contact_information.default_sender_name' | 'contact_information.default_sender_email' | 'contact_information.website_url' | 'contact_information.organization_name' | 'contact_information.street_address' | 'contact_information.street_address.address1' | 'contact_information.street_address.address2' | 'contact_information.street_address.city' | 'contact_information.street_address.region' | 'contact_information.street_address.country' | 'contact_information.street_address.zip' | 'industry' | 'timezone' | 'preferred_currency' | 'public_api_key' | 'locale'>, } = {}): Promise<{ response: AxiosResponse; body: GetAccountResponse; }> {
7272

@@ -123,7 +123,7 @@ export class AccountsApi {
123123
* Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
124124
* @summary Get Accounts
125125
126-
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2025-01-15/reference/api-overview#sparse-fieldsets
126+
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2025-04-15/reference/api-overview#sparse-fieldsets
127127
*/
128128
public async getAccounts (options: { fieldsAccount?: Array<'test_account' | 'contact_information' | 'contact_information.default_sender_name' | 'contact_information.default_sender_email' | 'contact_information.website_url' | 'contact_information.organization_name' | 'contact_information.street_address' | 'contact_information.street_address.address1' | 'contact_information.street_address.address2' | 'contact_information.street_address.city' | 'contact_information.street_address.region' | 'contact_information.street_address.country' | 'contact_information.street_address.zip' | 'industry' | 'timezone' | 'preferred_currency' | 'public_api_key' | 'locale'>, } = {}): Promise<{ response: AxiosResponse; body: GetAccountResponseCollection; }> {
129129

api/apis.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export * from './templatesApi';
3434
import { TemplatesApi } from './templatesApi';
3535
export * from './trackingSettingsApi';
3636
import { TrackingSettingsApi } from './trackingSettingsApi';
37+
export * from './webFeedsApi';
38+
import { WebFeedsApi } from './webFeedsApi';
3739
export * from './webhooksApi';
3840
import { WebhooksApi } from './webhooksApi';
3941

@@ -42,8 +44,8 @@ import {AxiosRequestConfig, AxiosResponse, AxiosHeaders, AxiosError, isAxiosErro
4244

4345
export { RequestFile } from '../model/models';
4446

45-
const revision = "2025-01-15";
46-
const userAgent = "klaviyo-api-node/17.0.0";
47+
const revision = "2025-04-15";
48+
const userAgent = "klaviyo-api-node/18.0.0";
4749

4850
export class RetryWithExponentialBackoff {
4951

@@ -558,6 +560,8 @@ export namespace Pkce {
558560

559561
export const TrackingSettings = new TrackingSettingsApi(new GlobalApiKeySession())
560562

563+
export const WebFeeds = new WebFeedsApi(new GlobalApiKeySession())
564+
561565
export const Webhooks = new WebhooksApi(new GlobalApiKeySession())
562566

563567

@@ -572,4 +576,4 @@ export const Auth = {
572576
Pkce,
573577
}
574578

575-
export const Klaviyo = { Auth, AccountsApi, Accounts, CampaignsApi, Campaigns, CatalogsApi, Catalogs, CouponsApi, Coupons, DataPrivacyApi, DataPrivacy, EventsApi, Events, FlowsApi, Flows, FormsApi, Forms, ImagesApi, Images, ListsApi, Lists, MetricsApi, Metrics, ProfilesApi, Profiles, ReportingApi, Reporting, ReviewsApi, Reviews, SegmentsApi, Segments, TagsApi, Tags, TemplatesApi, Templates, TrackingSettingsApi, TrackingSettings, WebhooksApi, Webhooks };
579+
export const Klaviyo = { Auth, AccountsApi, Accounts, CampaignsApi, Campaigns, CatalogsApi, Catalogs, CouponsApi, Coupons, DataPrivacyApi, DataPrivacy, EventsApi, Events, FlowsApi, Flows, FormsApi, Forms, ImagesApi, Images, ListsApi, Lists, MetricsApi, Metrics, ProfilesApi, Profiles, ReportingApi, Reporting, ReviewsApi, Reviews, SegmentsApi, Segments, TagsApi, Tags, TemplatesApi, Templates, TrackingSettingsApi, TrackingSettings, WebFeedsApi, WebFeeds, WebhooksApi, Webhooks };

0 commit comments

Comments
 (0)