GET
/
v1
/
files
/
{id}
/
passages
curl --request GET \
  --url https://api.botpress.cloud/v1/files/{id}/passages
{
  "passages": [
    {
      "id": "<string>",
      "content": "<string>",
      "meta": {
        "type": "chunk",
        "subtype": "title",
        "pageNumber": 123,
        "position": 123,
        "sourceUrl": "<string>"
      }
    }
  ],
  "meta": {
    "nextToken": "<string>"
  }
}

Path Parameters

id
string
required

File ID or Key

Query Parameters

nextToken
string

Provide the meta.nextToken value provided in the last API response to retrieve the next page of results

limit
number

The maximum number of passages to return per request (optional, default: 20, max: 200).

Response

200
application/json
Returns the list of passages extracted from a file.
passages
object[]
required
meta
object
required