Replies: 1 comment 10 replies
-
|
To add an API Extension in Dify, you need to provide a name, the full API endpoint URL, and an API key. The API endpoint should be the exact URL where Dify will send POST requests, and the API key must be at least 5 characters. Dify sends requests with the API key in the Authorization header as Make sure your endpoint is reachable from your Dify deployment (cloud or self-hosted), and that your API key is valid. The API key is masked in the UI for security, and only updated if you enter a new value. If you’re self-hosting, double-check your network/firewall settings and endpoint compatibility. There’s no official step-by-step guide in the docs, but the backend logic and validation requirements are clear from the code and issue discussions (source, source). If you’re seeing connection errors, check that your endpoint URL starts with To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
API Extension: How To Add API Extension with Name, API Endpoint and API Key ?
I have already developed a server program for my Dify. Within my program, I made a function that user can create and update their own knowledge bases using Dify API Extension.
For example, I used below api to make a curl request:
Create an Empty Knowledge Base:Creates a new, empty knowledge base (dataset) with specified configurations.
curl --request POST
--url https://api.dify.ai/v1/datasets
--header 'Authorization: Bearer '
--header 'Content-Type: application/json'
--data '
But, I don't know how to set the correct api endpoint and api key?
My ip address is 53.33.44.292, and I tried in dify webUI setting the http://53.33.44.292/v1, http://53.33.44.292, http://53.33.44.292/datasets,etc for api endpoint, but none of them can be set !
So, How To Add API Extension with Name, API Endpoint and API Key in API extension?
@dosu.
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions