From b46d50bb071540bf570d3de6b6b51a717f105642 Mon Sep 17 00:00:00 2001 From: radu-mocanu Date: Thu, 3 Dec 2026 16:50:15 +0100 Subject: [PATCH] docs(connections): note the direct connection token is restricted --- .../platform/connections/_connections_service.py | 10 ++++++++++ .../src/uipath/platform/connections/connections.py | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/uipath-platform/src/uipath/platform/connections/_connections_service.py b/packages/uipath-platform/src/uipath/platform/connections/_connections_service.py index 7172a6f4a..cca118ec7 100644 --- a/packages/uipath-platform/src/uipath/platform/connections/_connections_service.py +++ b/packages/uipath-platform/src/uipath/platform/connections/_connections_service.py @@ -399,6 +399,11 @@ def retrieve_token( Returns: ConnectionToken: The authentication token details, including the token value and any associated metadata. + + Note: + `ConnectionTokenType.DIRECT`, the default, returns the connection's raw + vendor token. Integration Service restricts it to existing callers, so + new code should not build on it. """ spec = self._retrieve_token_spec(key, token_type) response = self.request(spec.method, url=spec.endpoint, params=spec.params) @@ -425,6 +430,11 @@ async def retrieve_token_async( Returns: ConnectionToken: The authentication token details, including the token value and any associated metadata. + + Note: + `ConnectionTokenType.DIRECT`, the default, returns the connection's raw + vendor token. Integration Service restricts it to existing callers, so + new code should not build on it. """ spec = self._retrieve_token_spec(key, token_type) response = await self.request_async( diff --git a/packages/uipath-platform/src/uipath/platform/connections/connections.py b/packages/uipath-platform/src/uipath/platform/connections/connections.py index 394861708..5ba974a5d 100644 --- a/packages/uipath-platform/src/uipath/platform/connections/connections.py +++ b/packages/uipath-platform/src/uipath/platform/connections/connections.py @@ -45,7 +45,11 @@ class Connection(BaseModel): class ConnectionTokenType(str, Enum): - """Enum representing types of connection tokens.""" + """Enum representing types of connection tokens. + + `DIRECT` returns the connection's raw vendor token. Integration Service + restricts it to existing callers, so new code should not build on it. + """ DIRECT = "direct" BEARER = "bearer"