Drives
The Drive
object is used to represent a drive that contains the folders and files in the user's workspace.The Drive object
Properties
id
StringRequired
remote_id
StringOptional
The third-party API ID of the matching object.
name
StringOptional
The drive's name.
remote_created_at
StringOptional
When the third party's drive was created.
drive_url
StringOptional
The drive's url.
field_mappings
ObjectOptional
modified_at
StringRequired
This is the datetime that this object was last updated by Merge
remote_data
ArrayOptional
The Drive object
JSON
{"id": "31ce474c-asdf-34a2-754r-629f799f7d12","remote_id": "2039349","name": "Documents","remote_created_at": "2023-05-26T22:33:40.523Z","drive_url": "https://drive.com/drives/2039349",Show advanced fields}
GET
/drives
Returns a list of Drive
objects.
Header Parameters
Authorization
StringRequired
Token-based authentication with required prefix "Bearer"
X-Account-Token
StringRequired
Token identifying the end user.
Query & Path Parameters
created_after
StringOptional
If provided, will only return objects created after this datetime.
created_before
StringOptional
If provided, will only return objects created before this datetime.
cursor
StringOptional
The pagination cursor value.
include_deleted_data
BooleanOptional
Whether to include data that was marked as deleted by third party webhooks.
include_remote_data
BooleanOptional
Whether to include the original data Merge fetched from the third-party to produce these models.
modified_after
StringOptional
If provided, only objects synced by Merge after this date time will be returned.
modified_before
StringOptional
If provided, only objects synced by Merge before this date time will be returned.
name
StringOptional
If provided, will only return drives with this name. This performs an exact match.
page_size
IntegerOptional
Number of results to return per page.
remote_id
StringOptional
The API provider's ID for the given object.
Response
JSON
{"next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw","previous": "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ","results": [{"id": "31ce474c-asdf-34a2-754r-629f799f7d12","remote_id": "2039349","name": "Documents","remote_created_at": "2023-05-26T22:33:40.526Z","drive_url": "https://drive.com/drives/2039349",Show advanced fields}]}
Field support by platform

Google Drive
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
drive_url
Stringname
Stringremote_created_at
Stringremote_data
Arrayremote_id
String
OneDrive
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
drive_url
Stringname
Stringremote_created_at
Stringremote_data
Arrayremote_id
String
SharePoint
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
drive_url
Stringname
Stringremote_created_at
Stringremote_data
Arrayremote_id
StringHint: Use the /linked-accounts endpoint to pull platform support information.
GET
/drives/{id}
Returns a Drive
object with the given id
.
Header Parameters
Authorization
StringRequired
Token-based authentication with required prefix "Bearer"
X-Account-Token
StringRequired
Token identifying the end user.
Query & Path Parameters
id
StringRequired
include_remote_data
BooleanOptional
Whether to include the original data Merge fetched from the third-party to produce these models.
Response
JSON
{"id": "31ce474c-asdf-34a2-754r-629f799f7d12","remote_id": "2039349","name": "Documents","remote_created_at": "2023-05-26T22:33:40.529Z","drive_url": "https://drive.com/drives/2039349",Show advanced fields}
Field support by platform

Google Drive
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
drive_url
Stringname
Stringremote_created_at
Stringremote_data
Arrayremote_id
String
OneDrive
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
drive_url
Stringname
Stringremote_created_at
Stringremote_data
Arrayremote_id
String
SharePoint
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
drive_url
Stringname
Stringremote_created_at
Stringremote_data
Arrayremote_id
StringHint: Use the /linked-accounts endpoint to pull platform support information.