Skip to content

Commit cbdc211

Browse files
committed
feat(cloud)!: send X-APIForge-Key instead of X-API-Key
Matches the saas-api header rename (CDC section 8.4.1). Breaking change for cloud mode users — must ship together with the saas-api and other SDKs' companion renames. Verified end-to-end: CloudTransport.write_routes() against a local saas-api test instance registers the route correctly with the new header. 83/83 tests still pass.
1 parent 444e41b commit cbdc211

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apiforgepy/cloud_transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def write_routes(self, routes: list[dict]) -> None:
3232
req = urllib.request.Request(
3333
self._url + "/routes",
3434
data=payload,
35-
headers={"Content-Type": "application/json", "X-API-Key": self._api_key},
35+
headers={"Content-Type": "application/json", "X-APIForge-Key": self._api_key},
3636
method="POST",
3737
)
3838
try:
@@ -83,7 +83,7 @@ def write(self, rows: list[dict]) -> None:
8383
req = urllib.request.Request(
8484
self._url,
8585
data=payload,
86-
headers={"Content-Type": "application/json", "X-API-Key": self._api_key},
86+
headers={"Content-Type": "application/json", "X-APIForge-Key": self._api_key},
8787
method="POST",
8888
)
8989

0 commit comments

Comments
 (0)