POST
/
text_chunks
curl --request POST \
  --url https://api.carbon.ai/text_chunks \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "pagination": {
    "limit": 123,
    "offset": 123
  },
  "order_by": "created_at",
  "order_dir": "desc",
  "filters": {
    "user_file_id": 123,
    "embedding_model": "OPENAI"
  },
  "include_vectors": true
}'
{
  "results": [
    {
      "user_file_id": 123,
      "chunk_index": 123,
      "source_content": "<string>",
      "embedding": [
        123
      ],
      "content_metadata": {}
    }
  ],
  "count": 123
}

Authorizations

authorization
string
headerrequired

token <token>, corresponds to temporary access tokens.

Body

application/json
pagination
object
order_by
enum<string>
Available options:
created_at,
updated_at,
chunk_index
order_dir
enum<string>
Available options:
desc,
asc
filters
object
required
include_vectors
boolean
default: false

Response

200 - application/json
results
object[]
required
count
integer
required