Skip to main content
GET
/
api
/
core
/
files
/
content
Get file content
curl --request GET \
  --url https://api.example.com/api/core/files/content \
  --header 'Authorization: Bearer <token>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Format: 'Bearer '

Query Parameters

file_path
string
required

Path to the file

display_mode
enum<string>
required

Display mode for the file

Available options:
view,
download
context_type
enum<string>
required

Type of access context

Available options:
chat,
thread,
finder
context_id
string
required

ID of the access context

Response

Successful Response