Skip to main content
GET
/
knowledge
/
{knowledge_base_id}
/
upload_url
cURL
curl --request GET \
  --url https://api.opper.ai/v2/knowledge/{knowledge_base_id}/upload_url \
  --header 'Authorization: Bearer <token>'
{
  "url": "<string>",
  "fields": {},
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

knowledge_base_id
string<uuid>
required

The id of the knowledge base to get the upload URL for

Query Parameters

filename
string
required

The filename of the file to upload

Example:

"example.pdf"

Response

Successful Response

url
string
required
fields
Fields · object
required
id
string<uuid>
required