Skip to content

Commit 3b0e08a

Browse files
klaviyo-sdkklaviyo-sdk
andauthored
version 21.0.0 (#94)
Co-authored-by: klaviyo-sdk <klaviyo-sdk@klaviyo.com>
1 parent a5e6526 commit 3b0e08a

File tree

120 files changed

+9342
-3337
lines changed

Some content is hidden

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

120 files changed

+9342
-3337
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
NOTE: For more granular API-specific changes, please see our [API Changelog](https://developers.klaviyo.com/en/docs/changelog_)
99

10+
## [21.0.0] - revision 2025-10-15
11+
### Added
12+
#### Flow Actions API
13+
- Get flow actions, flow messages, flow action IDs, and more with the [Flow Actions API](https://developers.klaviyo.com/en/reference/get_flow_action).
14+
- Update flow actions within a flow, including associated message content, with the [Update Flow Action](https://developers.klaviyo.com/en/reference/update_flow_action) endpoint.
15+
16+
### Updated
17+
#### Forms API
18+
- Retrieve a form and its definition with the [Forms API](https://developers.klaviyo.com/en/reference/forms_api_overview).
19+
- Use the [Create Form](https://developers.klaviyo.com/en/reference/create_form) endpoint to generate a new form by providing the status, A/B test preference, and name of the form.
20+
1021
## [20.0.0] - revision 2025-07-15
1122
### Added
1223
#### Mapped Metrics API

README.md

Lines changed: 324 additions & 299 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openapi_client"
3-
version = "20.0.0"
3+
version = "21.0.0"
44
description = "Klaviyo API"
55
authors = ["Klaviyo Developer Experience Team <developers@klaviyo.com>"]
66
license = "License"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = klaviyo-api
3-
version = 20.0.0
3+
version = 21.0.0
44
author = Klaviyo Developers
55
author_email = developers@klaviyo.com
66
description = Klaviyo Python SDK

src/klaviyo_api/wrapper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class KlaviyoAPI:
1919
options: Dict[str, Any] = field(default_factory=dict)
2020

2121

22-
_REVISION = "2025-07-15"
22+
_REVISION = "2025-10-15"
2323

2424
_STATUS_CODE_CONNECTION_RESET_BY_PEER = 104
2525
_STATUS_CODE_TOO_MANY_REQUESTS = 429
@@ -405,6 +405,7 @@ def Flows(self):
405405
Flows.get_template_id_for_flow_message=self._page_cursor_update(self.retry_logic(Flows.get_template_id_for_flow_message))
406406
Flows.get_flow_message_relationships_template=self._page_cursor_update(self.retry_logic(Flows.get_flow_message_relationships_template))
407407
Flows.update_flow=self._page_cursor_update(self.retry_logic(Flows.update_flow))
408+
Flows.update_flow_action=self._page_cursor_update(self.retry_logic(Flows.update_flow_action))
408409

409410
return Flows
410411

@@ -416,6 +417,7 @@ def Forms(self):
416417
Forms=forms_api.FormsApi(self.api_client)
417418

418419
## Applying retry decorator to each endpoint in Forms
420+
Forms.create_form=self._page_cursor_update(self.retry_logic(Forms.create_form))
419421
Forms.delete_form=self._page_cursor_update(self.retry_logic(Forms.delete_form))
420422
Forms.get_form=self._page_cursor_update(self.retry_logic(Forms.get_form))
421423
Forms.get_form_for_form_version=self._page_cursor_update(self.retry_logic(Forms.get_form_for_form_version))

src/openapi_client/__init__.py

Lines changed: 153 additions & 61 deletions
Large diffs are not rendered by default.

src/openapi_client/api/accounts_api.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, api_client=None) -> None:
4949
def get_account(
5050
self,
5151
id: Annotated[StrictStr, Field(description="The ID of the account")],
52-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets")] = None,
52+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
5353
_request_timeout: Union[
5454
None,
5555
Annotated[StrictFloat, Field(gt=0)],
@@ -70,7 +70,7 @@ def get_account(
7070
7171
:param id: The ID of the account (required)
7272
:type id: str
73-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets
73+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
7474
:type fields_account: List[str]
7575
:param _request_timeout: timeout setting for this request. If one
7676
number provided, it will be total request
@@ -135,7 +135,7 @@ def get_account(
135135
def get_account_with_http_info(
136136
self,
137137
id: Annotated[StrictStr, Field(description="The ID of the account")],
138-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets")] = None,
138+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
139139
_request_timeout: Union[
140140
None,
141141
Annotated[StrictFloat, Field(gt=0)],
@@ -156,7 +156,7 @@ def get_account_with_http_info(
156156
157157
:param id: The ID of the account (required)
158158
:type id: str
159-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets
159+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
160160
:type fields_account: List[str]
161161
:param _request_timeout: timeout setting for this request. If one
162162
number provided, it will be total request
@@ -219,7 +219,7 @@ def get_account_with_http_info(
219219
def get_account_without_preload_content(
220220
self,
221221
id: Annotated[StrictStr, Field(description="The ID of the account")],
222-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets")] = None,
222+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
223223
_request_timeout: Union[
224224
None,
225225
Annotated[StrictFloat, Field(gt=0)],
@@ -238,7 +238,7 @@ def get_account_without_preload_content(
238238
239239
:param id: The ID of the account (required)
240240
:type id: str
241-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets
241+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
242242
:type fields_account: List[str]
243243
:param _request_timeout: timeout setting for this request. If one
244244
number provided, it will be total request
@@ -376,7 +376,7 @@ def _get_account_serialize(
376376
@validate_call
377377
def get_accounts(
378378
self,
379-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets")] = None,
379+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
380380
_request_timeout: Union[
381381
None,
382382
Annotated[StrictFloat, Field(gt=0)],
@@ -395,7 +395,7 @@ def get_accounts(
395395
396396
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`
397397
398-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets
398+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
399399
:type fields_account: List[str]
400400
:param _request_timeout: timeout setting for this request. If one
401401
number provided, it will be total request
@@ -458,7 +458,7 @@ def get_accounts(
458458
@validate_call
459459
def get_accounts_with_http_info(
460460
self,
461-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets")] = None,
461+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
462462
_request_timeout: Union[
463463
None,
464464
Annotated[StrictFloat, Field(gt=0)],
@@ -477,7 +477,7 @@ def get_accounts_with_http_info(
477477
478478
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`
479479
480-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets
480+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
481481
:type fields_account: List[str]
482482
:param _request_timeout: timeout setting for this request. If one
483483
number provided, it will be total request
@@ -538,7 +538,7 @@ def get_accounts_with_http_info(
538538
@validate_call
539539
def get_accounts_without_preload_content(
540540
self,
541-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets")] = None,
541+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
542542
_request_timeout: Union[
543543
None,
544544
Annotated[StrictFloat, Field(gt=0)],
@@ -555,7 +555,7 @@ def get_accounts_without_preload_content(
555555
556556
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`
557557
558-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-07-15/reference/api-overview#sparse-fieldsets
558+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
559559
:type fields_account: List[str]
560560
:param _request_timeout: timeout setting for this request. If one
561561
number provided, it will be total request

0 commit comments

Comments
 (0)