curl --request POST \
--url https://api.example.com/api/knowledge/bases/{id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file": "File",
"sourceType": "<string>",
"enableContextualRetrieval": "<string>"
}
'curl --request POST \
--url https://api.example.com/api/knowledge/bases/{id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file": "File",
"sourceType": "<string>",
"enableContextualRetrieval": "<string>"
}
'Logto JWT access token
Successful response