<@U04UQ68083H> The Ory tunnel automatically create...
# ory-copilot
b
@chilly-king-10285 The Ory tunnel automatically creates an API key based on the authenticated user. Is it possible to use Ory’s SDK (typescript) to access the Ory admin APIs via Ory tunnel without having to explicitly pass an API key (as the Ory tunnel already has it)?
b
A message from kapa.ai
Based on the knowledge sources provided, there isn't enough specific information to definitively answer whether the Ory SDK (TypeScript) can access Ory admin APIs via Ory Tunnel without explicitly passing an API key. The documents don't directly address this particular use case. However, I can provide some relevant information about Ory Tunnel and API key usage: 1. Ory Tunnel is primarily used for local development and testing, mirroring Ory APIs on your local machine. It requires authentication, either via an API key or browser-based sign-in, as mentioned in the [Ory CLI documentation](https://www.ory.sh/docs/cli/ory-tunnel). 2. For administrative API access, Ory typically requires the use of an API key. This is highlighted in the [Ory Network API Keys documentation](https://www.ory.sh/docs/concepts/personal-access-token). 3. When using the Ory SDK, you usually need to configure it with a base path and, for admin APIs, an access token. This is shown in various code examples throughout the documentation. Given this information, it seems that you would still need to explicitly provide an API key when using the Ory SDK to access admin APIs, even when using Ory Tunnel. The Tunnel itself doesn't appear to automatically handle admin API authentication for SDK usage. If you need more specific information about this use case, you might want to consult the official Ory documentation or reach out to Ory support for clarification.