> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorpro.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> How EDN authenticates API requests with an API key.

## API key scheme

EDN authenticates requests with an API key. You present the key in the
`Authorization` header as a bearer token:

```
Authorization: Bearer <key>
```

Every authenticated endpoint expects this header. Requests without a valid key
are rejected.

## Managing keys

Create and manage API keys from the [Console](https://api.tensorpro.ai). Keep
each key secret: do not commit it to source control and do not expose it in
client-side code. If a key is leaked, revoke it in the Console and mint a new
one.

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.tensorpro.ai/api/v1/sip/build \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"session_id": "YOUR_SESSION_ID"}'
  ```

  ```python Python theme={null}
  import requests

  resp = requests.post(
      "https://api.tensorpro.ai/api/v1/sip/build",
      headers={"Authorization": "Bearer YOUR_API_KEY"},
      json={"session_id": "YOUR_SESSION_ID"},
  )
  print(resp.status_code)
  ```
</CodeGroup>

## Unauthenticated endpoints

Two endpoints do not require an API key:

* `GET /api/v1/health` - service health check.
* `GET /api/v1/connectors` - list the available connectors.

Every other endpoint requires the `Authorization: Bearer <key>` header.
