Skip to content

Commit 2cb9f44

Browse files
authored
Merge pull request #115 from klaviyo/22.0.0
v22.0.0
2 parents 282138f + f88b5e7 commit 2cb9f44

File tree

731 files changed

+14121
-5979
lines changed

Some content is hidden

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

731 files changed

+14121
-5979
lines changed

CHANGELOG.md

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

4+
## [22.0.0] - revision 2026-04-15
5+
### Added
6+
- Conversations API
7+
- Send an outbound message to a profile with Create Conversation Message. Supports SMS and WhatsApp — the channel is determined automatically from the conversation. Conversation message endpoints use the SMALL rate limit tier (3 requests/second burst, 60 requests/minute steady).
8+
- Retrieve the conversation thread for a given profile with Get Conversation for Profile, or include it inline on profile retrievals using `?include=conversation`.
9+
### Changed
10+
- Drag-and-drop templates
11+
- Create drag-and-drop email templates programmaatically by setting `editor_type: SYSTEM_DRAGGABLE` and providing a `definition` body (mutually exclusive with `html`) via Create Template. DnD template endpoints use the SMALL rate limit tier (3 requests/second burst, 60 requests/minute steady).
12+
- List and retrieve drag-and-drog templates with Get Templates and Get Template. Use `additional-fields[template]=definition` to include the full template definition in the response.
13+
- Update an existing drag-and-drop template’s `definition`, `name`, or `text` independently via Update Template.
14+
415
## [21.0.1] - revision 2026-01-15
516
### Added
617
- Events Api

README.md

Lines changed: 338 additions & 306 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/v2026-01-15/reference/api-overview#sparse-fieldsets
69+
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2026-04-15/reference/api-overview#sparse-fieldsets
7070
*/
7171
public async getAccount (id: string, options: { fieldsAccount?: Array<'contact_information' | 'contact_information.default_sender_email' | 'contact_information.default_sender_name' | '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.country' | 'contact_information.street_address.region' | 'contact_information.street_address.zip' | 'contact_information.website_url' | 'industry' | 'locale' | 'preferred_currency' | 'public_api_key' | 'test_account' | 'timezone'>, } = {}): 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/v2026-01-15/reference/api-overview#sparse-fieldsets
126+
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2026-04-15/reference/api-overview#sparse-fieldsets
127127
*/
128128
public async getAccounts (options: { fieldsAccount?: Array<'contact_information' | 'contact_information.default_sender_email' | 'contact_information.default_sender_name' | '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.country' | 'contact_information.street_address.region' | 'contact_information.street_address.zip' | 'contact_information.website_url' | 'industry' | 'locale' | 'preferred_currency' | 'public_api_key' | 'test_account' | 'timezone'>, } = {}): Promise<{ response: AxiosResponse; body: GetAccountResponseCollection; }> {
129129

api/apis.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export * from './campaignsApi';
44
import { CampaignsApi } from './campaignsApi';
55
export * from './catalogsApi';
66
import { CatalogsApi } from './catalogsApi';
7+
export * from './conversationsApi';
8+
import { ConversationsApi } from './conversationsApi';
79
export * from './couponsApi';
810
import { CouponsApi } from './couponsApi';
911
export * from './customObjectsApi';
@@ -46,8 +48,8 @@ import {AxiosRequestConfig, AxiosResponse, AxiosHeaders, AxiosError, isAxiosErro
4648

4749
export { RequestFile } from '../model/models';
4850

49-
const revision = "2026-01-15";
50-
const userAgent = "klaviyo-api-node/21.0.1";
51+
const revision = "2026-04-15";
52+
const userAgent = "klaviyo-api-node/22.0.0";
5153

5254
export class RetryWithExponentialBackoff {
5355

@@ -532,6 +534,8 @@ export namespace Pkce {
532534

533535
export const Catalogs = new CatalogsApi(new GlobalApiKeySession())
534536

537+
export const Conversations = new ConversationsApi(new GlobalApiKeySession())
538+
535539
export const Coupons = new CouponsApi(new GlobalApiKeySession())
536540

537541
export const CustomObjects = new CustomObjectsApi(new GlobalApiKeySession())
@@ -580,4 +584,4 @@ export const Auth = {
580584
Pkce,
581585
}
582586

583-
export const Klaviyo = { Auth, AccountsApi, Accounts, CampaignsApi, Campaigns, CatalogsApi, Catalogs, CouponsApi, Coupons, CustomObjectsApi, CustomObjects, 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 };
587+
export const Klaviyo = { Auth, AccountsApi, Accounts, CampaignsApi, Campaigns, CatalogsApi, Catalogs, ConversationsApi, Conversations, CouponsApi, Coupons, CustomObjectsApi, CustomObjects, 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)