POST
/
integrations
/
items
/
list
curl --request POST \
  --url https://api.carbon.ai/integrations/items/list \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "data_source_id": 123,
  "parent_id": "<string>",
  "filters": {
    "external_ids": [
      "<string>"
    ],
    "ids": [
      123
    ],
    "name": "<string>",
    "root_files_only": true,
    "file_formats": [
      "TXT"
    ],
    "item_types": [
      "FILE"
    ]
  },
  "pagination": {
    "limit": 10,
    "offset": 0,
    "starting_id": 0
  },
  "order_by": "name",
  "order_dir": "asc"
}'
{
  "items": [
    {
      "id": 123,
      "external_id": "<string>",
      "source": "GOOGLE_CLOUD_STORAGE",
      "name": "<string>",
      "synced_at": "2023-11-07T05:31:56Z",
      "is_selectable": true,
      "is_expandable": true,
      "organization_id": 123,
      "organization_supplied_user_id": "<string>",
      "organization_user_id": 123,
      "organization_user_data_source_id": 123,
      "organization_user_file_to_sync_id": 123,
      "parent_external_id": "<string>",
      "item_type": "<string>",
      "root_external_id": "<string>",
      "external_url": "<string>",
      "file_format": "<string>",
      "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
data_source_id
integer
required
parent_id
string | null
filters
object | null
pagination
object
order_by
enum<string>
Available options:
name,
id,
directories_first
order_dir
enum<string>
Available options:
asc,
desc

Response

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