POST
/
user_files_v2
curl --request POST \
  --url https://api.carbon.ai/user_files_v2 \
  --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": {
    "include_all_children": false,
    "non_synced_only": false
  },
  "include_raw_file": true,
  "include_parsed_text_file": true,
  "include_additional_files": true,
  "presigned_url_expiry_time_seconds": 3600
}'
{
  "results": [
    {
      "id": 123,
      "source": "GOOGLE_CLOUD_STORAGE",
      "organization_id": 123,
      "organization_user_id": 123,
      "organization_supplied_user_id": "<string>",
      "organization_user_data_source_id": 123,
      "external_file_id": "<string>",
      "external_url": "<string>",
      "sync_status": "DELAYED",
      "sync_error_message": "<string>",
      "last_sync": "2023-11-07T05:31:56Z",
      "tags": {},
      "file_statistics": {
        "file_format": "TXT",
        "file_size": 123,
        "num_characters": 123,
        "num_tokens": 123,
        "num_embeddings": 123,
        "mime_type": "<string>"
      },
      "file_metadata": {},
      "embedding_properties": {},
      "chunk_size": 123,
      "chunk_overlap": 123,
      "chunk_properties": {
        "set_page_as_boundary": false,
        "prepend_filename_to_chunks": false,
        "max_items_per_chunk": 123
      },
      "ocr_properties": {},
      "ocr_job_started_at": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "parent_id": 123,
      "enable_auto_sync": true,
      "presigned_url": "<string>",
      "parsed_text_url": "<string>",
      "additional_presigned_urls": {},
      "skip_embedding_generation": true,
      "source_created_at": "2023-11-07T05:31:56Z",
      "generate_sparse_vectors": true,
      "request_id": "<string>",
      "upload_id": "<string>",
      "sync_properties": {},
      "messages_metadata": {},
      "file_contents_deleted": false,
      "supports_cold_storage": true,
      "hot_storage_time_to_live": 123,
      "embedding_storage_status": "HOT_STORAGE",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "count": 123
}

Authorizations

authorization
string
header
required

token <token>, corresponds to temporary access tokens.

Body

application/json
pagination
object

Pagination parameters for the query.

order_by
enum<string>

The field on OrganizationUserFilesToSYnc to order the results by.

Available options:
created_at,
updated_at,
name,
last_sync,
file_size,
id
order_dir
enum<string>

The direction to order the results by.

Available options:
desc,
asc
filters
object

Filters to apply to the query.

include_raw_file
boolean | null

If true, the query will return presigned URLs for the raw file. Only relevant for the /user_files_v2 endpoint.

include_parsed_text_file
boolean | null

If true, the query will return presigned URLs for the parsed text file. Only relevant for the /user_files_v2 endpoint.

include_additional_files
boolean | null

If true, the query will return presigned URLs for additional files. Only relevant for the /user_files_v2 endpoint.

presigned_url_expiry_time_seconds
integer
default:3600

The expiry time for the presigned URLs. Only relevant for the /user_files_v2 endpoint.

Response

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