Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/batch/speechmatics/batch/_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def get_auth_headers_sync(self) -> dict[str, str]:

def _token_request(self) -> tuple[str, dict[str, str], dict[str, Any], dict[str, str]]:
"""Build the endpoint, params, payload and headers for minting a token."""
endpoint = f"{self._mp_url}/v1/api_keys"
endpoint = f"{self._mp_url}/v1/jwts"
params = {"type": "batch"}
payload: dict[str, Any] = {"ttl": self._ttl, "region": str(self._region)}

Expand Down
2 changes: 1 addition & 1 deletion sdk/flow/speechmatics/flow/_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def _generate_token(self) -> str:
"aiohttp is required for JWT authentication. Please install it with `pip install 'speechmatics-flow[jwt]'`"
)

endpoint = f"{self._mp_url}/v1/api_keys"
endpoint = f"{self._mp_url}/v1/jwts"
params = {"type": "flow"}
payload = {"ttl": self._ttl, "region": str(self._region)}

Expand Down
2 changes: 1 addition & 1 deletion sdk/rt/speechmatics/rt/_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async def _generate_token(self) -> str:
"aiohttp is required for JWT authentication. Please install it with `pip install 'speechmatics-rt[jwt]'`"
)

endpoint = f"{self._mp_url}/v1/api_keys"
endpoint = f"{self._mp_url}/v1/jwts"
params = {"type": "rt"}
payload = {"ttl": self._ttl, "region": str(self._region)}

Expand Down
2 changes: 1 addition & 1 deletion sdk/tts/speechmatics/tts/_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def _generate_token(self) -> str:
"aiohttp is required for JWT authentication. Please install it with `pip install 'speechmatics-tts[jwt]'`"
)

endpoint = f"{self._mp_url}/v1/api_keys"
endpoint = f"{self._mp_url}/v1/jwts"
params = {"type": "tts"}
payload = {"ttl": self._ttl, "region": str(self._region)}

Expand Down
Loading