post deprecated
https://api.toqan.ai/api/create_private_user_file_upload_url
This endpoint creates a url to which you can upload the file you want to use in your conversation. After generating the url you should upload the file there with a put request.
The file id that you get back from this endpoint can be used in /create_conversation and /continue_conversation to attach it to a conversation.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
You can do this by using a curl request where you use the return values of this endpoint:
curl -X PUT "URL"
-H "HEADER_KEY_1: HEADER_VALUE_2"
-H "HEADER_KEY_2: HEADER_VALUE_2"
--upload-file YOUR_LOCAL_FILE_PATH
Note that everything in capitals in this curl request needs to be replaced with values returned for this endpoint, and a path to the local file you want to upload.