A single Knowledge Base API key has access to all visible knowledge bases under the same account. Handle your credentials carefully to avoid unintended data exposure.
Get Your API Endpoint and Key
Navigate to Knowledge in Dify. In the top-right corner, click Service API to open the API configuration panel. From here you can:- Get the Service API endpoint. This is the base URL for all Knowledge Base API requests.
- Click API Key to create new keys and manage existing ones.