POST
/
list_chunks_and_embeddings
curl --request POST \
  --url https://api.carbon.ai/list_chunks_and_embeddings \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "pagination": {
    "limit": 10,
    "offset": 0,
    "starting_id": 0
  },
  "order_by": "updated_at",
  "order_dir": "asc",
  "filters": {
    "source": "GOOGLE_CLOUD_STORAGE",
    "name": "<string>",
    "tags": {},
    "tags_v2": {},
    "ids": [
      123
    ],
    "external_file_ids": [
      "<string>"
    ],
    "sync_statuses": [
      "DELAYED"
    ],
    "parent_file_ids": [
      123
    ],
    "organization_user_data_source_id": [
      123
    ],
    "embedding_generators": [
      "OPENAI"
    ],
    "root_files_only": true,
    "include_all_children": false,
    "non_synced_only": false,
    "request_ids": [
      "<string>"
    ],
    "upload_ids": [
      "<string>"
    ],
    "sync_error_message": "<string>",
    "include_containers": true,
    "external_urls": [
      "<string>"
    ],
    "file_types_at_source": [
      "TICKET"
    ]
  },
  "include_vectors": false
}'
{
  "results": [
    {
      "user_file_id": 123,
      "chunk_index": 123,
      "source_content": "<string>",
      "embedding": [
        123
      ],
      "content_metadata": {}
    }
  ],
  "count": 123
}

Authorizations

authorization
string
header
required

token <token>, corresponds to temporary access tokens.

Body

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

Response

200
application/json
Successful Response
results
object[]
required
count
integer
required