POST
/
user_data_sources
curl --request POST \
  --url https://api.carbon.ai/user_data_sources \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "pagination": {
    "limit": 123,
    "offset": 123
  },
  "order_by": "created_at",
  "order_dir": "desc",
  "filters": {
    "source": "GOOGLE_DRIVE",
    "ids": [
      123
    ],
    "revoked_access": true
  }
}'
{
  "results": [
    {
      "id": 123,
      "data_source_external_id": "<string>",
      "data_source_type": "GOOGLE_DRIVE",
      "token": {},
      "sync_status": "QUEUED_FOR_SYNCING",
      "source_items_synced_at": "2023-11-07T05:31:56Z",
      "organization_user_id": 123,
      "organization_id": 123,
      "organization_supplied_user_id": "<string>",
      "revoked_access": true,
      "last_synced_at": "2023-11-07T05:31:56Z",
      "last_sync_action": "ADD",
      "enable_auto_sync": true,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "files_synced_at": "2023-11-07T05:31:56Z"
    }
  ],
  "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
order_dir
enum<string>
Available options:
desc,
asc
filters
object

Response

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